Multi-Runtime Support
Run your code seamlessly on Node.js, Bun, Deno, Cloudflare Workers, and Vercel Edge without any changes.
Build fast, type-safe APIs that run everywhere - Node.js, Bun, Deno, and Edge
Install CurisJS packages:
npm install @curisjs/corepnpm add @curisjs/coreyarn add @curisjs/corebun add @curisjs/coreCreate your first app:
import { createApp, json } from '@curisjs/core';
const app = createApp();
app.get('/hello', (ctx) => {
return json({ message: 'Hello, World!' });
});
app.listen(3000);Write your code once, deploy anywhere. CurisJS uses Web Standard APIs to ensure your application runs identically across all JavaScript runtimes:
CurisJS is built from the ground up for speed:
Full TypeScript support with intelligent type inference:
import { z } from '@curisjs/core';
const userSchema = z.object({
name: z.string().min(2),
email: z.string().email(),
});
app.post('/users', async (ctx) => {
const result = userSchema.safeParse(await ctx.json());
if (!result.success) {
return json({ error: result.error }, { status: 422 });
}
const user = result.data; // Fully typed!
return json({ user });
});The core framework with routing, middleware system, and Web Standard APIs.
Type-safe database ORM with query builder, models, and migrations.
Command-line tools for scaffolding, development, and deployment.
CurisJS is MIT licensed.