Set up a project with one command, or add any component, icon or family from the registry.
One command
If you would rather not read an installation guide, let the CLI do it. It reads the project, prints its plan, waits for a yes, then installs the proven recipe, writes one example page and verifies the build.
npx prequelui-animate initAvailable when the package is released on npm. Every recipe below is already proven against the packed tarball, so the command has nothing to discover at launch.
Consent first
The plan is printed, then one yes/no question. No is the default and --yes skips it.
Safe to repeat
A second run skips what is already installed and keeps any page you edited.
Nothing deleted
A failing step stops the run. Files and configuration are extended, never removed.
Options
The defaults are the safe ones: no writes before consent, the current directory as the project and detection from the files already there.
| Option | What it does |
|---|---|
| -y, --yes | Accept the whole plan without asking. Without it, the single question defaults to no. |
| --dry-run | Print the plan and change nothing on disk. |
| --framework <id> | Override detection when two frameworks match. |
| --package-manager <id> | Override the lockfile, for example pnpm or bun. |
| -h, --help | Print the options and the targets. |
| -v, --version | Print the package version. |
To see the plan without touching the project, add --dry-run. The coloured output is the same, only the question is skipped:
npx prequelui-animate init --dry-runFor a scripted install, --yes accepts the plan. To pin a target, pass --framework next or --package-manager pnpm; both are also listed by --help.
Supported frameworks
Detection reads the manifest, the lockfile and the framework configuration. The automatic recipes are tested against the framework's official scaffold before release; Laravel stays guided because PHP and Composer are not part of the test image.
| Target | Setup | Example page |
|---|---|---|
| Next.js App Router | Automatic | /prequelui-demo |
| Next.js Pages Router | Automatic | /prequelui-demo |
| Vite + React | Automatic | /prequelui-demo.html |
| Nuxt | Automatic | /prequelui-demo |
| Vite + Vue | Automatic | /prequelui-demo.html |
| SvelteKit | Automatic | /prequelui-demo |
| Vite + Svelte | Automatic | /prequelui-demo.html |
| SolidStart | Automatic | /prequelui-demo |
| Vite + Solid | Automatic | /prequelui-demo.html |
| Astro | Automatic | /prequelui-demo |
| Laravel + React | Guided | Printed steps |
| HTML / JavaScript | Automatic | /prequelui-demo.html |
What it changes
The CLI only extends an app it can recognise. The generated page is yours: keep it, edit it or delete it. The registry items stay as source files.
- The runtime dependencies: Motion and the framework's Lucide package.
- Button, Gradient Text and Typing Text from the registry, with the shared motion helpers.
- A registry configuration when the project has none; an existing one is kept.
- One example page with the three components, the code beside each one and the mascot.
- The production build, then the start command and the address to open.
If something goes wrong
The CLI is built to leave a working project behind, even when it stops halfway. Read the last step it printed; it names the command that failed.
A step fails
The run stops on that step, keeps its output on screen and deletes nothing. Fix the cause, then run the same command again.
Run it again
Installed components, the configuration and the example page are detected and skipped. A page you edited is never overwritten.
Detection is unsure
The CLI asks one question with the candidates. Pass --framework or --package-manager to answer in advance.
Laravel or unknown stack
The CLI switches to guided mode: it prints the proven steps and writes nothing. Every other target is installed automatically.
If the registry cannot be reached, the plan and the failing URL stay on screen. The same item can be added by hand with the command below once the network is back.
Add one component
The registry follows the shadcn format, so every component can be added with the standard command. The URL below is the one used by these docs.
npx shadcn@latest add https://prequeluianimate.terravidhal.me/r/react/accordion.jsonEach framework has its own CLI and its own registry path. The URL always lives under /r/<framework>/; React also serves its animated families from the root. For Vue, the same step is:
npx shadcn-vue@latest add https://prequeluianimate.terravidhal.me/r/vue/dialog.jsonAdd an icon
Icons go through the same CLI. The shared animation core arrives automatically as a registry dependency, so one icon is enough to start.
npx shadcn@latest add https://prequeluianimate.terravidhal.me/r/react/icons/bell.json