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 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-file-structure-generator

v1.0.4

Published

A CLI tool to add custom file structure to an existing React project

Readme

React File Structure Generator 🚀

A powerful CLI tool that generates standardized and scalable file structures for React projects, supporting both new Vite-based projects and existing React applications.

🌟 Features

🏗️ Add standardized folder structure to existing React projects 🏗️ Add standardized folder structure to existing React projects 📦 Built-in Redux setup with authentication boilerplate 🎣 Custom hooks for API handling and authentication 🧩 Component templates following best practices 🎨 Tailwind CSS styling integration

Installation

npm install -g react-file-structure-generator
# or
yarn global add react-file-structure-generator

🚀 Quick Start

Create New Project

npx file-structure-react

Select "Create new React project with file structure" and follow the prompts.

Add to Existing Project

cd your-react-project
npx file-structure-react

Select "Add file structure to existing React project".

Generated Structure

src/
├── assets/              # Static assets
│   ├── svgs/
│   ├── gifs/
│   └── images/
├── components/          # Reusable components
│   ├── Button/
│   ├── Card/
│   └── Navbar/
├── hooks/              # Custom hooks
│   ├── useApi.js
│   └── useAuth.js
├── layouts/           # Layout components
│   └── BaseLayout.jsx
├── pages/            # Page components
│   └── HomePage/
│       ├── components/
│       │   ├── Hero.jsx
│       │   └── Features.jsx
│       └── HomePage.jsx
├── redux/           # Redux state management
│   ├── action/
│   ├── reducer/
│   └── store.js
├── routes/         # Routing configuration
│   └── AppRoutes.jsx
└── utils/         # Utility functions
    ├── api.js
    ├── constants.js
    └── helper.js

🛠️ Key Components

Redux Setup

Pre-configured store with authentication reducer Action creators for token management Combined reducers setup

Custom Hooks

useApi: API calls with error handling and auth management useAuth: Authentication state and headers management

Layout System

Flexible BaseLayout with navbar and footer Extensible for different layout types

Dependencies

The generated project includes:

@reduxjs/toolkit react-redux react-router-dom axios tailwindcss (optional)

{
  "dependencies": {
    "@reduxjs/toolkit": "^2.0.0",
    "react-redux": "^9.0.0",
    "react-router-dom": "^6.0.0",
    "axios": "^1.6.0"
  },
  "devDependencies": {
    "tailwindcss": "^3.0.0"
  }
}

Development

To contribute to this package:

Clone the repository Install dependencies Link for local development

Author

Nihar Ranjan, Subhrajeet Swain

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Support

If you found this package helpful, please give it a ⭐️ on GitHub!