BluePrinta coordinates seven specialized AI roles across product planning, architecture, infrastructure, security, UI/UX, implementation, and QA.
Instead of ending with a long agent transcript, BluePrinta turns model outputs into validated, structured artifacts that can be rendered, refined, streamed, persisted, and exported.
Project status: active beta and reference implementation. Local use requires your own Gemini API key and self-managed data storage; this repository is not a hosted service.
β‘ Quick Start Β· β¨ Features Β· ποΈ Architecture Β· π Documentation Β· π€ Contributing Β· πΊοΈ Roadmap
A software idea usually crosses multiple disciplines before implementation: product requirements, architecture, infrastructure, security, UI design, engineering planning, and QA.
BluePrinta models that process as a structured multi-agent pipeline.
Its core design goal is artifact continuity:
- upstream decisions remain available to downstream agents
- agent outputs are validated against schemas
- structured outputs can become interactive UI
- narrow artifact edits do not require full-pipeline regeneration
- long-running generation is observable from the frontend
- Product Manager β user stories and acceptance criteria
- Architect β API contracts, database schemas, and ADRs
- DevOps Infrastructure β CI/CD and infrastructure planning
- Security Architecture β threat modeling and security controls
- UI Designer β design tokens and component hierarchies
- Engineer Implementation β file structures and implementation plans
- QA Verification β test strategies and verification plans
Edit artifact JSON through predefined operations such as:
set_at_pathadd_array_item
The refinement API updates targeted artifact regions instead of rerunning the complete agent pipeline.
POST /api/diagrams/artifacts/editThis keeps narrow edits explicit and avoids unnecessary regeneration.
Agent outputs are validated against Zod schemas and machine-readable JSON structures before becoming application artifacts.
That structure enables:
- predictable rendering
- downstream agent context
- targeted refinement
- artifact export
- stronger failure detection than free-form prose alone
Upstream agent outputs are converted into interactive React views rather than being exposed only as raw JSON or chat transcripts.
Long-running generation is represented as jobs, while progress is streamed to the UI through Server-Sent Events.
Each role receives the relevant artifacts produced earlier in the pipeline so architectural and implementation decisions can remain connected.
The orchestration layer uses Gemini context caching to reduce repeated prompt context across generation flows.
Generated artifacts can be exported as:
- Markdown
- HTML
- PPTX
Prompts, settings, and uploads persist across reloads on the creation flow.
Limited diagram generation is available for non-authenticated sessions with session tracking.
graph LR
A[User Request] --> B[Product Manager]
B --> C[Architect]
C --> D[DevOps]
D --> E[Security]
E --> F[UI Designer]
F --> G[Engineer]
G --> H[QA Verification]
H --> I[Structured Artifact Workspace]
I --> J[Targeted Refinement API]
J --> I
| Stage | Primary output |
|---|---|
| Product Manager | User stories, requirements, acceptance criteria |
| Architect | API contracts, schemas, ADRs |
| DevOps | Infrastructure and CI/CD design |
| Security | Threat model and security controls |
| UI Designer | Tokens, layouts, component structure |
| Engineer | File structure and implementation plan |
| QA | Test strategy and verification plan |
- Orchestrator β runs agents in sequence and forwards upstream artifacts
- Execution service β handles timeouts, retries, and execution errors
- Artifact schemas β enforce structured agent output contracts
- Refinement API β applies tool-based targeted edits
- Generation jobs β represent long-running orchestration work
- SSE streaming β surfaces progress to the frontend
- Prisma + SQLite β local development persistence
# Clone the repository
git clone https://github.com/josephsenior/BluePrinta.git
cd BluePrinta
# Install dependencies
pnpm install
# Configure the environment
cp .env.example .env
# Create the local SQLite database
pnpm db:generate
pnpm db:push
# Run the development server
pnpm devOpen http://localhost:3000.
- Node.js 18+
- pnpm
- Gemini API key
- Git
Create .env from .env.example and add a Google AI key:
GOOGLE_AI_API_KEY="your-google-ai-api-key"
DATABASE_URL="file:./prisma/local.db"
METASOP_LLM_PROVIDER="gemini"
METASOP_LLM_MODEL="gemini-3.5-flash"The codebase currently retains some legacy
METASOP_*environment-variable names for runtime compatibility after the BluePrinta rename.
Optional agent controls:
# METASOP_AGENT_TIMEOUT=300000
# METASOP_AGENT_RETRIES=2The CI workflow installs dependencies, type-checks, lints, runs the Vitest suite, and performs a production build.
# Development
pnpm dev
# Type checking
pnpm type-check
# Lint
pnpm lint
pnpm lint:fix
# Unit tests
pnpm test
pnpm test:watch
pnpm test:coverage
pnpm test:ui
# Production build
pnpm build
pnpm startnpx tsx tests/integration/verify_full_pipeline.ts
npx tsx tests/integration/test_cascading_refinement.tsWith a custom model:
METASOP_LLM_MODEL=gemini-3-pro-preview \
npx tsx tests/integration/verify_full_pipeline.tsOn Windows, pnpm build may encounter an EPERM symlink error when Next.js generates .next/standalone. See the troubleshooting guide.
| Guide | Description |
|---|---|
| Documentation Hub | Full documentation index and learning path |
| Setup Guide | Install, configure, and run locally |
| Architecture | System design and agent pipeline |
| API Reference | REST endpoints and examples |
| LLM Configuration | Gemini setup and model selection |
| Deployment | Deployment guidance |
| Testing | Unit and integration testing |
| Troubleshooting | Common issues and fixes |
| Contributing | Contribution workflow |
Contributions are welcome.
- Fork the repository
- Create a feature branch
git checkout -b feature/my-feature- Make the change
- Run the relevant checks
pnpm test
pnpm type-check
pnpm lint- Commit and push
git add .
git commit -m "feat: add my feature"
git push origin feature/my-feature- Open a pull request
See CONTRIBUTING.md for the full workflow.
- Multi-agent SDLC orchestration
- Tool-based artifact refinement
- Structured Zod validation
- Interactive web interface
- SSE generation progress
- Gemini context caching
- Documentation exports
- Draft persistence
- Guest generation flows
- Additional LLM providers
- Deeper analytics and generation insights
- Extended artifact editing operations
- Stronger evaluation of cross-agent consistency
- Enterprise authentication and audit capabilities
See ROADMAP.md for the detailed roadmap.
Distributed under the MIT License. See LICENSE.
Built with:
Built as an experiment in turning multi-agent planning into structured, editable software artifacts.
β If the architecture is useful to you, consider starring the repository.