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
class ServerController {
@HttpServer.Get()
hello() {
return { body: "Hello from Deco! 😎" };
}
}
HttpServer.serve({
controllers: [ServerController],
});
Running tests
deno test --unstable --allow-all