What problem does it solve?
Managing router logic in Vovk.ts can become error-prone when mixing HTTP decorators, metadata, and custom wrappers. This skill standardizes how decorators are defined, stacked, and consumed, reducing boilerplate and ensuring consistent auth and state sharing across controllers.
Core Features & Use Cases
- Built-in HTTP decorators (@get, @post, etc.) and metadata decorators (@prefix, @operation) for clean route definitions.
- Custom decorator patterns via createDecorator for pre- and post-handler logic, including auth guards and timing.
- Shared per-request state via req.vovk.meta() enabling safe cross-decorator communication.
- Support for local vs HTTP contexts with guidance on using next/headers to access request data.
Quick Start
Wrap a controller method with @prefix and an HTTP decorator, apply an auth wrapper, and read req.vovk.meta<AuthMeta>() inside the handler to enforce access.