Configuration file
Create akatla.config.mjs (ESM) or katla.config.js (CJS) in your project root to set defaults for katla pull:
CLI
With a config file,katla pull works without arguments:
.katla/ directory. Add it to your build pipeline:
initialCookies is provided, useKatlaCookies() returns the data immediately — no runtime fetch.
Output structure
manifest.json file contains an index of all generated files:
Using the guard script locally
The pulledguard.js file can be inlined instead of fetching from the CDN at runtime. Pass it as the guardScript prop:
Vite (raw import):
guardScript is provided, the SDK injects the script content inline instead of adding a <script src="..."> tag pointing to the CDN.
CLI reference
site-id is optional when a katla.config.mjs or katla.config.js file provides it.
Programmatic API
You can also usefetchStaticAll directly in build scripts or server-side code:
fetchStaticCookies and fetchStaticPolicy are still available:
Examples
Vite static example
Vite + React app using
katla pull for build-time cookie data.Next.js static example
Next.js App Router using
katla pull for build-time cookie data.