Architecture

Platform Architecture

The production stack combines FastAPI, PostgreSQL, Redis, Celery workers, and a Next.js control surface — deployed as containerized services with full observability.

CAD interface render
Stack

Four Layers, One System

FastAPI · JWT · REST

API Layer

FastAPI routes expose authenticated workflows for design, CAD jobs, trends, supply, billing, and admin operations. Every endpoint is versioned and secured.

Celery · Redis · Workers

Async Workloads

Celery workers process CAD generation and trend ingestion/scoring asynchronously with configurable retry logic and periodic task scheduling.

PostgreSQL · SQLAlchemy · Alembic

Data Layer

SQLAlchemy models persist users, jobs, trend signals, invoices, subscriptions, usage records, and orders with full migration support.

Next.js · React · Three.js

Frontend

Next.js app routes are wired to live APIs for workspace and admin use. WebGL-powered 3D visualization for CAD previews.

CAD pipeline render
Technical blueprint