Open-source full-stack framework

Ship to Cloudflare
in minutes

CruzJS is a full-stack TypeScript framework that gives you D1, KV, R2, Workers AI, tRPC, auth, orgs, and deployment — all wired together and ready to go.

npx create-cruz-app my-app

Everything you need

From database to deployment, CruzJS handles the full stack so you can focus on your product.

Cloudflare-Native

Deploy to Cloudflare Pages with D1, KV, R2, Workers AI, and Queues — all configured from a single TypeScript file.

🔧

Full-Stack TypeScript

React Router v7, tRPC for type-safe APIs, Drizzle ORM for database access, and Inversify for dependency injection.

🏢

Multi-Tenant Ready

Built-in org management, role-based permissions, invitation flows, and audit logging via @cruz/pro.

🎨

Component Library

Chakra UI + Tailwind CSS with pre-built layouts, forms, data tables, modals, and theming via @cruz/start.

📦

One CLI

cruz dev, cruz deploy production, cruz db migrate — everything from development to production in one tool.

🧩

Service Providers

Modular feature architecture. Each domain registers its DI container, tRPC router, routes, and event listeners.

Configuration

One config file

Define your bindings, environments, and vars in a single TypeScript config. CruzJS generates wrangler.toml, provisions resources, and deploys — all from this file.

// cruz.config.ts import { defineConfig } from '@cruz/cli/config'; export default defineConfig({ name: 'my-app', bindings: { d1: true, kv: true, r2: true, ai: true }, environments: { production: { vars: { APP_URL: 'https://my-app.pages.dev' }, }, }, });

CLI

One command to deploy

Initialize infrastructure, deploy to production, preview from branches, and query your database — all from the same CLI.

$ cruz init production # Create D1, KV, R2 resources $ cruz deploy production # Build + migrate + ship $ cruz deploy preview # Preview from current branch $ cruz db query "SELECT * FROM users"

Built on the best

React Router v7
Cloudflare Pages
D1 (SQLite)
KV
R2
Workers AI
tRPC
Drizzle ORM
Inversify
Chakra UI
Tailwind CSS
Vitest
Playwright

Ready to build?

Get from zero to deployed in under five minutes. No boilerplate, no guesswork.

CruzJS — Full-stack TypeScript for Cloudflare

Built with Cruz