Skip to content

CurisJSHigh-performance multi-runtime web framework

Build fast, type-safe APIs that run everywhere - Node.js, Bun, Deno, and Edge

Quick Start

Install CurisJS packages:

bash
npm install @curisjs/core
bash
pnpm add @curisjs/core
bash
yarn add @curisjs/core
bash
bun add @curisjs/core

Create your first app:

typescript
import { createApp, json } from '@curisjs/core';

const app = createApp();

app.get('/hello', (ctx) => {
  return json({ message: 'Hello, World!' });
});

app.listen(3000);

Why CurisJS?

🌐 True Multi-Runtime

Write your code once, deploy anywhere. CurisJS uses Web Standard APIs to ensure your application runs identically across all JavaScript runtimes:

  • Node.js - The traditional powerhouse
  • Bun - The fast all-in-one toolkit
  • Deno - The secure runtime
  • Cloudflare Workers - Global edge deployment
  • Vercel Edge - Serverless at the edge

⚡ Performance Focused

CurisJS is built from the ground up for speed:

  • Radix Tree Router - O(path_length) lookup time
  • Zero-Allocation - Minimal memory allocations in hot paths
  • Optimized Middleware - Efficient pipeline execution
  • Web Streams - Native streaming support

🎯 Type-Safe by Default

Full TypeScript support with intelligent type inference:

typescript
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 });
});

Packages

@curisjs/core

The core framework with routing, middleware system, and Web Standard APIs.

@curisjs/db

Type-safe database ORM with query builder, models, and migrations.

@curisjs/cli

Command-line tools for scaffolding, development, and deployment.

Community

License

CurisJS is MIT licensed.

Released under the MIT License.