Deno doc

Deco is a utility library for Deno developers

  • Fault tolerance helpers (@Timeout, @Retry, @Try, @Trace, @Debounce, @Throttle, @RateLimit, @Concurrecy, @Cache)
  • REST @Http API helpers with OpenAPI and EventStream support
  • @Dapr helpers (Service, PubSub, Bindings, State, Secrets, Actor) for resilient cloud native Deno microservices/actors

Minimal Http server example

// curl localhost:8080/hello
class ServerController {
  @HttpServer.Get()
  hello() {
    return { body: "Hello from Deco! 😎" }
  }
}

HttpServer.serve({
  controllers: [ServerController],
});

Running tests

deno test --unstable --allow-all

Http server performance, static route (~125k RPS on MBP/M1)

Http server benchmark

Alt