API Framework

Production-ready Node.js API build framework — opinionated, layered, and ready to ship. Composable packages covering everything from structured logging and typed HTTP clients to JWT auth, Fastify plugins, and feature flags.

8 Framework Packages
2 Example Services
Node 22+ Runtime

Open Source Repositories

Two complementary repos — the framework itself and a full demo monorepo built on top of it.

Open Source
Core Framework
CC API Framework
Composable packages for production Node.js APIs

A pnpm monorepo of eight composable packages that cover everything a production API needs: typed HTTP errors, structured JSON logging with correlation IDs, a resilient HTTP client with circuit breaker and retry, Zod-validated env config, JWT and API key auth, a full Fastify plugin suite, remote feature flags, and shared test helpers. Two example services — a public-facing user API and an internal order service — demonstrate the full stack end-to-end.

TypeScript Node.js 22+ Fastify pnpm Turborepo Vitest
Learn more →
Open Source
Demo Monorepo
CC APIs Monorepo
Full production API stack built on CC API Framework

A Turborepo monorepo that shows exactly how to consume and compose the CC API Framework packages in a real multi-service product. Includes shared Zod contracts as a single source of truth, a public user API with JWT auth, CORS, and rate limiting, and an internal order service with service-token auth. Shared testing utilities with a JWT factory and fixtures make writing integration tests fast and consistent across every service.

TypeScript Node.js 22+ Fastify Zod pnpm Turborepo
Learn more →

Framework Packages

Each package is independently versioned and composable. Use what you need.

errors

Typed HTTP error hierarchy — NotFoundError, UnauthorizedError, ValidationError — that map cleanly to HTTP status codes.

📋

logger

Structured JSON logging via Pino with AsyncLocalStorage-backed correlation ID propagation across async call chains.

networking

HTTP client built on undici — full-jitter retry, circuit breaker, OAuth bearer injection, and typed ApiResponse discriminated union.

config

Zod-validated defineConfig() that validates process.env at startup and throws a human-readable error rather than failing silently.

🔑

auth

JWT verification (HS256, RS256, JWKS auto-fetch & cache), API key plugin, and OAuth 2.0 client credentials / refresh token store.

fastify-plugins

Production plugin suite — correlation ID, request logger, error handler, CORS, rate limiter, graceful shutdown, OpenAPI 3.1, and service auth.

🏳

feature-config

Remote feature flag configuration loaded from a JSON endpoint with a local fallback — no infrastructure dependency required.

🧪

testing

Shared test helpers — MockNetworkingClient, withCorrelationContext(), and buildTestApp() — keeping test code DRY across services.

Two-Tier Service Architecture

Front-end services handle public auth and rate limiting. Core services stay internal-only — no CORS, no public JWT.

Browser / External Client
       │ JWT Bearer token
       ▼
user-api :3000 ← front-end-services tier
(JWT auth, CORS, rate-limit, OpenAPI docs)
       │ Service token
       ▼
order-service :3001 ← core-services tier
(internal only — no public exposure)

Also from Dev Tools

SAM Framework

Sparse API Monolith — work in a Fortune 1000 monorepo without downloading everything. Ghost folders, dependency resolution, impact analysis.

Local API Web Proxy

Zero-config HTTP/HTTPS debugging proxy with a real-time dashboard. Inspect and export API traffic between your app and any backend.

View Dev Tools →

Ready to build production-grade Node.js APIs?