create-bro-framework
v2.4.8
Published
Interactive CLI starter to scaffold zero-boilerplate bro.js backend applications.
Maintainers
Readme
create-bro-framework
Scaffold production-ready bro.js applications in seconds.
create-bro-framework is an interactive CLI for generating either a lightweight Node.js backend or a full-stack Next.js App Router application with bro.js configured and ready to run.
Quick Start
npx create-bro-framework bro-appThe CLI asks you to choose:
- Standard Node.js Backend
- Next.js App Router
You can also choose JavaScript or TypeScript during setup.
Then start your project:
cd my-app
npm run devWhat You Get
Standard Backend
- File-based routing in
routes/ - Zod-powered request validation
- Authentication, rate limiting, and optional Redis support
- Localization with
locale/ - Background cron examples in
tasks/ - Socket.IO support through
ctx.io - An environment-specific
agent.mdfor Cursor, Claude, Antigravity, and other coding agents
Next.js App Router
- NextJS App with ESLint, Tailwind,
src/, and App Router bro-framework/nextfactory insrc/lib/- Sample API route with caching and rate limiting
- Native Web File upload support
- Localization in
src/locale/ - Serverless-friendly configuration
- An environment-specific
agent.mdwith AI coding rules
Requirements
- Node.js
18or newer - npm
Options
Pass the target directory as the first argument. If omitted, the CLI uses my-bro-api.
npx create-bro-framework # creates ./my-bro-api
npx create-bro-framework services-api # creates ./services-apiThe CLI also exposes the create-bro-app command when installed globally:
npm install --global create-bro-framework
create-bro-app my-app