allframe 0.1.28

Complete Rust web framework with built-in HTTP/2 server, REST/GraphQL/gRPC, compile-time DI, CQRS - TDD from day zero
Documentation
# AllFrame Documentation Index

**Last Updated**: 2026-02-28
**Repository**: all-frame
**Project**: AllFrame - The Composable Rust API Framework

---

## ๐Ÿ“– Overview

AllFrame is the first Rust web framework **designed, built, and evolved exclusively through Test-Driven Development (TDD)**. This documentation supports the development and use of AllFrame as a framework, not an application.

**Core Promise:**
A composable crate ecosystem (`allframe-core`, `allframe-mcp`, `allframe-forge`) that provides compile-time DI, auto OpenAPI 3.1, OpenTelemetry, protocol-agnostic routing (REST/GraphQL/gRPC), CQRS/ES infrastructure, resilience patterns, and MCP server capabilities โ€” all with zero external runtime dependencies.

---

## ๐Ÿ“‚ Documentation Structure

For complete documentation structure and navigation, see **[INDEX.md](./INDEX.md)**.

### Key Documents

- **[PROJECT_STATUS.md]./PROJECT_STATUS.md** - Current status, roadmap, and metrics
- **[PRD_01.md]./current/PRD_01.md** - Product Requirements (PRIMARY SOURCE OF TRUTH)
- **[Phase Documentation]./phases/** - All completed phases (CQRS, Router, etc.)
- **[Announcements]./announcements/** - Project announcements and milestones

---

## ๐Ÿ—„๏ธ Documentation Conventions

### Timestamps
All timestamped documentation uses format: `YYYY-MM-DD_FILENAME.md`

Example: `2025-11-23_ARCHITECTURE_DECISIONS.md`

### Status Markers
- โœ… **Complete** - Feature fully implemented and tested
- ๐Ÿšง **Active** - Currently being worked on
- ๐Ÿ“‹ **Planned** - Planned for future implementation
- โš ๏ธ **Issues** - Known problems or deprecated content

### Linking
Always use relative paths:
```markdown
[PRD](./current/PRD_01.md)
[Clean Architecture Skill](../.claude/skills/rust-clean-architecture.md)
```

---

## ๐Ÿ” Finding Documentation

### By Topic
- **Product Requirements**: `/docs/current/PRD_01.md`
- **Architecture**: `/docs/architecture/`
- **How-To Guides**: `/docs/guides/`
- **Historical**: `/docs/archive/`

### By Development Phase
- **Planning**: Start with `PRD_01.md`
- **Implementation**: Follow TDD workflow in `.claude/TDD_CHECKLIST.md`
- **Architecture**: Apply patterns from `.claude/skills/rust-clean-architecture.md`

---

## ๐Ÿ“ Contributing Documentation

### Creating New Documentation
1. Determine type (guide, architecture, operations)
2. Place in appropriate directory
3. Add timestamp if appropriate
4. Update this README.md
5. Add status marker (CURRENT, DRAFT, etc.)

### Deprecating Documentation
1. Move to `/docs/archive/` with timestamp prefix
2. Add deprecation marker to title
3. Update this INDEX
4. Add link to replacement document if applicable

### Updating Documentation
1. Update the document
2. Update "Last Updated" timestamp in document
3. If major changes, consider creating new timestamped version

---

## ๐ŸŽฏ AllFrame Core Concepts

### Tech Stack
- **Language**: Rust (edition 2021+)
- **Async Runtime**: Tokio
- **HTTP Server**: Hyper
- **Zero External Runtime Dependencies**: Only Tokio + Hyper + std

### Key Features
- **Compile-time DI**: Dependency injection resolved at compile time
- **Auto OpenAPI 3.1**: Swagger UI generated automatically
- **OpenTelemetry**: Auto-instrumentation for observability
- **Protocol-agnostic**: REST โ†” GraphQL โ†” gRPC โ†” WebSockets via config
- **CQRS + Event Sourcing**: Enforced architectural patterns
- **MCP Server**: LLMs can call your API as tools
- **LLM Code Generation**: `allframe forge` CLI

### Development Workflow
```bash
# Run tests (TDD-first!)
cargo test

# Run tests with coverage
cargo llvm-cov

# Check code quality
cargo clippy
cargo fmt

# Run examples
cargo run --example hello_world

# Build release
cargo build --release
```

---

## ๐Ÿงช Testing Philosophy

**100% TDD - NO EXCEPTIONS**

Every feature, macro, and public API must follow the RED-GREEN-REFACTOR cycle.

See **[TDD_CHECKLIST.md](../.claude/TDD_CHECKLIST.md)** for the complete mandatory workflow.

---

## ๐Ÿ“š Quick Reference

### Core Documentation
- **[PRD_01.md]./current/PRD_01.md** - Product Requirements
- **[PROJECT_STATUS.md]./PROJECT_STATUS.md** - Current status and roadmap
- **[TDD Checklist]../.claude/TDD_CHECKLIST.md** - Testing workflow
- **[INDEX.md]./INDEX.md** - Complete documentation index

### External Resources
See **[INDEX.md](./INDEX.md#external-resources)** for complete list of external references.

---

## ๐Ÿš€ Getting Started

### For Framework Users
1. Read [PRD_01.md]./current/PRD_01.md to understand AllFrame's vision
2. Follow getting started guide (TBD in `/docs/guides/`)
3. Run `allframe ignite my-api` to scaffold a new project

### For Framework Contributors
1. Read [PRD_01.md]./current/PRD_01.md thoroughly
2. Review [.claude/skills/rust-clean-architecture.md]../.claude/skills/rust-clean-architecture.md
3. Follow [.claude/TDD_CHECKLIST.md]../.claude/TDD_CHECKLIST.md for ALL changes
4. Ensure 100% test coverage before submitting PR

---

## ๐Ÿ”— Repository Structure

```
allframe/
โ”œโ”€โ”€ crates/
โ”‚   โ”œโ”€โ”€ allframe-core         # Single public crate
โ”‚   โ”œโ”€โ”€ allframe-macros       # Proc macros (internal)
โ”‚   โ””โ”€โ”€ allframe-forge        # LLM code-gen CLI
โ”œโ”€โ”€ tests/
โ”‚   โ”œโ”€โ”€ integration/          # One file per feature flag
โ”‚   โ”œโ”€โ”€ property/             # Property-based tests
โ”‚   โ””โ”€โ”€ forge_regression/     # LLM generation tests
โ”œโ”€โ”€ examples/
โ”‚   โ””โ”€โ”€ transformer_modes/    # Protocol examples
โ”œโ”€โ”€ benches/
โ”‚   โ””โ”€โ”€ techempower/          # Performance benchmarks
โ””โ”€โ”€ docs/
    โ”œโ”€โ”€ current/              # Active documentation
    โ”œโ”€โ”€ guides/               # Tutorials
    โ””โ”€โ”€ architecture/         # ADRs
```

---

## ๐Ÿ“ง Documentation Maintainers

For questions or suggestions about documentation:
- Create an issue with `[docs]` prefix
- Follow contribution guidelines
- Ensure all documentation follows TDD principles (code examples must have tests)

---

**Navigation**: [Home]../README.md | [PRD]./current/PRD_01.md | [Guides]./guides/ | [Architecture]./architecture/ | [Archive]./archive/

---

**AllFrame. One frame. Infinite transformations.**
*Built with TDD, from day zero.*