Skip to main content
Minimal, copy-friendly example projects organized by feature. DI lives inside each feature, not in a separate 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.
Before running any example, build the Brushy Suite libraries from the repository root:

Source on GitHub

Shared layout

Root shortcuts

From the repository root:

Tests

Each example uses Vitest with SWC (same setup as packages/di*):
Vite, Express, Fastify, and Expo run unit tests in CI. The Expo dev server is validated manually.