Frontend Forge is a modern CLI that transforms an existing Next.js project into a production-ready frontend architecture.
Instead of creating another starter project, Frontend Forge upgrades your existing project by adding a clean folder structure, connected starter files, optional modules, and best practices—without overwriting your existing code.
-
🏗️ Convert an existing Next.js project into a scalable architecture
-
📦 Multiple project architectures
- Standard
- Enterprise
- Feature Based
- Monorepo
-
🧩 Optional modules
- Core
- Axios
- Zustand
-
📁 Intelligent project detection (
app/orsrc/app/) -
📦 Automatic dependency installation
-
📋 Automatic package manager detection
- npm
- pnpm
- yarn
- bun
-
🛡️ Safe file generation (never overwrites existing files)
-
🔍 Read-only project analysis to understand existing setup
-
📋 Migration planning before applying changes
-
🎯 Connected starter files that demonstrate the project structure
-
⚡ Beautiful interactive CLI experience
npx @prmvx/frontend-forge initor install globally
npm install -g @prmvx/frontend-forgethen
frontend-forge initScan the current project and print a detailed read-only analysis report.
Detects framework, package manager, language, routing, Tailwind CSS, installed dependencies, providers, and state management.
frontend-forge analyzeGenerate a read-only migration plan before applying any changes.
Select a target architecture and see which folders will be created, which already exist, recommended modules, and any warnings.
frontend-forge planTransform your project with a chosen architecture and modules.
frontend-forge initCreate a new Next.js project
npx create-next-app@latest my-appMove into the project
cd my-appRun Frontend Forge
frontend-forge initChoose:
- Architecture
- Modules
That's it.
Your project is now transformed into a production-ready frontend foundation.
Perfect for:
- Small projects
- MVPs
- Personal projects
Includes a clean and minimal folder structure.
Perfect for:
- Large applications
- Teams
- Long-term maintenance
Layer-based architecture with scalable project organization.
Perfect for:
- Complex products
- Domain-driven applications
- Large feature teams
Everything is organized by feature with a shared layer.
Perfect for:
- Multi-package projects
- Shared component libraries
- Teams managing multiple apps
Extends the Standard structure with Turborepo workspace packages (shared-ui, config-ts, config-eslint) and root configuration files.
Includes:
- Providers
- Components
- Hooks
- Utilities
- Constants
- Services
- Types
- Store
- Configuration
- Assets
Installs Axios and generates starter API service files.
Installs Zustand and creates a starter global store.
Frontend Forge never overwrites your existing files.
If a file already exists, it is skipped automatically.
This allows you to run the CLI multiple times without losing your work.
Frontend Forge automatically detects your project and uses the correct package manager.
- npm
- pnpm
- yarn
- bun
Current
- ✅ Next.js
Planned
- React
- Vite
- Electron
- React Native
- React support
- Vite support
- Better Auth module
- Directus module
- React Query module
- Prisma module
- Drizzle module
- Docker support
- Storybook support
- Testing presets
- AI-ready starter modules
Contributions, ideas, bug reports, and feature requests are always welcome.
If you find an issue or have an idea for improvement, please open an Issue or submit a Pull Request.
MIT License
Made with ❤️ by Parimal Sharma