npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

bright_project

v1.1.4

Published

A CLI tool to create a Vite project with React, Tailwind CSS, React Router DOM, TanStack Query, and a basic folder structure.

Downloads

607

Readme

bright_project

bright_project is a CLI tool to quickly set up a new Vite project with React, Tailwind CSS, React Router DOM, TanStack Query, and a basic folder structure. This tool helps you kickstart your project with a predefined configuration and structure.

Features

  • Vite: Modern build tool with fast performance.
  • React: A popular JavaScript library for building user interfaces.
  • Tailwind CSS: Utility-first CSS framework for custom designs.
  • React Router DOM: Declarative routing for React applications.
  • TanStack Query: Powerful data fetching and state management library.
  • Basic Folder Structure: Includes context, routing, and layout setup.
  • Meta Handler: Handles meta information for the project.

Installation

To use bright_project, you need to have Node.js and npm installed. You can then install the package globally using npm:

npm install -g bright_project

Usage

Once installed, you can create a new project by running the following command:

bright_project <project-name>

Replace <project-name> with your desired project name. This will generate a new Vite project with the specified configuration and folder structure.

Project Structure

The generated project will include the following folder structure:

src/
  components/
    nav&sidenav/
      HomeNav.jsx
    footer/
      HomeFooter.jsx
  context/
    MainContext.jsx
  hooks/
    ScrollToTop.js
  layouts/
    HomeLayout.jsx
  pages/
    home/
      pages/
        about/
          About.jsx
        home/
          Home.jsx
  routers/
    Router.jsx
    HomeRoute.jsx
  App.jsx
  index.jsx
  index.css

Files Overview

  • App.jsx: Main application component where routing is provided.
  • index.jsx: Entry point for the React application, includes context and query client setup.
  • MainContext.jsx: Context provider for managing global state.
  • Router.jsx: Configures routing using React Router DOM.
  • HomeRoute.jsx: Defines routes for the home section.
  • HomeLayout.jsx: Layout component including navigation and footer.
  • ScrollToTop.js: Hook to scroll to the top on route changes.
  • HomeNav.jsx: Navigation component.
  • HomeFooter.jsx: Footer component.
  • Home.jsx: Home page component.
  • About.jsx: About page component.

Contributing

If you have suggestions or improvements for bright_project, feel free to open an issue or submit a pull request on GitHub.

License

bright_project is licensed under the MIT License.

Author

Mahadi Hasan

LinkedIn | GitHub