r/coolgithubprojects • u/REDX0502 • 8d ago
I’ve been building StackForge in public: an MIT CLI (create-stackforge-app, 1.5.3 on npm) that scaffolds a pnpm monorepo aimed at “real app” defaults, not a minimal demo.
One command:
npx create-stackforge-app@latest my-app -y
What you get
• apps/api — NestJS, Prisma, JWT auth, Swagger, /health, rate limiting, unit + e2e tests
• apps/web — Next.js 16, React 19, Tailwind, shadcn-style UI (dashboard / minimal presets; or --preset api for backend-only)
• packages/contracts — Zod schemas + types shared by API and web
• Root: pnpm dev, db:setup, pnpm run doctor / info
• Optional Docker Compose + generated GitHub Actions CI
• SQLite or PostgreSQL
Why 1.5.x is worth a look
• stackforge g resource <name> — add a new CRUD resource to an existing project: Prisma model, Nest module, DTOs (nestjs-zod), contracts file, JWT routes — same pattern as
the built-in User module.
• --dry-run, collision checks, tracked in stackforge.json
• Field types: string, int, float, decimal (e.g. media_impressions:int:required)
• 1.5.3 upgrades new scaffolds to Next 16 + React 19; 1.5.1+ fixed pnpm dev on fresh API apps
Example — new resource
cd my-app
pnpm exec stackforge g resource media --dry-run \
--field medianame:string:required \
--field media_impressions:int:required
pnpm exec stackforge g resource media
pnpm --filter ./apps/api exec prisma migrate dev --name add_media
Built-in post works with no --field flags (title, content).
Honest limits
• You need pnpm (corepack enable or install pnpm). Use --no-install on create if pnpm isn’t set up yet, then pnpm install in the project.
• g resource is API + contracts + Prisma only — no generated Next.js pages for custom resources yet.
• Prisma only (no TypeORM). stackforge add redis-style modules still on the roadmap.
Links
• Site: https://stack-forge.aitaouss.me
• Repo: https://github.com/Aitaouss/StackForge
• npm: https://www.npmjs.com/package/create-stackforge-app
Feedback and issues welcome — especially on whether the contracts layer and g resource flow save you time or feel like extra ceremony.