glitterball

Connect a prototype

Put the Glitterball tag on a deployed prototype

A prototype is anything you can open in a browser: a Vercel or Netlify preview, or a staging site. Glitterball runs from a tag in the prototype’s <head>, so the prototype needs the tag.

Connect a deployed prototype

  1. Go to /app. The Add to prototype panel is at the top of the home.
  2. Pick the tab for how the prototype is made: Coding agents gives you the line to ask your agent, App builders a prompt to paste into the builder’s chat, and CLI the npx glitterball init command, the package to install by hand and the MCP command.
  3. Deploy the prototype and open it in your browser. It shows up on the home as soon as Glitterball sees it.
  4. Choose Create walkthrough, pick it and choose Record it.

Glitterball opens the prototype in a new tab with the Glitterball bar in its corner and Record a walkthrough open. If nobody has claimed the prototype yet, recording claims it for you. See Record a walkthrough.

Already added one? Choose Create walkthrough above the list, pick it and choose Record it.

Add the Glitterball tag

The quickest way is one command, run in the prototype’s folder:

npx glitterball init
  1. It makes the prototype’s own token and adds the tag, with that token, to the file that renders <head>: app/layout or pages/_document in Next.js, app/root in Remix, src/app.html in SvelteKit, your Astro layouts, index.html in Vite, or every page of a plain HTML site.
  2. Run or deploy the prototype and open it. The Glitterball bar is in its corner.
  3. Choose Walkthroughs on the bar, then Record a walkthrough. The first time, a small window asks you to sign in or create an account and pick where the prototype goes: just you, your team, or a team people from your company are already on. Then you record.

Prefer to link it to your workspace from the terminal? Add --approve: it opens Glitterball in your browser to check a code and link the prototype first.

Run it again any time; it replaces the tag rather than adding a second one.

The tag is made for one prototype in your workspace, so each prototype gets its own. Keep the token in the tag: a tag without one gets a key from the site’s address the first time it runs, and anyone who knows that address could claim it before you do. It works out which build a page is from the page’s own files, so versions are told apart without anything to set. Once deployed, every visitor sees the Glitterball bar: Walkthroughs, which lists the prototype’s walkthroughs and is where you record, and Comment.

A page without the tag can’t be recorded and can’t show walkthroughs. See Add Glitterball to a prototype for all the ways in.