Installation

Add components with the shadcn CLI.

Set up shadcn

Components install into any React project with a components.json. If yours doesn't have one, run npx shadcn@latest init first.

Add a component

Each component page has its own command. It copies the source and any hooks into your project and installs their dependencies.

pnpm dlx shadcn@latest add https://mgp.paukraft.com/r/image-gen-loader.json

Your API key

Call BFL from your server, never the browser. BFL's result URLs expire and aren't served with CORS, so save each result to your own storage on the server and serve it from there.