# @lilith/bff

Backend-for-Frontend gateway that fronts all client traffic and orchestrates calls to domain services.

## Scripts
- `npm run dev` — Nodemon with TypeScript sources.
- `npm run build` — TypeScript build.
- `npm test` — Jest (ESM via `jest.config.cjs`, uses `app.inject()`).

## Development notes
- Keep client-facing routes here; downstream service calls must be via REST (no cross-service imports).
- Update `openapi/openapi.yaml` when adding/altering endpoints and run `npm run openapi:validate`.
- Coverage target: ≥70% global (CI enforced).
