Autonomous Full-Stack App Builder & Architecture Engine
Scaffold production-grade, containerized full-stack applications with architectural blueprints at the speed of thought.- 🌊 Flow State Initiated
- ✨ What's New in v3.0
- 🚀 Enterprise Features
- 🏗️ System Architecture
- 🛠️ Installation & Setup
- 💻 Comprehensive CLI Usage
- 🧩 Template Catalog
- 🩺 System Diagnostics (
agentforge doctor) - 📐 Autonomous Architecture Blueprints
- ⌨️ Advanced LLM Integration
⚠️ Troubleshooting & FAQ- 🤝 Contributing
AgentForge is an autonomous full-stack app builder and architectural orchestrator built for Senior Engineers, Founders, and Vibe Coders. Rather than spending days manually wiring Next.js to FastAPI, debugging Docker Compose bridge networking, configuring CORS, and fighting GitHub Actions boilerplate—AgentForge synthesizes and scaffolds your entire stack in seconds.
Simply provide a natural language idea, and AgentForge crafts a complete full-stack codebase—featuring strict TypeScript frontends, scalable REST/WebSocket backends, container orchestration, CI/CD pipelines, and auto-generated system architecture specifications.
- 📐 Autonomous Architecture Blueprints (
ARCHITECTURE.md): Automatically writes a production-ready architectural specification for every generated project, complete with Mermaid system topology diagrams, REST/WebSocket API contracts, and security posture checklists. - ⚡ Scriptable / Non-Interactive CLI Mode: Fully automate scaffolding in scripts and CI/CD pipelines using
--name,--template,--output,--skip-install,--dry-run, and--force. - 🩺 AgentForge Doctor (
agentforge doctor): Built-in environment diagnostic suite that pre-flights Node.js (v18+), Git, Docker Engine daemon health, Docker Compose (v2 plugin vs standalone), OpenRouter keys, and port collisions on3000/8000. - ℹ️ Template Catalog & Deep Inspection (
agentforge list --details/agentforge info <template>): Detailed stack components, default ports, and category metadata for every template. - 🔍 Safe Dry-Run Simulations (
--dry-run): Preview the full rendered file tree and compiled template sizes without writing to disk. - 🐳 Adaptive Docker Orchestration: Seamlessly detects and leverages either the modern Docker Compose v2 CLI plugin (
docker compose) or standalone binary (docker-compose) with leak-free signal management. - 🧪 Expanded Verification Suite: 54 comprehensive unit and integration tests with 100% pass rate.
- ⚡ Instant Scaffolding: Generate production-ready
SaaS,Landing+API, orRealtimetemplates in under 2 seconds. - 🐳 Zero-Config Container Previews: The built-in
agentforge preview .command spins up multi-container Docker environments locally. - 🧠 Autonomous AI Vibe Pass: When an
OPENROUTER_API_KEYis present, AgentForge automatically refines project documentation and system architecture using cutting-edge models. - 🛡️ Strict Type-Safe Boilerplate: Ships with
Next.js 14 App Router,FastAPI(Python 3.11),Pydantic v2,Express, andSocket.io. - 🌐 Vercel-Ready: Native edge routing injected automatically via
vercel.json. - 🔄 Automated CI/CD: Pre-configured GitHub Actions test and lint pipelines for both frontend and backend tiers.
AgentForge utilizes a modular compilation pipeline:
flowchart LR
User["Developer Prompt / Idea"] --> CLI["AgentForge CLI"]
CLI --> Doctor["System Doctor (Diagnostics)"]
CLI --> TM["Template Manager (Catalog)"]
TM --> PG["Project Generator (Handlebars)"]
CLI --> Planner["Architecture Planner (Specs & Mermaid)"]
CLI --> LLM["LLM Optimizer (OpenRouter)"]
PG --> Output["Containerized Project Workspace"]
Planner --> Output
LLM -.->|Refine Docs| Output
Output --> Docker["Preview Server (Docker Compose)"]
Ensure the following tools are installed:
- Node.js (v18 or higher)
- Docker and Docker Compose (Docker Desktop recommended)
- Git
Verify your environment anytime by running:
npx @shenald/agentforge doctorInstall globally via npm:
npm install -g @shenald/agentforgeOr execute directly with npx:
npx @shenald/agentforge create "A developer productivity dashboard"Launch the visual interactive wizard:
agentforge createOr pass an initial concept:
agentforge create "A high-performance crypto analytics dashboard"Bypass all prompts for scripts, CI/CD, or batch generation:
agentforge create "Subscription billing tracker" \
--name billing-tracker \
--template saas \
--output ./projects/billing \
--skip-install| Flag | Description |
|---|---|
-n, --name <name> |
Project name (kebab-case, e.g. my-saas) |
-t, --template <name> |
Template type (saas, landing-api, realtime) |
-o, --output <dir> |
Custom output directory destination |
--skip-install |
Skip automatic npm install post-generation |
--dry-run |
Preview files that would be generated without writing to disk |
--no-llm |
Skip LLM README and architecture refinement |
--no-plan |
Skip ARCHITECTURE.md generation |
-f, --force |
Overwrite target directory if it already exists |
Inspect what will be created without modifying the filesystem:
agentforge create "Real-time canvas" --name canvas-app --template realtime --dry-runList all available templates:
agentforge listView detailed tech stack, exposed ports, and descriptions:
agentforge list --detailsInspect a specific template in depth:
agentforge info saasSpin up the containerized application locally:
cd my-app
agentforge preview .Securely store your OpenRouter API key for autonomous AI enhancements:
agentforge auth| Template | Stack | Default Ports | Ideal Use Case |
|---|---|---|---|
saas |
Next.js 14, FastAPI (Python), Tailwind CSS, Docker | Frontend: 3000Backend: 8000 |
SaaS products, data analytics, ML APIs |
landing-api |
Next.js 14, Express (TypeScript), Tailwind CSS, Docker | Frontend: 3000Backend: 8000 |
Marketing pages, REST microservices, lead gen |
realtime |
Next.js 14, Socket.io (Node.js), Tailwind CSS, Docker | Frontend: 3000WebSocket: 8000 |
Chat apps, collaborative tools, live dashboards |
AgentForge includes an automated doctor to diagnose environment health:
agentforge doctorOutput:
🩺 AgentForge System Diagnostics Report
✔ Node.js Environment: Node.js v20.10.0 (v18+ requirement met) [PASSED]
✔ Git CLI: git version 2.43.0 [PASSED]
✔ Docker Engine: Docker version 24.0.6 (Daemon active) [PASSED]
✔ Docker Compose: Docker Compose version v2.21.0 (Plugin v2) [PASSED]
✔ OpenRouter LLM Integration: Configured (sk-or-v1-***42a) [PASSED]
✔ Port 3000 (Frontend default port): Available [PASSED]
✔ Port 8000 (Backend default port): Available [PASSED]
✨ System is fully configured and ready to forge applications!
Every scaffolded project includes a comprehensive ARCHITECTURE.md file featuring:
- Mermaid Topology Diagrams illustrating frontend, backend, and database network flow.
- Service Contracts detailing REST and WebSocket endpoints.
- Container Network Specifications for Docker Compose bridging.
- Security & Authentication Posture (CORS, JWT/Session handling, env secret isolation).
- Production Deployment Checklists for Vercel, AWS ECS, Google Cloud Run, and Fly.io.
AgentForge supports free and paid models via OpenRouter:
- Set via CLI:
agentforge auth - Or via environment variable:
export OPENROUTER_API_KEY="sk-or-v1-..." - Custom OpenRouter base URL:
export OPENROUTER_BASE_URL="https://openrouter.ai/api/v1"
When present, AgentForge automatically refines the generated README and system architecture to deeply align with your specific domain.
If running agentforge preview complains about Docker Compose:
- Run
agentforge doctorto check whetherdocker compose(v2 plugin) ordocker-compose(standalone) is installed. - Ensure Docker Desktop is running.
If port 3000 or 8000 is occupied, agentforge doctor will flag the conflict before you attempt container initialization.
Contributions are welcome!
- Fork the repository.
- Create your feature branch (
git checkout -b feat/amazing-improvement). - Verify test and lint suites (
npm test && npm run lint). - Commit your changes (
git commit -m 'feat: add custom template support'). - Open a Pull Request.