Lightweight DI for Hono with request scopes + cleanup (decorator-free) #4565
mhbdev
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey Hono folks 👋
I wanted to share a small DI helper we extracted from our production Hono services at Circulo.
Repo: circulo-ai/di
Package: @circulo-ai/di
Why we built it:
Usage is basically: register services once → middleware creates a scope per request → resolve from context.
If anyone’s been hand-rolling service registries or module singletons, this might save some wiring. Happy to answer questions / take feedback.
Beta Was this translation helpful? Give feedback.
All reactions