Replit Reference Architecture Overview Production architecture for applications on Replit. Covers project structure, configuration files, data layer (PostgreSQL + KV + Object Storage), authentication, deployment strategy, and the platform constraints that shape architectural decisions. Architecture Diagram Instructions Step 1: Project Structure Step 2: Configuration Files Step 3: Configuration Module Step 4: Data Layer Strategy | Storage | Use When | Limits | |---------|----------|--------| | PostgreSQL | Structured data, relations, queries | Plan-dependent | | Replit KV | Simple cache, sessi…