CLI
Manifest Generation
Generate one BlurManifest JSON file from a local directory.
When to use
Section titled “When to use”Use this flow when your build or app needs a precomputed placeholder map.
Example
Section titled “Example”npx blurkit encode ./public \ --glob "**/*.{jpg,jpeg,png,webp}" \ --out blur-manifest.json \ --prettyInputs / Options / Behavior
Section titled “Inputs / Options / Behavior”--globselects files inside the input directory.--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
Limits / Caveats
Section titled “Limits / Caveats”--globcannot be used with remote URL input.- Manifest key conventions must match your app lookup strategy.