di/ folder.
Browse the examples folder on GitHub or open a project README directly:
Vite + React
useInject and useStorage with local persist.Expo + React Native
Same patterns plus memory storage and a React Native error renderer.
Express
brushyRequestScope with @brushy/storage cache.Fastify
runInRequestScopeAsync with @brushy/storage cache.Source on GitHub
Shared layout
Root shortcuts
From the repository root:Tests
Each example uses Vitest with SWC (same setup aspackages/di*):
Related docs
- DI getting started: stack-specific install recipes
- Component injection: Expo error renderer pattern
- Server utilities: Express and Fastify request scope