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 54.97 µs/run 43.8 µs … 1.75 ms 47.6 µs 155.8 µs 461.3 µs 987.1 µs
hono 66.85 µs/run 48 µs … 1.45 ms 63.9 µs 264 µs 720.4 µs 1.01 ms
itty-router 62.24 µs/run 51.6 µs … 1.41 ms 58.1 µs 128.6 µs 215 µs 1.17 ms
oak 84.63 µs/run 68.7 µs … 2.53 ms 76.6 µs 280.2 µs 587.8 µs 775.5 µs
Benchmark: basic.ts — Runtime: Deno 1.33.3 (x86_64-pc-windows-msvc) — CPU: AMD Ryzen 9 5900X 12-Core

Sneak Peek

import cheetah from 'https://deno.land/x/cheetah@v0.7.0/mod.ts'
import { serve } from 'https://deno.land/std@0.187.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 ~11 KB. Show more!