Engineering Domain
The Engineering domain contains 3 agents specialized in generating TypeScript code for the SO1 platform stack: Hono backend APIs, Next.js frontends, and shared type definitions.Agents
| Agent | Stage | Purpose |
|---|---|---|
| Hono Backend | 3 | API routes, middleware, Zod validation for so1-control-plane-api |
| Next.js Frontend | 3 | React components, App Router patterns for so1-console |
| TypeScript Shared | 2 | Zod schemas, shared types, error envelopes for so1-shared |
SO1 Technology Stack
Backend
Hono 4
Fast web framework
Zod validation
Drizzle ORM
Fast web framework
Zod validation
Drizzle ORM
Frontend
Next.js 16
React 19
TanStack Query
Tailwind CSS 4
React 19
TanStack Query
Tailwind CSS 4
Shared
TypeScript 5.7
Zod schemas
Type contracts
Error envelopes
Zod schemas
Type contracts
Error envelopes
When to Use
- Backend Development
- Frontend Development
Use Hono Backend for:
- REST API endpoints
- Middleware (auth, logging, CORS)
- Database queries (Drizzle ORM)
- Request/response validation (Zod)
- Error handling
Typical Workflow
For a new feature (e.g., “User Settings API”):FORGE Stages
| Stage | Agents | Activities |
|---|---|---|
| Stage 2 (Implementation) | TypeScript Shared | Define schemas, types, contracts |
| Stage 3 (Documentation) | Hono Backend, Next.js Frontend | Implement APIs and UI components |
Code Standards
Hono Backend
Next.js Frontend
TypeScript Shared
Integration Points
All three agents integrate with:- Control Plane API endpoints
- Veritas prompts for patterns
- GitHub repositories (so1-io org)
Best Practices
Start with TypeScript Shared
Start with TypeScript Shared
Use Zod for validation
Use Zod for validation
Define Zod schemas for all API inputs/outputs. Use
.parse() for type safety.Follow repository conventions
Follow repository conventions
- Backend:
src/routes/for endpoints - Frontend:
src/app/for pages (App Router) - Shared:
src/schemas/for Zod schemas
Error handling
Error handling
Use standard error envelopes from
so1-shared: