Skip to main content

Technology Stack

Gap Closure: B1.1 + B1.3

This page addresses Blueprint Supplement Gap B1.1 ("No concrete tech stack recommendation") and Gap B1.3 ("Missing cost analysis"). The original specification described capabilities without recommending specific technologies or estimating infrastructure costs. This page provides concrete recommendations with cost projections per deployment stage.

The ReGenesis technology stack is designed for enterprise deployment with security, scalability, and maintainability as primary concerns. Every technology choice is justified by cost, team capability, regulatory compliance, and long-term viability.

Stack at a Glance

LayerTechnologyRationale
FrontendNext.js 14+ (React)SSR for performance, React ecosystem, strong hiring pool
Backend APINode.js (TypeScript) or Python (FastAPI)Both viable; recommend based on team skills
DatabasePostgreSQL 16+ with RLSEnterprise-grade, GDPR-friendly, Row-Level Security
Object StorageAWS S3Industry standard, lifecycle policies, encryption
Vector Databasepgvector (pilot) then Pinecone (scale)Start simple, scale when needed
CacheRedis 7 (ElastiCache)Session management, rate limiting, feature flags
SearchPostgreSQL full-text (pilot) then Elasticsearch (scale)Avoid premature optimization
LLMAnthropic Claude APIBest reasoning, safety features, enterprise DPA
AuthCustom JWT + SAML library, or Auth0/WorkOSSSO/SAML required for enterprise
InfrastructureAWS (us-east-1), TerraformSOC 2 aligned, IaC from day one
CI/CDGitHub ActionsIntegrated with codebase, good marketplace
MonitoringDatadog + CloudWatchAPM, logging, dashboards, alerting
ComplianceVanta or DrataAutomated SOC 2 evidence collection

Cost Projections

StageMonthly Infrastructure CostTeam SizeTimeline
MVP/Demo (Phase 0)$500 - $1,2002-3 engineers2-3 months
Pilot (Phase 1)$2,800 - $5,5004-6 engineers4-6 months
GA Launch (Phase 2)$8,000 - $15,0006-10 engineers6-9 months
Global/Enterprise (Phase 3)$25,000 - $60,00010-15 engineers12+ months

These estimates cover infrastructure only (AWS, SaaS tools, LLM API costs). They do not include salaries, office, or legal costs.

Key Decision Points

Three decisions need CTO validation before sprint planning:

  1. Backend language: TypeScript (Node.js) vs. Python (FastAPI). Both are viable. The recommendation depends on the founding engineering team's strongest skill set.
  2. Auth provider: Custom JWT implementation vs. Auth0 vs. WorkOS. Trade-off between control and speed-to-market.
  3. Vector database: Start with pgvector (free, integrated) or go directly to Pinecone (managed, scalable). Recommendation: start with pgvector for pilot, migrate to Pinecone at GA if vector query volume justifies it.

Technology Stack Overview


Cost Alert Thresholds

Set up billing alerts in AWS at 50%, 75%, and 90% of the monthly budget. LLM API costs (Anthropic) are the most volatile line item and should be monitored daily. A single runaway process could consume an entire month's AI budget in hours. The token budget management system (see Sasha AI Engine) is the primary defense.

Tech Stack Decisions Are Proposals

All technology choices in this document are proposals pending CTO validation. The backend language decision (TypeScript vs. Python) and auth provider decision (custom vs. Auth0 vs. WorkOS) should be made by the founding technical lead based on team composition. Do not let these decisions block progress — either choice works.

Infrastructure as Code from Day One

Every piece of infrastructure must be defined in Terraform. No manual AWS Console changes in production. This is a SOC 2 requirement (change management controls) and prevents "configuration drift" where production differs from what is documented. The Terraform state is stored in S3 with state locking via DynamoDB.