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

react-quickstarter

v1.0.2

Published

**react-quickstarter** is a custom npm package designed to quickly scaffold a React project with essential configurations and folder structures, as well as pushing the code to GitHub. It integrates Tailwind CSS, React Router, and react-helmet, while also

Downloads

209

Readme

react-quickstarter

react-quickstarter is a custom npm package designed to quickly scaffold a React project with essential configurations and folder structures, as well as pushing the code to GitHub. It integrates Tailwind CSS, React Router, and react-helmet, while also creating a clean initial setup with organized directories and basic file structure.

Features

  • Installs and configures Tailwind CSS, React Router, and react-helmet for rapid development.

  • Sets up the following directories under the src folder:

    • assets: For images, icons, and other static assets.
    • components: For reusable UI components.
    • context: For global state management using React Context.
    • data: For mock data and static JSON files.
    • hooks: For custom React hooks.
    • pages: For page components representing routes.
    • services: For API calls and external service integration.
    • store: For state management setup (e.g., Redux).
    • styles: For global CSS and styling files.
    • utils: For utility functions, constants, and helpers.
  • Updates the default index.css and tailwind.config.js to use Poppins and Montserrat fonts.

  • Removes boilerplate code from App.js and sets up a basic Home Page component.

  • Pushes the code to the respective GitHub repository.

Prerequisites

Ensure you have Node.js and npm installed on your machine before using this package.

Installation & Usage

To create a new React app with this setup:

  1. Open your terminal and navigate to the directory where you want to create the React project.

  2. Run the following command:

npx react-quickstarter <project-name> [github-repo-url]
  • Replace <project-name> with the desired name of your new React app.
  • Replace [github-repo-url] with the GitHub repository URL if you want to push the code to GitHub.
  • If you do not provide a GitHub URL, the script will still create the project but will not push to GitHub.

How It Works

  • Scaffolds a new React app using create-react-app.
  • Installs additional dependencies for Tailwind CSS, React Router, and react-helmet.
  • Creates a predefined folder structure for better organization and scalability.
  • Configures tailwind.config.js to use custom fonts and colors.
  • Sets up a basic Home.jsx component and updates App.js to include routing.
  • If a GitHub URL is provided, the code is pushed to the specified repository.

Development & Testing

If you want to modify or test this package locally:

  1. Clone the repository.
  2. Run npm link in the project directory to make it available globally on your system.
  3. Use the command react-quickstarter <project-name> [github-repo-url] to create a test React app with the local changes.

License

This project is licensed under the ISC License. See the LICENSE file for details.

Contributing

Contributions are welcome! If you’d like to improve this package or add new features, please fork this repository, make your changes, and submit a pull request.