Skip to content

CruzJS

Build full-stack TypeScript apps with type-safe APIs, dependency injection, and multi-tenant auth. Deploy anywhere — Cloudflare, AWS, GCP, Azure, DigitalOcean, or Docker.

CruzJS is a batteries-included framework that eliminates the gap between “I have an idea” and “it’s running in production.” Instead of stitching together a dozen libraries and hoping they work together, you get a single coherent stack where every layer — from database queries to UI components — is designed to work together. Deploy to Cloudflare’s edge, AWS, GCP, Azure, DigitalOcean, or self-hosted Docker with a single adapter swap.

Type-Safe APIs

End-to-end type safety with tRPC. Define a procedure on the server, call it from the client — your IDE autocompletes the response shape, validates inputs with Zod, and catches mismatches at compile time. No code generation, no REST boilerplate, no GraphQL schemas to maintain.

Database

Drizzle ORM gives you a type-safe relational database with full SQL expressiveness. Generate migrations from schema changes and run them locally or remotely with a single CLI command. Cloudflare D1, PostgreSQL, MySQL — the adapter handles the platform specifics.

DI Container

Inversify-powered dependency injection keeps your services testable and decoupled. Declare @Injectable() classes, wire them through @Module() decorators, and resolve them anywhere. Swap implementations for testing, compose features as isolated modules, and never manually instantiate a service again.

Auth & Organizations

Multi-tenant authentication and authorization out of the box. Session-based auth, role-based permissions (Owner, Admin, Member, Viewer), organization scoping, invitation flows, and audit logging. Every API endpoint is automatically scoped to the current user’s organization context.

CLI Tooling

One CLI for everything. cruz dev starts your local server. cruz db generate creates migrations. cruz deploy production ships your app. Scaffold standalone Workers, Workflows, and Queue consumers with cruz new. No context switching between a dozen tools.

Deploy Anywhere

Cloudflare-first with native D1, KV, R2, and Workers AI support. Runtime adapters extend deployment to AWS (Lambda, Fargate), GCP (Cloud Run, Cloud Functions), Azure, DigitalOcean, and Docker. Your application code stays the same — only the adapter changes.

CruzJS brings together proven technologies into a single, coherent framework:

React Router v7

File-based routing, SSR, loaders, and actions. The same React Router you know, with streaming and progressive enhancement.

Drizzle ORM

Type-safe SQL queries, automatic migrations, and Drizzle Studio for visual database browsing. Works with D1 in production and SQLite locally.

tRPC

Remote procedure calls with full TypeScript inference. Your client knows exactly what the server returns — no runtime surprises, no manual type definitions.

Inversify

Industrial-strength dependency injection for TypeScript. Constructor injection, module composition, multi-binding, and singleton/transient scoping.