Everything as Code: How We Manage Our Company in One Monorepo

https://news.ycombinator.com/rss Hits: 7
Summary

Introduction Last week, I updated our pricing limits. One JSON file. The backend started enforcing the new caps, the frontend displayed them correctly, the marketing site showed them on the pricing page, and our docs reflected the changeβ€”all from a single commit. No sync issues. No "wait, which repo has the current pricing?" No deploy coordination across three teams. Just one change, everywhere, instantly. At Kasava, our entire platform lives in a single repository. Not just the codeβ€”everything: kasava/ # 5,470+ files TypeScript files β”œβ”€β”€ frontend/ # Next.js 16 + React 19 application β”‚ └── src/ β”‚ β”œβ”€β”€ app/ # 25+ route directories β”‚ └── components/ # 45+ component directories β”œβ”€β”€ backend/ # Cloudflare Workers API β”‚ └── src/ β”‚ β”œβ”€β”€ services/ # 55+ business logic services β”‚ └── workflows/ # Mastra AI workflows β”œβ”€β”€ website/ # Marketing site (kasava.ai) β”œβ”€β”€ docs/ # Public documentation (Mintlify) β”œβ”€β”€ docs-internal/ # 12+ architecture docs & specs β”œβ”€β”€ marketing/ β”‚ β”œβ”€β”€ blogs/ # Blog pipeline (drafts β†’ review β†’ published) β”‚ β”œβ”€β”€ investor-deck/ # Next.js site showing investment proposal β”‚ └── email/ # MJML templates for Loops.so campaigns β”œβ”€β”€ external/ β”‚ β”œβ”€β”€ chrome-extension/ # WXT + React bug capture tool β”‚ β”œβ”€β”€ google-docs-addon/ # @helper AI assistant (Apps Script) β”‚ └── google-cloud-functions/ β”‚ β”œβ”€β”€ tree-sitter-service/ # AST parsing for 10+ languages β”‚ └── mobbin-research-service/ β”œβ”€β”€ scripts/ # Deployment & integration testing β”œβ”€β”€ infra-tester/ # Integration test harness └── github-simulator/ # Mock GitHub API for local dev Why This Matters: AI-Native Development This isn't about abstract philosophies on design patterns for 'how we should work.' It's about velocity in an era where products change fast and context matters. AI is all about context. And this monorepo is our companyβ€”not just the product. When our AI tools help us write documentation, they have immediate access to the actual code being documented. When we update our marketing website, the AI can verify claims a...

First seen: 2025-12-30 21:05

Last seen: 2025-12-31 03:05