Version: 0.1.0 Updated: November 2025 Status: Production Ready
- Start with Installation
- Build your First Application
- Understand Core Concepts
- Systems Overview - Quick reference for all systems
- Circulatory System - Message routing
- Immune System - Security & validation
- Testing Guide - Comprehensive testing
- API Reference - Complete API documentation
- Architecture - Design decisions
- Main README - Framework overview
docs/
βββ getting-started/ # Quick start guides
β βββ installation.md # Installation & setup
β βββ first-app.md # Your first application
β βββ project-structure.md # Project organization
β βββ cli-tools.md # CLI reference
β
βββ core-concepts/ # Fundamental concepts
β βββ neuromorphic-architecture.md # Why biological metaphors
β βββ signal-flow.md # Reactive patterns
β βββ state-management.md # Managing state
β βββ lifecycle.md # Component lifecycle
β
βββ systems/ # System-by-system guides
β βββ SYSTEMS_OVERVIEW.md # Quick reference
β βββ circulatory/ # Message routing
β β βββ README.md
β βββ immune/ # Security
β β βββ README.md
β βββ muscular/ # Data processing
β βββ skeletal/ # Schema validation
β βββ respiratory/ # Networking
β βββ glial/ # State & performance
β βββ nervous/ # Core reactive
β βββ ui/ # Visual components
β βββ visualization/ # Charts & graphs
β βββ theater/ # Testing & dev tools
β
βββ tutorials/ # Hands-on tutorials
β βββ todo-app/ # Complete CRUD app
β βββ authentication/ # User auth system
β βββ realtime/ # WebSocket features
β βββ microservices/ # Distributed systems
β βββ event-sourcing/ # Event-driven architecture
β βββ cqrs/ # Command-Query separation
β βββ saga-pattern/ # Distributed transactions
β
βββ testing/ # Testing guides
β βββ TESTING_GUIDE.md # Comprehensive guide
β βββ unit-testing.md # Unit testing
β βββ integration-testing.md # Integration testing
β βββ e2e-testing.md # End-to-end testing
β βββ theater-system.md # Theater testing tools
β
βββ architecture/ # Deep dives
β βββ design-philosophy.md # Core principles
β βββ system-integration.md # How systems work together
β βββ performance.md # Optimization strategies
β βββ security.md # Security model
β βββ deployment.md # Production deployment
β
βββ api/ # API reference
β βββ API_REFERENCE.md # Complete API docs
β βββ types.md # TypeScript types
β βββ configuration.md # Config options
β
βββ guides/ # How-to guides
β βββ creating-components.md
β βββ adding-auth.md
β βββ state-setup.md
β βββ api-endpoints.md
β βββ validation.md
β
βββ examples/ # Code examples
β βββ README.md
β βββ snippets.md
β βββ patterns.md
β
βββ contributing/ # Contributing
β βββ README.md
β βββ development.md
β βββ architecture.md
β
βββ faq.md # FAQ
βββ troubleshooting.md # Common issues
βββ community.md # Community resources
| Document | Description | Audience |
|---|---|---|
| Installation | Setup and installation guide | Beginners |
| First Application | Build a complete user management system | Beginners |
| Project Structure | Understanding the layout | All |
| CLI Tools | Command-line interface | All |
| Document | Description | Key Topics |
|---|---|---|
| Neuromorphic Architecture | Why biological metaphors | Metaphors, NeuralNode, Connections |
| Signal Flow | Reactive patterns | Signals, Thresholds, Propagation |
| State Management | Managing state | Astrocyte, Immutability, Caching |
| Lifecycle | Component lifecycle | Activation, Deactivation, Health |
| System | Purpose | Key Components |
|---|---|---|
| Circulatory | Message routing | Heart, BloodCell, Patterns |
| Immune | Security & auth | TCell, BCell, Macrophage |
| Muscular | Data processing | Muscle, MuscleGroup |
| Skeletal | Schema validation | Bone, Validators |
| Respiratory | Networking | Lung, Diaphragm, Router |
| Glial | State & perf | Astrocyte, Oligodendrocyte |
| Nervous | Core reactive | NeuralNode, Connection |
| Theater | Testing | Stage, Laboratory |
| Tutorial | What You'll Build | Concepts Covered |
|---|---|---|
| Todo App | Complete CRUD application | All systems, persistence |
| Authentication | User auth system | TCell, BCell, sessions |
| Real-time | WebSocket chat | WebSocket, pub-sub |
| Microservices | Distributed system | Heart, circuits, scaling |
| Event Sourcing | Event-driven app | EventSourcing, CQRS |
| Saga Pattern | Distributed transaction | Saga, compensation |
| Document | Content | Use When |
|---|---|---|
| API Reference | Complete API | Need specific API details |
| Systems Overview | Quick reference | Need quick lookup |
| Types | TypeScript types | Writing TypeScript |
| Configuration | Config options | Configuring components |
| Document | Topics | Audience |
|---|---|---|
| Design Philosophy | Core principles, decisions | All developers |
| System Integration | How systems work together | Advanced |
| Performance | Optimization strategies | Production |
| Security | Security model | Security-focused |
| Deployment | Production deployment | DevOps |
Every guide includes working code examples you can run immediately.
Diagrams and flow charts illustrate complex concepts.
From beginner tutorials to advanced architecture deep-dives.
Examples mirror production use cases, not toy problems.
Learn the recommended patterns and approaches.
All examples include tests demonstrating proper testing.
// 1. Define schema
const UserSchema = new Bone('User', z.object({
email: z.string().email(),
}));
// 2. Create service
class UserService extends CorticalNeuron {
async process(input: Input): Promise<Output> {
// Business logic here
}
}
// 3. Add security
const auth = new TCell({ secretKey: 'secret' });
const authz = new BCell({});
const sanitizer = new Macrophage({ xss: true });
// 4. Set up messaging
const heart = new Heart();
const pubsub = new PublishSubscribe(heart);
// 5. Initialize
await service.activate();
await auth.activate();
await authz.activate();// 1. Create stage
const stage = new Stage({ title: 'Tests' });
const lab = new Laboratory({ stage });
// 2. Mount component
stage.mount('service', myService);
// 3. Write experiments
lab.experiment('should work', async () => {
const service = stage.getComponent('service');
const result = await service.process({ data: 'test' });
Hypothesis.expect(result.success).toBe(true);
});
// 4. Run tests
await lab.runAll();// 1. Set up router
const router = new Router({ basePath: '/api' });
// 2. Add security middleware
router.use(async (req, next) => {
const session = await auth.verifyToken(req.headers.authorization);
req.session = session;
return next(req);
});
// 3. Define routes
router.get('/users/:id', async (req) => {
await authz.authorize({
userId: req.session.userId,
resource: 'users',
action: 'read',
});
const user = await userService.getUser(req.params.id);
return { data: user };
});
// 4. Start server
await router.listen(3000);- Installation (15 min)
- First Application (45 min)
- Neuromorphic Architecture (30 min)
- Systems Overview (20 min)
- Testing Guide (30 min)
Total: ~2.5 hours to productivity
- Installation
- Respiratory System - HTTP & routing
- Immune System - Security
- Skeletal System - Validation
- Testing Guide
- Neuromorphic Architecture
- Circulatory System - Messaging
- Event Sourcing Tutorial
- Microservices Tutorial
- Saga Pattern
- UI System
- Visualization System
- Theater System - Component dev
- State Management
Found an error? Want to add an example? See Contributing Guide.
Documentation follows these principles:
- Hands-on: Working code examples
- Progressive: Build complexity gradually
- Complete: Cover all common use cases
- Tested: All examples are tested
- Clear: Explain both how and why
- Main README - Framework overview
- Roadmap - Future plans
- Changelog - Version history
- License - MIT License
- GitHub Issues - Bug reports
- Discussions - Q&A
- Contributing - How to contribute
- Examples Directory - Code examples
- E2E Tests - Real-world usage
- Storybook - UI components
All documentation in this project follows:
- β Markdown formatting - Consistent structure
- β Code examples - Working, tested code
- β Clear explanations - Both how and why
- β Visual aids - Diagrams where helpful
- β Real-world focus - Production-ready patterns
- β Complete coverage - All features documented
- β Easy navigation - Clear structure
- β Up to date - Reflects current version
This documentation covers:
- Framework Version: 0.1.0
- TypeScript: 5.3+
- Node.js: 18.0+
- Bun: 1.0+
For older versions, see version-specific branches.
Documentation feedback is invaluable:
- Found an error? Open an issue
- Have a suggestion? Start a discussion
- Want to contribute? See contributing guide
Last Updated: November 2025 Maintainers: Synapse Core Team License: MIT