System Architecture Overview
System Architecture Overview
Seed & Source follows a layered, hexagonal architecture across all templates. This page explains the high-level structure.
Template layers
+-------------------------------------+| UI / Driving Adapters || (FastAPI routes, React, Rails) |+-------------------------------------+| Core / Domain || use_cases/ -> entities/ -> ports/ |+-------------------------------------+| Infrastructure / Driven Adapters || (PostgreSQL, Redis, Stripe, S3) |+-------------------------------------+Service topology (local)
graph LR
Browser --> ReactClient["React Client :3002"]
Browser --> StaticLanding["Static Landing :4000"]
ReactClient --> RailsAPI["Rails API :3001"]
ReactClient --> PythonAPI["Python SaaS :8000"]
RailsAPI --> Postgres[("PostgreSQL")]
PythonAPI --> Postgres
PythonAPI --> LicenseServer["License Server :8001"]
LicenseServer --> Stripe[("Stripe")]
Key design rules
- Dependency inversion — core code never imports infrastructure code
- Feature injection — capabilities (payments, auth) are added via
sscli injectwithout touching core logic - Docker-first — all services run in containers locally; production mirrors the same image
- Single deploy artifact — each template builds to one Docker image with a
render.yamlfor Render