Skip to main content
Deno 2 is finally here 🎉️
Learn more

Cav

Web server primitives for Deno.

Status: Ready to play with, but not ready for production.

Goals

  • It should do the basics
    • Routing
    • Static asset serving
    • Signed cookies
    • Web sockets
    • Form and JSON parsing
    • De/serialization of most JS data types, including Dates, Maps, Files…
    • Runtime bundling for browser-side TypeScript
    • Works with frontend frameworks like Preact
  • It shouldn’t require special configs, setups, or tooling
    • No CLI or config files
    • No dictated project structures
  • Client functions should use types imported from the server to fully type requests and responses
  • Its syntax should be functional and declarative
    • Immutable, schema-like Router and Endpoint definitions
    • No middleware
    • Functions all the way down
  • It should be as independent as possible
    • No third-party dependencies
  • Deployments should be simple

Inspirations