Skip to main content

cheetah



🙌 If you need help getting started, have ideas for new features or just want to hang out, make sure to join our Discord server here.

cheetah is ~30% faster than hono, which is supposed to be the fastest JavaScript framework, and ~70% faster than oak, the Express.js of Deno.

Benchmark Time (avg) min … max p75 p99 p995 p999
cheetah 53.91 µs/run 41.7 µs … 2.2 ms 47.1 µs 161.1 µs 530.9 µs 961.3 µs
hono 68.63 µs/run 49.1 µs … 1.66 ms 65.8 µs 184.2 µs 772 µs 1.23 ms
itty-router 63.39 µs/run 53.2 µs … 1.43 ms 59.7 µs 105.3 µs 148.7 µs 1.13 ms
oak 87.25 µs/run 70.7 µs … 2.85 ms 79.6 µs 209.8 µs 579.8 µs 807.9 µs
Benchmark: basic.ts — Runtime: Deno 1.33.1 (x86_64-pc-windows-msvc) — CPU: AMD Ryzen 9 5900X 12-Core

Sneak Peek

import cheetah from 'https://deno.land/x/cheetah@v0.6.1/mod.ts'
import { serve } from 'https://deno.land/std@v0.186.0/http/server.ts'

const app = new cheetah()
  .get('/', () => 'Hello World')

serve(app.fetch)

❔ Read our Guide to get started.

Why cheetah?

  • 🪖 secure - cheetah ensures that parsing doesn’t cause your app to freeze.
  • 🧙‍♂️ schema validation - out-of-the-box support for schema validation via TypeBox or Zod. Show more!
  • 💎 simple - built-in support for CORS, caching, schema validation, debugging and more! Show more!
  • 🪹 chaining & nesting - cheetah doesn’t dictate you how to write your app. Show more!
  • 🪶 light - all core functionality in ~14.5 kB. Show more!