shaders
Shaders
Shaders is a WebGPU component library. One package, shaders, with components that compose like layers in Figma. Everything below is free and MIT licensed. Pro, where it applies, is marked.
Setting up a project
Run the CLI inside the user's project before writing any shader code:
npx shaders connect
It detects the framework, installs shaders with the project's package manager, writes shaders.config.ts, signs the user in through their browser, connects the codebase to a Shaders project (a canvas in the design editor), and installs this skill. Always use explicit subcommands like these: bare npx shaders is an interactive menu for humans. In CI or without a browser, set SHADERS_API_KEY to a personal API key. --no-auth skips the sign-in, --yes skips every prompt.
Once connected, three commands cover the workflow: