CLI
Manifest Generation
Generate one BlurManifest JSON file from a local directory.
When to generate a manifest
Use this flow when your build or app needs a precomputed placeholder map. A directory input always produces a manifest; --glob only narrows what is selected.
Build a folder manifest
npx blurkit encode ./public \ --glob "**/*.{jpg,jpeg,png,webp}" \ --out blur-manifest.json \ --prettyKey mapping
- Without
--glob, the default selection is**/*.{jpg,jpeg,png,webp}. --globreplaces the default selection.--concurrencycontrols parallel file encoding.--backendselects sharp (default) or wasm.- Key mapping behavior:
- files under
/publicmap to URL-style keys such as/images/hero.jpg - other folders map to normalized relative keys
--base-pathprepends a custom key prefix
- files under
Caveats
--globcannot be used with remote URL input.- Manifest key conventions must match your app lookup strategy.