For agents
Everything an agent needs comes in a block's Copy prompt. This page is the same facts, for an agent that arrives on its own.
Installer
npx airflib@latest add <name…> [--overwrite]
- Writes each block's files under
components/airflib/(undersrc/when the project keeps its code there) and keeps their layout: the files import each other by relative paths. - Never merges. A file that differs from the incoming one is kept and printed as “Kept”, whether the project changed it or it is an older version, shared
lib/files included. Compare those and run the type check. --overwritereplaces them, the project's changes too: only with the user's OK and a commit to return to.- Adds missing packages with the project's own package manager.
- Needs React 19. No account, no config file, no Tailwind.
Registry
Free blocks are served in the shadcn registry format, each with the lib modules it needs, so a project set up for shadcn can use its own command:
https://airflib.com/r/<name>.json
npx shadcn add https://airflib.com/r/card-browse.json
The prompt
Each Copy prompt carries the install command, a usage snippet with the visitor's settings, how the block behaves, and its contract read from the code: every prop with its type, meaning and default, every exported type, and the CSS tokens meant for you to set. A block's docs page shows only its main settings.