0.3.0 • Published 1 year ago

@azury/cheetah v0.3.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

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.

BenchmarkTime (avg)min ... maxp75p99p995p999
cheetah47.64 µs/run40 µs ... 1.62 ms42.9 µs144.7 µs185.8 µs899.3 µs
hono59.38 µs/run46.8 µs ... 1.73 ms54.6 µs128.9 µs209.8 µs1.31 ms
itty-router59.61 µs/run52.3 µs ... 1.85 ms56.4 µs91.5 µs106.3 µs1.37 ms
oak79.59 µs/run70.6 µs ... 1.09 ms74.4 µs181.4 µs254.4 µs850.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/cheetah@v0.3.0/mod.ts'
import { serve } from 'https://deno.land/std@v0.184.0/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?

  • 🪖 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.
  • 💎 simple - built-in support for CORS, caching, schema validation, debugging and more!
  • 🪹 chaining & nesting - cheetah doesn't dictate you how to write your app.
  • 🪶 light - all core functionality in ~14.5 kB.
0.3.0

1 year ago

0.2.3

1 year ago