Hey!
We're a small software agency planning a large SaaS platform for public institutions. We've talked to several developers and compared recommendations from different AI models, but we're still getting conflicting opinions on the best tech stack.
We're starting from scratch, with no preferred language or framework. Most development will be done using Claude Code and Codex, with us handling architecture, requirements, and reviews.
What we're building:
500–1,000 institutions (multi-tenant SaaS)
50–80 modules with thousands of features: document management, registries, requests, approvals, workflows, GIS, reporting, etc.
Around 100k public employees and potentially 20–100k citizens using the platform
Hundreds of dynamic forms, complex roles, permissions, and institution-specific configurations
PDF generation, electronic signatures, document archiving, and integrations with government/third-party APIs
A platform-wide AI assistant that can search documents, fill forms, generate files, and execute authorized actions
Web, Windows desktop, Android, and iOS
High availability, strong security, GDPR compliance, and long-term maintainability (10+ years)
Our main questions:
NestJS or FastAPI? Which would you choose for a large modular backend? Does TypeScript across the stack outweigh Python's ecosystem, considering the AI mostly uses external LLM APIs?
React or Angular? Which is better for 80+ modules, complex forms, dashboards, and long-term maintenance?
Mobile: Flutter, React Native, or something else? Ideally, we'd reuse as much code as possible.
Multi-tenancy: PostgreSQL shared schema + RLS, or a separate database per institution? Which scales and maintains better at 1,000 tenants?
Architecture: Modular monolith or microservices? How would you organize modules, dynamic forms, permissions, and external integrations?
AI: Would PostgreSQL + pgvector be enough for RAG and tool calling, or would you introduce a knowledge graph? How would you enforce permissions and prevent prompt injection?
API: REST + OpenAPI or GraphQL for third-party integrations?
AI-assisted coding: How would you structure a monorepo, CI, testing, and code reviews when most code is generated by Claude Code/Codex?
If you were starting this from zero today, what stack would you choose, and what would you avoid?
We're not chasing hype or benchmarks. We want something secure, reliable, scalable, and maintainable by a small team for the next 10+ years.
Would really appreciate advice from people who've built large enterprise or multi-tenant systems.