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
- Go to /app. The Add to prototype panel is at the top of the home.
- 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 initcommand, the package to install by hand and the MCP command. - Deploy the prototype and open it in your browser. It shows up on the home as soon as Glitterball sees it.
- 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
- It makes the prototype’s own token and adds the tag, with that token, to the file that renders
<head>:app/layoutorpages/_documentin Next.js,app/rootin Remix,src/app.htmlin SvelteKit, your Astro layouts,index.htmlin Vite, or every page of a plain HTML site. - Run or deploy the prototype and open it. The Glitterball bar is in its corner.
- 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.