Stratix Framework - v0.7.6

Stratix Logo

Stratix

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.

License: MIT TypeScript Node.js Version

Documentation | Getting Started

Pre-release Notice: Stratix is in active development. The API may change until version 1.0.0.

Features

  • 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

Quick Start

# 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!

Available Packages

Core Packages

  • @stratix/core - Domain primitives, abstractions, and default implementations (zero dependencies)
  • @stratix/runtime - Application builder, plugin registry, lifecycle management, and in-memory implementations

Plugins 🔌

Manage external resources with lifecycle (initialize → start → stop)

Database Plugins

HTTP Plugins

Messaging & Observability

Security Plugins

Providers 🔧

Implement core interfaces (AI, DI, Validation)

AI Providers

Dependency Injection Providers

Validation Providers

Libraries 📚

Pure utility functions and classes (zero external dependencies)

Development Tools

VS Code Extension

  • stratix-copilot - GitHub Copilot extension with Stratix framework knowledge

Documentation

Complete documentation is available at stratix-dev.github.io/stratix

Contributing

Contributions are welcome!

License

MIT License - see LICENSE file for details.