Getting started
Find a block, copy its prompt, and your AI agent adds it to your app. The code becomes yours: nothing calls back to airflib.
Find a block
Browse flows and components. Each one opens live: play with its settings, and what you set is carried into the prompt.
Copy the prompt
Copy prompt gives your agent one message with everything: the install command, how to use the block with your own data, how it behaves, every option and token, and how to change it, lightest way first.
Your agent installs it
npx airflib@latest add card-browse
The installer writes the block's files into components/airflib/, or src/components/airflib/ in a project with a src folder, and adds any package it needs with your package manager. No account, no config, no Tailwind.
Make it yours
- Options (props): behaviour and content, such as which fields a search has. The prompt lists them all, a block's page here the main ones.
- Tokens: colours, sizes and corners, through the block's
styleor your own CSS. - Shared tokens: set once on your page and every block follows. See Theming.
- The code itself: it is your code now, and your agent can change anything.
Sound
The sounds you hear on airflib are the site's and don't come with the blocks. Where a block could sound, it calls useSound, which does nothing. For sound of your own, fill in YOUR_SOUND in components/airflib/lib/use-sound.tsx: every block plays through it.
Each call carries the moment's name (tap, switch, success and so on), so what it does is yours: play your own sounds, give a haptic tap (navigator.vibrate on Android, your native bridge in an app), both, or anything else.
Flows: plug in your backend
A flow takes your data and your functions, such as a search or a lookup of where someone is. It handles the screens and states; you decide what happens on your server.
Owning the code, and updates
The code is copied, not linked, and your copy never changes by itself. Running add again is not an update: it keeps every file that differs from the new one. The FAQ has the safe way to take a newer version.
What you need
A React 19 project. Next.js works out of the box.