Skip to content
Clicklore

Every click has lore.

Open-source behaviour capture for web apps. Who saw it, who clicked it, and where they got stuck — traced straight to SettingsPage · src/pages/Settings.tsx:40.

Open sourceAGPL-3.0 serverMIT SDKs<12 KB gzipClickHouse + Postgres

Acme BillingLast 7 days
ElementClicksSaw → clickedFriction
Create invoiceInvoiceList · src/pages/Invoices.tsx:58
6,214
87%
12friction events: 12 dead clicks
Filter by statusInvoiceFilters · src/components/InvoiceFilters.tsx:23
2,730
49%
201friction events: 201 slow response
Export CSVExportDialog · src/components/Export.tsx:42
1,388
68%
220friction events: 33 rage clicks, 187 failed request
Save preferencesSettingsPage · src/pages/Settings.tsx:40
902
40%
119friction events: 61 rage clicks, 58 error after click
Email addressProfileForm · src/pages/Settings.tsx:71
841
51%
143friction events: 143 field errors
Upgrade to Proupgrade-ctaBillingBanner · src/components/BillingBanner.tsx:17
486
18%
—
PaidStatusChip · src/components/InvoiceTable.tsx:131
412
10%
248friction events: 248 dead clicks
Bulk editInvoiceTable · src/components/InvoiceTable.tsx:204
13
79%
—
Auto-remindersSettingsPage · src/pages/Settings.tsx:88
4
0.5%
—

A sample project in the real dashboard layout. Switch tabs, filter the table, pick a friction type or a question.

Element identity

Survives refactors.

@clicklore/annotate runs at build time and stamps each interactive element with its component, file, line and a structural signature. Clicklore keys the element on the signature, not the line or the label, so its history stays in one place while the code around it changes.

1Your source
src/components/Export.tsx
37export function ExportDialog({ rows }: { rows: Invoice[] }) {38  const [format, setFormat] = useState<Format>('csv');39 40  return (41    <Dialog>42      <Button onClick={() => exportRows(rows, format)}>43        Export CSV44      </Button>
2Build output
rendered DOM
<button
  data-cl="*ExportDialog src/components/Export.tsx:42 #k3f9a"
>
  Export CSV
</button>
*
Has a click handler. React and Vue keep handlers out of the DOM.
ExportDialog
Component: the nearest capitalized function or class.
src/components/Export.tsx:42
File and line. The line is for display only.
#k3f9a
Signature: a hash of the tag, attribute names, key attribute values and handler source.
3In Clicklore
Export CSVExportDialog · src/components/Export.tsx:42
id 2kq9x7m1c4f1,713 clicks · one continuous history
12
Week of Sep 8weekly clicksWeek of Nov 24
  1. 1Oct 6 Label changed: “Export” → “Export CSV”Same element, history kept
  2. 2Nov 3 15 lines added above: Export.tsx:27 → Export.tsx:42Same element, history kept
  3. A new element starts when the handler is renamed or the tag or link target changes. List items rendered from one JSX node share one id.

Vite · webpack · Rollup · esbuild · Rspack · Next.js 16 (Turbopack) · Vue templates

Usage, not just clicks

Tell “nobody uses it” from “nobody sees it”.

The SDK records which interactive elements were at least half visible on each page view. Usage is people who clicked divided by people who saw or clicked, so a low click count comes with its reason.

Both sit at the bottom of a click ranking, with 4 and 13 clicks last week.

Auto-remindersSettingsPage · src/pages/Settings.tsx:88
Unused
Saw
820
Clicked
4
Usage
0.5%

Most people who see this never use it.

820 people had it on screen. 4 turned it on. Rethink it or remove it.

Bulk editInvoiceTable · src/components/InvoiceTable.tsx:204
Rarely seen
Saw
14
Clicked
11
Usage
79%

Almost everyone who finds it uses it.

Only 14 people scrolled far enough to see it, and 11 of them clicked. Move it up.

Six struggle signals

Detected in the browser, so the server stays simple and cheap. Each one is attributed to the element that caused it and lands on the same row as its usage.

Request paths are templated before they leave the browser: /api/invoices/:id.

Rage clicksrage_click

3 or more clicks within 1s inside a 30px radius.

4 clicks · src/components/Export.tsx:42

Dead clicksdead_click

A click on an interactive element with no DOM change, navigation, request, focus change or new window within 1s.

StatusChip · src/components/InvoiceTable.tsx:131

Error after clickerror_click

An uncaught error within 1s after a click.

TypeError: Cannot read properties of undefined (reading 'plan')

Failed requestfailed_action

A fetch or XHR that started within 2s after a click and returned 400 or more, or failed on the network.

POST /api/exports · 500

Slow responseslow_interaction

An Event Timing entry of 500ms or more (INP “poor”), attributed to its target.

1.4s · InvoiceFilters · src/components/InvoiceFilters.tsx:23

Field errorsfield_error

An invalid event or aria-invalid="true" on a form field.

Please include an '@' in the email address.

Install

Install with your coding agent, or in three files by hand.

Every snippet below is complete. Find the project key under Settings in the dashboard; it is public by design, like any analytics key, and checked against your allowed origins.

prompt for Claude Code, Codex, Cursor or Antigravity
Add Clicklore to this app by following https://clicklore.com/install.md.Detect the framework and package manager, install the packages, add thebuild-time annotation where it is supported, and wire up the provider.Use host https://app.clicklore.com. Ask me for the project key (cl_…) from theproject's Settings page in the Clicklore dashboard; don't invent one.
Written for agents

Any agent that can fetch a URL. The instructions cover Next.js, Vite + React, Vue, Angular and the script tag, plus identify, consent and CSP.

Self-hosting? Tell it to use https://<your-domain> as the host.

No project yet? Create one in the app

Open source & self-hosting

The same product, on your own server.

Everything is in one public repository. Use the hosted app, or run the full stack on one machine with Docker. Nothing phones home: the only outbound calls go to Fireworks, and only after you set an AI key.

Licences
  • apps/serverIngest, dashboard API, SDK bundleAGPL-3.0
  • apps/webDashboardAGPL-3.0
  • @clicklore/browserSDK, script tagMIT
  • @clicklore/react · vue · angularFramework adaptersMIT
  • @clicklore/annotateBuild-time annotationMIT
  • @clicklore/protocolWire and API typesMIT

Installing the SDK never places your application under the AGPL.

  1. 1 · clone and create .env
    git clone https://github.com/clicklore/clicklore.gitcd clicklorecp .env.example .env
  2. In .env, set DOMAIN, POSTGRES_PASSWORD and CLICKHOUSE_PASSWORD.
  3. 2 · start the stack
    docker compose up -d --build
compose.yaml4 GB RAM · 2 cores · 20 GB disk
  • caddy:443Automatic HTTPS (Let’s Encrypt)
  • server:7001Fastify: ingest, API, SDK bundle
  • web:7002Next.js dashboard
  • clickhouseEvents and rollups, TTL retention
  • postgresAccounts, workspaces, projects

On Coolify, deploy compose.coolify.yaml. Raw events are kept for 13 months by default (RETENTION_DAYS). The first account becomes the owner and signup closes. Self-hosting guide

Privacy and engineering, by default

Script bundle
Under 12 KB gzip. The budget is enforced at build time.
Runtime dependencies
None.
Host app safety
Never throws into your app. The public API, listeners and the fetch, XHR and history patches run inside safe().
Input values
Off unless you opt in with captureInputValues or data-cl-capture. Never passwords, hidden or file inputs, payment fields, one-time codes or secret-like fields.
Redaction
Emails, long numbers, UUIDs and tokens in labels, messages and values. Ids, JWTs and emails in paths become :id. Query strings are never sent.
IP addresses
Never stored. No cookies; a few localStorage keys.
Consent
With requireConsent nothing is sent or stored until optIn(). optOut() drops queued data and stored ids in every open tab.
Delivery
Gzipped batches without a CORS preflight. Retries survive reloads and are deduplicated by batch id.
AI (optional)
Off without FIREWORKS_API_KEY. Daily token budgets per project, workspace and instance. The model never writes SQL.

See what people do with what you ship.

Start on the hosted app, or run it on your own server.