@azury/cheetah
v0.3.0
Published
🐈 A blazing fast framework for the modern web.
Downloads
1
Readme
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 | 47.64 µs/run | 40 µs ... 1.62 ms | 42.9 µs | 144.7 µs | 185.8 µs | 899.3 µs | | hono | 59.38 µs/run | 46.8 µs ... 1.73 ms | 54.6 µs | 128.9 µs | 209.8 µs | 1.31 ms | | itty-router | 59.61 µs/run | 52.3 µs ... 1.85 ms | 56.4 µs | 91.5 µs | 106.3 µs | 1.37 ms | | oak | 79.59 µs/run | 70.6 µs ... 1.09 ms | 74.4 µs | 181.4 µs | 254.4 µs | 850.4 µs |
Benchmark: basic.ts — Runtime: Deno 1.32.5 (x86_64-pc-windows-msvc) — CPU: AMD Ryzen 9 5900X 12-Core
Sneak Peek
Deno
import cheetah from 'https://deno.land/x/[email protected]/mod.ts'
import { serve } from 'https://deno.land/[email protected]/http/server.ts'
const app = new cheetah()
.get('/', () => 'Hello World')
serve(app.fetch)
Node.js (Cloudflare Workers)
import cheetah from '@azury/cheetah'
const app = new cheetah()
.get('/', () => 'Hello World')
export default app
Read our Guide to learn more.
Why cheetah?
- [x] 🪖
secure
- cheetah ensures that parsing doesn't cause your app to freeze. - [x] 🧙♂️
schema validation
- out-of-the-box support for schema validation via TypeBox or Zod. - [x] 💎
simple
- built-in support for CORS, caching, schema validation, debugging and more! - [x] 🪹
chaining & nesting
- cheetah doesn't dictate you how to write your app. - [x] 🪶
light
- all core functionality in ~14.5 kB.