Skip to main content
Brushy Suite is a collection of libraries for dependency injection and client-side storage in TypeScript applications.

What you get

  • @brushy/di: typed tokens, container lifecycles, React hooks, and server request scope for Express, Fastify, and Next.js.
  • @brushy/storage: NodeCache-style API with optional browser persist, cross-tab invalidation, and React hooks via @brushy/storage-react.
  • Examples: minimal Vite, Expo, Express, and Fastify apps that compose features with shared providers.
1

Pick your runtime

Web, React Native, Node API, or full stack: each stack has a minimal install command in the DI getting started guide.
2

Set up DI

Create a Container, register tokens, and wire BrushyDIProvider or server.brushyRequestScope() for your framework.
3

Add storage (optional)

Use createStorage for cache and StorageProvider when you need persisted UI state or cross-tab sync.
4

Explore examples

Clone patterns from the examples tab; each project mirrors production feature-module layout.

Next steps