labsUI

v0.2.3
io.github.kznlabs/labsui Checked 16 hours ago Published 22 days ago

Search, add, diff and update labsUI React components in your project.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

view View labsUI items

Read the docs of labsUI items by name: exact props and types, a usage line, full examples, and the items and npm packages each brings along; for a recipe, its prompt, the items it uses and the patterns the result needs. Call it before writing code with a component instead of guessing props; find names with search, install with add.

ParameterTypeDescription
names *arrayItem names as search lists them, e.g. button or date-picker.
sourcebooleanInclude the source files.

add Add labsUI items

Install labsUI items into the project: copies each item and everything it imports, then installs their npm packages. Existing files are kept, never overwritten. Returns the files written, the packages installed, dependencies kept that differ from this version (call update on them) and anything to mount once in the root layout. Needs init first; dryRun previews. To bring installed items to a newer version, use update instead.

ParameterTypeDescription
names *arrayItem names as search lists them, e.g. button or date-picker.
dryRunbooleanReport what would change, write nothing.

init Set up labsUI

Set up labsUI in a project, once, before add: writes the styles, theme, utils and motion provider, imports labsui.css into the Tailwind stylesheet and records settings in labsui.json. Returns warnings, the files written and the root layout code to add. Needs React 19 and Tailwind v4; run doctor first if unsure. Safe to repeat: existing files are kept. dryRun previews.

ParameterTypeDescription
dryRunbooleanReport what would change, write nothing.

diff Diff installed labsUI items

Compare installed labsUI items with this labsUI version. Returns a unified patch per changed file, from the registry file to the project file (+ lines exist only in the project), with formatting: true when only blank lines or indentation differ and changedBy saying whose change it is since the installed version: upstream (only labsUI changed it; update replaces the file), local (only you did; update keeps it) or both (update merges), unset when that version can't be fetched; matching items are left out, a named item that isn't installed comes back with installed: false, and when nothing differ…

ParameterTypeDescription
namesarrayInstalled item names, e.g. button. Empty: all installed items.

update Update labsUI items

Bring installed labsUI items to this labsUI version. Unedited files are replaced; edited ones are merged three ways from the version that installed them, with conflict markers where both sides changed the same lines. Returns each changed item as replaced, merged, conflicts (with the files to resolve) or kept with the reason. Run diff first to see local edits; dryRun previews. Only for installed items: new ones go through add.

ParameterTypeDescription
dryRunbooleanReport what would change, write nothing.
namesarrayInstalled item names, e.g. button. Empty: all installed items.

doctor Check the labsUI setup

Check the labsUI setup: React 19, Tailwind v4, the path alias, the stylesheet import, MotionProvider and themeScript wiring, mounted Toaster/Confirmer, missing npm packages or files, and local edits. Returns pass, warn or fail per check, each problem with its fix. Run it after init or add, or when components look unstyled; for line-level changes use diff.