> ## Documentation Index
> Fetch the complete documentation index at: https://brushysuite.gfrancodev.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Fastify

> Feature-driven Fastify API with runInRequestScopeAsync and storage cache.

Feature-driven API with `runInRequestScopeAsync` per route.

**Source:** [examples/fastify](https://github.com/brushysuite/brushy-librarys/tree/main/examples/fastify) · [README.md](https://github.com/brushysuite/brushy-librarys/blob/main/examples/fastify/README.md)

## What it demonstrates

* `runInRequestScopeAsync` for per-request DI scope in Fastify handlers
* `@brushy/storage` cache wired through DI tokens and providers
* Feature-owned routes, services, and providers

## Run

From `examples/fastify`:

```bash theme={null}
npm run dev
```

Or use the root shortcut:

```bash theme={null}
npm run example:fastify
```

Verify:

```bash theme={null}
curl http://localhost:3002/users
```

## Layout

```text theme={null}
src/
  server.ts
  app.ts
  app/container.ts
  features/
    users/
    health/
  shared/logger/
  routes/index.ts
```

## Related docs

* [Server utilities](/di/server)
* [Request scope](/di/di-core/request-scope)
* [Storage overview](/storage/overview)
