Open-source full-stack framework
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-appFrom 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
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
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"Get from zero to deployed in under five minutes. No boilerplate, no guesswork.
CruzJS — Full-stack TypeScript for Cloudflare
Built with Cruz