Who it is forA front-end developer building a landing page who wants a modern animated background without writing shader code.
The problemWriting a GPU effect from scratch takes shader expertise and time that a marketing page rarely justifies.
The outcomeA page background that renders a live gradient and reacts to the cursor, built from ready-made components.
What you need first
- Node.js and npm to install the shaders package
- A project using React, Vue, Svelte, Solid, or plain JavaScript
- A browser with WebGPU support for the effects to render
- A free shaders.com account if you want to use the design editor or CLI sync
Steps
- Run
npm install shadersin your project. - Import Shader, LinearGradient, and CursorTrail from 'shaders/react' (or the matching framework path such as 'shaders/vue').
- Nest LinearGradient and CursorTrail as children of Shader, then set props such as colorA and colorB on the gradient.
- Start your project's dev server and open the page in a WebGPU-capable browser to confirm the effect renders. (inferred, check the README)
Prompt for your agent
In the shader-effects-inc/shaders repo, install the shaders package in <project-path> and add a Shader element with a LinearGradient and a CursorTrail as the page background for the framework used in <project-path>. Expected output: the edited component file and a short list of changed files. Verify that the import path matches the project's framework.
Caveat. The effects need a browser with WebGPU support, so check the target audience's browsers before relying on the background.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for shader-effects-inc/shaders and "Add an animated WebGPU background to a web page"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer