Skip to content

Introduction

VentureKit is a modular TypeScript framework for building SaaS applications on AWS. It gives founders and developers full control without the boilerplate — from Lambda handlers to infrastructure provisioning, authentication, billing, and AI.

Building a SaaS product on AWS requires stitching together dozens of services: Lambda, API Gateway, Cognito, RDS, S3, SQS, ElastiCache, and more. Each service has its own SDK, configuration format, and deployment quirks.

VentureKit abstracts this complexity behind a declarative, type-safe API:

  • One config file defines your entire application
  • File-based routing discovers your API endpoints automatically
  • Infrastructure intents let you declare what you need, not how to build it
  • Presets give you production-ready defaults in one word (nano, micro, medium, large)
  • Unified handler adapts to context — public or authenticated, with automatic status codes
  • Explicit over implicit — Every config field is visible and overridable. No hidden magic.
    • Presets as shortcuts — Use nano, micro, medium, large to get started. Override what you need.
    • Layered config — Base (identity) + Security (auth) + Environment (resources) = Full control.
    • Smart defaults — Handlers adapt to context. No scopes = public. With scopes = authenticated.
vk.config.ts ← Defines your entire app
config/
base.ts ← Project identity (never changes)
security.ts ← OAuth scopes and clients
dev.ts / prod.ts ← Environment-specific sizing
src/routes/
health/get.ts ← GET /health (public)
tasks/post.ts ← POST /tasks (authenticated)
tasks/[id]/get.ts ← GET /tasks/{id} (dynamic)

VentureKit is a modular monorepo with 10 independent packages:

PackagePurpose
@venturekit/coreTypes, presets, config resolution, validation
@venturekit/runtimeHandlers, context, middleware, logging, errors
@venturekit/infraCDK constructs for AWS infrastructure
@venturekit/cliCLI — scaffolding, dev, deploy, generate, migrate
@venturekit/authCognito, RBAC, scope checking, JWT utilities
@venturekit/dataRDS config, migrations, query utilities, transactions
@venturekit/storageS3 config, CDN, lifecycle policies
@venturekit-pro/tenancyMulti-tenant resolution, isolation, quotas
@venturekit-pro/aiEmbeddings, vector stores, RAG, agents
@venturekit-pro/billingPlans, feature limits, invoicing

Install only the packages you need. All packages are published under the @venturekit scope on npm.

  • Quickstart — Create your first VentureKit project in under 5 minutes.