Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.dhal.rokad.co/llms.txt

Use this file to discover all available pages before exploring further.

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

PresetUse case
starterfirst install and monitor-mode baseline
api-productionproduction API baseline
auth-hardenedlogin and auth-heavy apps
strict-json-apiJSON-only API surfaces
behind-proxyapps behind trusted CDN/proxy
observabilitytelemetry-forwarding posture

Public API

import {
  listDhalPresets,
  getDhalPreset,
  applyDhalPreset,
  DHAL_PRESETS
} from "@rokadhq/dhal";
Subpath:
import { getDhalPreset } from "@rokadhq/dhal/presets";