Git Product home page Git Product logo

cheetah's Introduction

cheetah



Warning: This is the codebase for the upcoming v1.0, the codebase for the current v0 can be found 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 61.02 µs/run 48 µs ... 2.41 ms 53.2 µs 175.6 µs 522.3 µs 1.17 ms
hono 72.26 µs/run 50.1 µs ... 2.36 ms 68.5 µs 216.5 µs 810.6 µs 1.17 ms
itty-router 70.88 µs/run 58.2 µs ... 2.27 ms 64.8 µs 197.7 µs 286.2 µs 1.33 ms
oak 96.5 µs/run 70.1 µs ... 3.67 ms 82.2 µs 521.4 µs 737.7 µs 1.16 ms

Sneak Peek

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)

NEW: Check out our new guide at cheetah.mod.land


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 ~11 KB.

cheetah's People

Contributors

boywithkeyboard avatar github-actions[bot] avatar mimimonads avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.