What you get
See it live
The whole widget package, embedded right here. This is the same @wigtoken-temp/widget you’d install — running against an in-page mock backend so you can poke at it without a server.
import { ProviderConfig, WeightedTokenCounter, CostCounter, BurnSparkline } from "@wigtoken-temp/widget";
<ProviderConfig server={env.SERVER} token={env.TOKEN}>
<h1>Our crew has processed <WeightedTokenCounter /> tokens.</h1>
<CostCounter />
<BurnSparkline range="24h" />
</ProviderConfig>Install
# self-hosted server (with built-in dashboard)
npm install -g @wigtoken-temp/wigtoken
wigtoken init && wigtoken start
# or pull the image
docker run -d -p 10103:10103 -v wigtoken:/data ghcr.io/wigtn/wigtoken:latest# embed on your own site
npm install @wigtoken-temp/widget# push transcripts from a personal laptop
npm install -g @wigtoken-temp/agent
wigtoken-agent run --server https://your-server --token wti_...How it fits together
Claude Code session(s) wigtoken server Consumers
───────────────────── ────────────────── ──────────
~/.claude/projects/ ──watch──► chokidar + scanner GET /api/usage/*
*.jsonl │ SSE /api/usage/stream
▼ GET /metrics (optional)
SQLite (WAL) SSE /embed/stream
│ │
▼ ▼
Hono app ─────► operator dashboard SPA + @wigtoken-temp/widgetGet started
Compared to
| wigtoken | ccusage | CodeBurn | |
|---|---|---|---|
| Surface | server + dashboard + widget | CLI | hosted web app |
| Hosting | self-host anywhere | local only | SaaS |
| Multi-user | ✅ | ❌ | ❌ |
| Multi-machine | ✅ | ❌ | ❌ |
| Real-time SSE | ✅ | n/a | poll |
| Embed widget | ✅ npm package | ❌ | ❌ |
| Custom widget components | 16+ | n/a | ❌ |
| Prometheus / Grafana | ✅ optional | ❌ | ❌ |
| Audit log | ✅ | ❌ | ❌ |
| Token scopes | ingest / read / embed / admin | n/a | n/a |
| Data ownership | yours | yours | theirs |
| License | MIT | MIT | proprietary |
See the full comparison page for the long-form story.
Latest
- v0.2.0 — widget visual overhaul: slot-machine digit animation, gradient stroke sparkline, glow rings on EmbedPulseDot, responsive
StatGrid, 7 themes including cyan + rose. - v0.1.5 — first npm publish with provenance.
- v0.1.0 — initial release.
See the CHANGELOG for the full log.