design-effects
by ModdySwag
README.md
# Hermes Web Design Immersion Studio
[](https://github.com/ModdySwag/hermes-immersion-studio/actions/workflows/check.yml)
A WebGL effects kit, a browser studio, and a local MCP server that builds pages.
The kit is 22 composable effect primitives over one three-pass renderer: a bas-relief wall that lifts under the pointer, media that dissolves into it, ink, water, stone, type and post. The studio mounts any stack on a canvas, tunes it with sliders built from each effect's parameter schema, and writes a runnable page. The MCP server hands the same catalogue, scaffolds, audits, preview and build steps to Hermes, so an agent can take a brief and produce a deploy-ready folder.
| The studio | Film surface | Tide garden |
|---|---|---|
|  |  |  |

## Quick start
Node 20 or newer; no native modules. The quick start serves the studio with Python 3's
built-in static server — any static server works, or `npx serve` if you prefer Node.
Download the repository (**Code → Download ZIP** on GitHub, or your Git client) and open a terminal in the project root:
```bash
npm install # three + esbuild; the studio's import map points here
npm install --prefix kit # the library build
npm install --prefix plugin # the MCP server's bundler
python3 -m http.server 8899 # Linux/macOS; on Windows use: python -m http.server 8899
```
Open <http://127.0.0.1:8899/studio/>.
Both packages are on npm at 0.1.1: `npm install immersive-kit design-effects-mcp`. The [v1.0.1 release](https://github.com/ModdySwag/hermes-immersion-studio/releases/tag/v1.0.1) ships the same 0.1.1 tarballs if you prefer files.
The studio previews and tunes without a backend. Building, opening a build, downloading a `.zip`, dropping art and saving a look need the local API, in a second terminal:
```bash
node plugin/server.mjs --http 8898
```
## Connect your agent
The server is a one-line install for any MCP client:
```bash
npx -y -p design-effects-mcp design-effects
```
Point your client at that command (Hermes: under `mcp.servers` as `design-effects`, then run
`hermes mcp test design-effects` and expect 11 tools). `AGENTS.md` is the short brief an agent
can read on its own; the server also ships two prompts (`page-from-brief`, `pick-stack`) and
the `design-effects://guide` resource.
## What it does
| unit | count | what it is |
|---|---|---|
| effects | 22, all `built` | one module each, with parameters, a cost and a reduced-motion path |
| looks | 9 | a named stack, its parameters and a palette, applied in one click |
| templates | 10 | 3 hero shapes and 7 page shapes |
| blocks | 8 | the media and text shapes a page is assembled from |
| MCP tools | 11 | catalogue, scaffold, compose, audit, preview, build |
| docs site | 22 effect pages, 19 live demos | generated from the effect folders |
**Effects.** The set covers a pointer flow field, a bas-relief wall, dissolving media cards, fireflies and dust, bloom with chromatic split, a six-level art bake, a noise-wipe page transition, MSDF type that thickens, scroll dolly and fast-scroll extrusion, two ink simulations, a video bulge, a GLB card, water with a mirrored reflection, matcap rocks, a shader loader, chapter numerals, variable font weight, foliage wind and a tagged 3D footer scene.
**Looks.** Carved stone, Wet ink, Ember, Night dust, Paper cut, Gallery scroll, Tide garden, Settling dust, Garden wall. Each is a stack plus parameters plus four `--fx-*` tokens, so a page can be re-paletted in CSS without touching a shader.
**Templates and page shapes.** Three heroes (carved stone, dissolving grid, thickening headline) and seven page layouts, from a full-bleed film page to a product grid and a showcase. Pages are built from eight blocks: full-bleed film, portrait pair, vertical reel, inset 4:3, chapter text, centred statement, pull quote, closing CTA.
## The studio
`/studio/` is one canvas with a palette on the left and an inspector on the right. Pick a look to mount its stack, or add effects one at a time; select an effect to get its sliders. Save a scene as JSON, load it back, copy a link that reopens it, or copy a ready `deploy_build` call for the same composition. **Build project** writes the page, bundles it with esbuild and opens it from `studio-builds/<name>/`.
Keys: `P` preview, `Esc` leave preview or close help, `?` help. The studio is a desktop tool; below 720px the panels become drawers.
**Finish.** The paper/graphite finish is chrome only: a viewer preference kept in `localStorage` (`moddys-theme`), shared with the rest of moddys.net, and never written into a scene file or a built page. A built project is your art — it keeps its own look palette.
**Take it local in one paste.** The live demo's **Live demo** chip carries a copyable install prompt for any coding agent — repo, Node check, the three installs, both servers and the verification steps. The first-run card has the same copy in one click. Nothing installs until you paste it.
Details: [docs/STUDIO.md](docs/STUDIO.md).
## MCP server and Hermes
The server is stdio JSON-RPC with no dependencies beyond esbuild. Add it to a Hermes profile config:
```yaml
# ~/.hermes/profiles/<profile>/config.yaml
# Windows: C:\Users\<you>\AppData\Local\hermes\profiles\<profile>\config.yaml
mcp_servers:
design-effects:
command: node
args: ["C:/path/to/studio/plugin/server.mjs"]
enabled: true
```
Restart Hermes, then:
```bash
hermes mcp test design-effects
# Connected, 11 tools
```
Resources (`design-effects://guide`, `://catalogue`, `://looks`, `://effect/<id>`) and the prompts `page-from-brief` and `pick-stack` work in clients that read them.
Details, including the session catalogue quirk and its workaround: [docs/MCP.md](docs/MCP.md).
## Building a page
One call builds, bundles and documents a page:
```json
{
"tool": "deploy_build",
"arguments": {
"out": "deploy/ember-page",
"look": "ember",
"title": "Ember — surfaces",
"nav": [
{ "label": "Default", "href": "/surfaces/" },
{ "label": "Ember", "href": "/surfaces/ember/", "current": true },
{ "label": "Paper cut", "href": "/surfaces/paper-cut/" },
{ "label": "Tide", "href": "/surfaces/tide/" },
{ "label": "Film", "href": "/surfaces/film/" }
],
"contact": "mailto:hello@example.com"
}
}
```
The same call from a terminal, without an MCP client:
```bash
node _probe/design-call.mjs deploy_build '{"out":"deploy/ember-page","look":"ember","title":"Ember — surfaces"}'
```
Output is a folder with `index.html`, a bundled `dist/scene.js` carrying a content hash, and the `assets/` the stack needs. See [docs/DEPLOY.md](docs/DEPLOY.md) for what to upload.
## Docs
| page | covers |
|---|---|
| [docs/INSTALL.md](docs/INSTALL.md) | prerequisites, install, both servers, first-run checks |
| [docs/STUDIO.md](docs/STUDIO.md) | looks, chips, inspector, save/load, preview, keys |
| [docs/MCP.md](docs/MCP.md) | all 11 tools, resources, prompts, failure behaviour |
| [docs/TROUBLESHOOTING.md](docs/TROUBLESHOOTING.md) | WebGL, ports, 404s, stale bundles, the packer |
| [docs/FAQ.md](docs/FAQ.md) | scope, licence boundary, browser support, mobile |
| [docs/DEPLOY.md](docs/DEPLOY.md) | upload set, cache-busting, the five-surface nav, verification |
The catalogue is generated from the effect folders: `docs_build` writes `site/index.html`, one page per effect under `site/effect/`, a live demo per demoable effect under `site/demos/`, and `site/looks.html`. Open it through the same static server: <http://127.0.0.1:8899/site/>. The catalogue stays local-only; the published studio's Help links to this README and `docs/`.
## Licence
MIT for the code in `kit/` and `plugin/`. The art that ships with the kit is generated for it: the card images, the foliage atlas, the packed art demo, both GLB models and the video loop. The MSDF font atlas is generated from DM Serif Display, which is under the SIL Open Font License 1.1; the licence ships beside the atlas in `kit/assets/fonts/OFL.txt`.
No third-party art is included in either npm package or in a `deploy_build` output. Art you add stays yours.
## Credits
Built by Moddy ([moddys.net](https://moddys.net)). The renderer uses [three.js](https://threejs.org) r180 (MIT). The MSDF title uses DM Serif Display (SIL OFL 1.1), with its atlas generated by msdf-atlas-gen. Bundling is esbuild (MIT).
This server cannot be deployed
Maintenance
ActivityNo data
ResponsivenessOutdated data