# shadertown

> 82 production WebGPU shaders — animated backgrounds and image effects — with typed parameters, a CLI that vendors the WGSL into your repository, and an MCP server. Drawn by vgpu; nothing here is a video.

Every shader is a single WGSL fragment stage with named controls that each have a range, a default and a meaning. Previewing and tuning any shader is free, signed in or not. 16 of the 82 shaders also hand over their source to anyone; the other 66 need a paid plan for the source file alone.

## When to use shadertown

Reach for it when a task is one of these:

- **Give a page an animated background.** A hero, a section, a card, a login
  screen — something that moves, runs on the GPU, and is not a video file or a
  Lottie animation. Start at `GET /r/` or the MCP `search_shaders` tool.
- **Apply an effect to an image or video already in the page.** ASCII, halftone,
  glass, chromatic aberration, displacement. These are the `source` shaders;
  they read a layer you give them.
- **Add a GPU simulation.** Particles, fluid, cloth — state that carries between
  frames, without writing the compute passes.
- **Vendor shader source you can edit.** `npx shadertown add <slug>` writes
  the WGSL, a typed preset, an example, a README and the licence into the
  repository. After that it is the user's file and needs nothing from us.
- **Answer "what does this control do".** Every control's range, default and
  meaning is in the registry, so a parameter can be set from data rather than
  guessed.

Do not reach for it when the user wants a chart, an SVG illustration, a CSS
gradient, or a 3D scene graph — none of those are what a fullscreen fragment
shader is for. Do not reach for it when the target has no WebGPU: it needs
Chrome or Edge 113+, Safari 26+, or Firefox behind a flag.

## How to call it

- [MCP server](https://www.shadertown.com/mcp): Streamable HTTP JSON-RPC at `https://www.shadertown.com/mcp`, or
  stdio with `npx shadertown mcp`. Tools: `search_shaders`, `get_shader`,
  `get_shader_source`. Start here if you are an agent.
- [OpenAPI](https://www.shadertown.com/openapi.json): the whole HTTP surface, with an operation
  id, typed parameters and a response schema for every operation.
- [Registry index](https://www.shadertown.com/r/): every shader as JSON — slug, family, tags,
  cost, tier.
- [Registry item](https://www.shadertown.com/r/aurora.json): one shader's complete files. Pass
  any control as a query parameter to pin it into the preset.
- [CLI](https://www.npmjs.com/package/shadertown): `npx shadertown add <slug>`, `login`, `list`, `mcp`.
  Published on npm; no install step, no build step, no dependencies.
- Markdown: send `Accept: text/markdown` to any page below and it answers with
  markdown and `Vary: Accept`.

## Catalogue

- [All 82 shaders](https://www.shadertown.com/shaders): slug, family, kind, tier and cost for every shader.
- [One shader](https://www.shadertown.com/shaders/aurora): every control with its range, default and meaning.

## Documentation

- [Overview](https://www.shadertown.com/docs): What shadertown is, and the three ways to get a shader into your app.
- [Install](https://www.shadertown.com/docs/install): Add the runtime and draw your first shader.
- [React](https://www.shadertown.com/docs/react): The ShaderCanvas component and the useShaderRenderer hook.
- [Svelte, Astro and Solid](https://www.shadertown.com/docs/frameworks): Draw a WebGPU shader without React. createShaderRenderer is a plain function, so Svelte, Astro, Solid and vanilla JavaScript mount one the same way.
- [Config](https://www.shadertown.com/docs/config): Pin the parameters you chose in a typed, reviewable file.
- [Parameters](https://www.shadertown.com/docs/parameters): The uniform ABI every shader in the catalogue shares.
- [Source shaders](https://www.shadertown.com/docs/source): The shaders that read a layer instead of inventing one, and how to give them something to read.
- [The credit](https://www.shadertown.com/docs/badge): The small link a canvas draws, why it is there, and the one call that removes it.
- [CLI & registry](https://www.shadertown.com/docs/cli): Vendor a shader into your repository with npx shadertown add.
- [MCP server](https://www.shadertown.com/docs/mcp): Serve the catalogue to your coding agent with npx shadertown mcp.
- [Performance](https://www.shadertown.com/docs/performance): What each shader costs, the two tiers every shader draws at, and the knobs that decide it.

## Using it in a framework

- [Animated website backgrounds, drawn by the GPU | shadertown](https://www.shadertown.com/backgrounds): 82 animated website backgrounds that are computed, not looped. Pick a website background design, tune the WebGPU shader in the browser, then ship it as code.
- [Animated background generator that exports code | shadertown](https://www.shadertown.com/generator): A shader background generator that exports a typed preset and real WGSL — not a GIF or an MP4. Tune it live in the browser, free, then take the code.
- [Interactive website backgrounds that track the mouse | shadertown](https://www.shadertown.com/interactive): thirty-eight mouse-reactive WebGPU backgrounds: eyes that follow the cursor, lightning that seeks it, fields that bend around it. One prop turns tracking on.
- [React shader components, typed per shader | shadertown](https://www.shadertown.com/react): React shader components for animated backgrounds: one <ShaderCanvas /> renders any of 82 WebGPU shaders, with props typed against the one you name. Next.js ready.
- [Svelte shader backgrounds on WebGPU | shadertown](https://www.shadertown.com/svelte): Svelte animated backgrounds without a wrapper library: createShaderRenderer is a plain function, so onMount and a reactive statement run any of 82 WebGPU shaders.
- [SolidJS animated backgrounds on WebGPU | shadertown](https://www.shadertown.com/solid): SolidJS shaders without a wrapper: mount any of 82 WebGPU backgrounds with createShaderRenderer, drive the uniforms from a signal, clean up with onCleanup.
- [82 vgpu shaders, running in production | shadertown](https://www.shadertown.com/vgpu): Shadertown is drawn end to end by vgpu. Every catalogue page is a live vgpu example: 82 WGSL shaders you can tune in the browser and read as source.
- [Shaders MCP server for Claude Code and Cursor | shadertown](https://www.shadertown.com/mcp): A shaders MCP for Claude Code, Cursor, or any MCP client: 82 WebGPU shaders. Your agent searches the catalogue, reads every control, and vendors tuned source.
- [A Vanta.js alternative on WebGPU | shadertown](https://www.shadertown.com/alternatives/vanta): Vanta.js proved animated backgrounds belong on the GPU — in 2018, on WebGL and three.js. Shadertown is the same idea a decade on: 82 WebGPU shaders, typed params, source you can own.
- [Glassmorphism, drawn by the GPU | shadertown](https://www.shadertown.com/glassmorphism): Glassmorphism past what backdrop-filter can reach: real refraction, caustics and bloom, tuned live in the browser. 82 WebGPU shaders, source you can own.
- [Hero section backgrounds, computed live | shadertown](https://www.shadertown.com/hero-section): What goes behind the headline: 82 WebGPU hero backgrounds that are computed, not looped, and stay readable under text. Tune one free in the browser.
- [Blob animation without the keyframes | shadertown](https://www.shadertown.com/blob-animation): The CSS blob animation is four border-radius keyframes. A shader computes the blob instead, so it never repeats and the edge stays smooth at any size. Tune one free.
- [The CSS glass effect, and where it stops | shadertown](https://www.shadertown.com/glass-effect-css): The frosted glass effect in CSS is backdrop-filter and a translucent fill. Here is the snippet, what it cannot do, and the WebGPU shader that refracts instead of blurring.
- [Animated gradient backgrounds that never band | shadertown](https://www.shadertown.com/gradient-background): A CSS animated gradient bands on a wide screen and loops on a timer. These are computed per pixel and dithered, so the ramp stays smooth at any size. Tune one free.
- [Particle backgrounds, simulated on the GPU | shadertown](https://www.shadertown.com/particles-background): A hundred thousand particles in a compute pass, not a few thousand on the CPU. Pointer-reactive particle backgrounds in WebGPU, tuned live and shipped as code.
- [CSS animated backgrounds, and what comes after | shadertown](https://www.shadertown.com/css-animated-background): Where a CSS animated background is the right answer, where it runs out, and the 82 WebGPU shaders that pick up from there. Tune one free in the browser.
- [3D animated backgrounds without a scene graph | shadertown](https://www.shadertown.com/3d-background): 3D website backgrounds raymarched in a single fullscreen pass — terraces, hills, open ocean, depth that responds to the pointer. No three.js, no models, no scene graph.
- [Canvas background animation, on WebGPU | shadertown](https://www.shadertown.com/canvas-animation): A canvas background animation without the per-frame JavaScript: the same element, drawn by a WebGPU shader instead of a 2D context. Tune one live and ship it as code.

## About

- [About](https://www.shadertown.com/about): what shadertown is and who runs it.
- [Contact](https://www.shadertown.com/contact): hello@shadertown.com.
- [Pricing](https://www.shadertown.com/pricing): Gold at $19.99 once.
- [Licence](https://www.shadertown.com/license), [Terms](https://www.shadertown.com/terms), [Privacy](https://www.shadertown.com/privacy).
- [Source](https://github.com/Onnokh/shadertown): the runtime, the CLI and this site.
