A cli tool for initializing a react-router app with any of the modes, and also a project scaffolding which conforms to the screaming arachitecture. A Feature based project skeleton just enough for you to get started.
🏗️Initialize a React Router Project with any of the modes: Declarative | Data | Framework.
📦 Built-in Feature Driven boilerplate with nice UIs
🧩 Component templates following best practices
🎨 Tailwind CSS styling integration
Create New Project
npx create-feature-router my-app
# or
pnpm dlx create-feature-router my-app
# or
bunx create-feature-router my-app
Select the React Router mode you would like to initalize the project with and follow the remaining prompts.
src/
├── assets/ # Static assets
│ ├── icons/
│ │ ├── index.ts
│ │ └── magnifying-glass.tsx
├── config/ # Shared App Configs
│ ├── constants/
│ ├── auth/
├── features/ # App Features
│ ├── auth/
│ │ ├── login.tsx
│ │ └── use-login.tsx
│ ├── shared/
| │ ├── providers
│ │ │ ├── app-context.tsx
│ │ ├── layout
│ │ │ └── layout.tsx
│ ├── base/
│ │ └── layout.tsx
├── ui/ # App reusable UI components
│ ├── button/
│ └── drawer/
├── lib/ # Reusable utility functions
│ └── utils/
└── routes.ts
app/
├── assets/ # Static assets
│ ├── icons/
│ │ ├── index.ts
│ │ └── magnifying-glass.tsx
├── config/ # Shared App Configs
│ ├── constants/
│ ├── auth/
├── features/ # App Features
│ ├── auth/
│ │ ├── login.tsx
│ │ └── use-login.tsx
│ ├── shared/
| │ ├── providers
│ │ │ ├── app-context.tsx
│ │ ├── layout
│ │ │ └── layout.tsx
│ ├── base/
│ │ └── layout.tsx
├── ui/ # App reusable UI components
│ ├── button/
│ └── drawer/
├── lib/ # Reusable utility functions
│ └── utils/
├── entry-client.ts
├── root.tsx
└── routes.ts
Pre-configured to adapt to any react router mode selected. For framework mode, ssr is auto set as true, to turn off Set it to false in the react-router.config.ts
use-login.tsx: Simple hook with login functionality
Flexible layout.tsx with navbar and footer Extensible for different layout types
The generated project includes:
@tanstack/react-query axios tailwindcss (optional)
{
"dependencies": {
"@tanstack/react-query": "^5.81.5",
"axios": "^1.6.0"
},
"devDependencies": {
"tailwindcss": "^4.1.x"
}
}
To contribute to this package:
Clone the repository Install dependencies Link for local development
Samuel Affah, Daramfon Github: sam-c14
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
If you found this package helpful, please give it a ⭐️ on GitHub!