Presets
Presets help teams move from first install to production-shaped policy without hiding behavior.
List presets:
npx dhal presets
Show a preset:
npx dhal presets show api-production
npx dhal presets show api-production --json
Apply to a review file:
npx dhal presets apply api-production --output dhal.production.json
Apply directly to dhal.json:
npx dhal presets apply auth-hardened --write
Built-in presets
| Preset | Use case |
|---|---|
starter | first install and monitor-mode baseline |
api-production | production API baseline |
auth-hardened | login and auth-heavy apps |
strict-json-api | JSON-only API surfaces |
behind-proxy | apps behind trusted CDN/proxy |
observability | telemetry-forwarding posture |
Public API
import {
listDhalPresets,
getDhalPreset,
applyDhalPreset,
DHAL_PRESETS
} from "@rokadhq/dhal";
Subpath:
import { getDhalPreset } from "@rokadhq/dhal/presets";