Перейти к содержимому

KickJS Full Tutorial — Part 2: Context Decorators, Adapters & Plugins

forinda dev

0:00 / 0:00

KickJS Full Tutorial — Part 2: Context Decorators, Adapters & Plugins

15 просмотров · 4 мес. назад
forinda dev
282 подписчика
15 просмотров · 4 мес. назад
KickJS full tutorial — Part 2. We replace "middleware that just computes a value" with Context Decorators: typed, ordered, dependency-injected values your handlers and services read off the request — with type safety, startup-time ordering, and zero boilerplate. Then we package the pattern into Adapters and Plugins so an entire cross-cutting feature ships as one import. By the end you can: type ctx.get(), inject services into a resolver, order resolvers with dependsOn, handle failures with onError, choose the right registration site, read request values from any service via AsyncLocalStorage, and ship the whole thing as a reusable adapter or plugin. 🔗 Docs: https://forinda.github.io/kick-js/gui... ⭐ GitHub: https://github.com/forinda/kick-js 📦 npm: https://www.npmjs.com/package/@forind... ▶️ Part 1:    • KickJS Full Tutorial — Part 1: Core Concepts