Stratix Framework - v0.7.6
Build scalable, maintainable applications with Domain-Driven Design, hexagonal architecture, and CQRS.
Production-ready from day one with type safety, dependency injection, AI agents as first-class citizens, and enterprise patterns.

Documentation | Getting Started
Pre-release Notice: Stratix is in active development. The API may change until version 1.0.0.
- Plugin Architecture - Extensible plugin system with lifecycle management and health checks
- Context System - Portable domain contexts that work in monoliths or microservices
- Domain Modeling - Entity, AggregateRoot, ValueObject, and Repository patterns built-in
- Result Pattern - Explicit error handling without exceptions
- CQRS - Command and Query Responsibility Segregation with dedicated buses
- AI Agents - AI agents as first-class domain entities with production patterns
- Type Safety - Full TypeScript strict mode with phantom types
- Production Extensions - HTTP, validation, authentication, error handling
- Code Generation - CLI for scaffolding projects, contexts, entities, commands, and queries
# 1. Create project with HTTP
npm install -g @stratix/cli
stratix new my-app --with http
# 2. Generate context with HTTP routes
cd my-app
stratix generate context Product --props "name:string,price:number,stock:number" --with-http
# 3. Run
npm run dev
What you get:
- Complete TypeScript project with strict mode
- ESLint and Prettier configured
- Domain, Application, and Infrastructure layers
- CQRS commands and queries with handlers
- Repository pattern with in-memory implementation
- HTTP routes (POST, GET, GET/:id) - automatically generated
- Type-safe entity IDs and Result pattern
- Production-ready project structure
All in 3 commands and ~2 minutes!
- @stratix/core - Domain primitives, abstractions, and default implementations (zero dependencies)
- @stratix/runtime - Application builder, plugin registry, lifecycle management, and in-memory implementations
Manage external resources with lifecycle (initialize → start → stop)
Implement core interfaces (AI, DI, Validation)
Pure utility functions and classes (zero external dependencies)
- stratix-copilot - GitHub Copilot extension with Stratix framework knowledge
Complete documentation is available at stratix-dev.github.io/stratix
Contributions are welcome!
MIT License - see LICENSE file for details.