whatisgithub

What is token-stamp?

vivekvar-dl/token-stamp — explained in plain English

Analysis updated 2026-07-26

2JavaScriptAudience · developerComplexity · 2/5Setup · easy

In one sentence

STAMP reads your local AI coding assistant logs and turns your token usage into a shareable visual poster showing how far you would have walked based on the energy consumed.

Mindmap

mindmap
  root((repo))
    What it does
      Reads local AI logs
      Calculates energy
      Renders map poster
    Privacy
      Runs locally
      No accounts
      No telemetry
    Data sources
      Claude Code logs
      Codex sessions
      Token usage data
    Outputs
      Decorative map route
      Shareable poster card
      Methodology page
    How to run
      npx token-stamp
      Cross-platform
      No install needed
    Energy math
      Output tokens weighted highest
      Cache reads weighted lowest
      Steps from joules

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

See how much energy your Claude Code or Codex usage represents in walking steps.

USE CASE 2

Generate a decorative map poster showing your AI coding activity as a walking route.

USE CASE 3

Track and visualize your local AI assistant token consumption without sharing data online.

USE CASE 4

Share a visual summary of your coding session activity with friends or on social media.

What is it built with?

JavaScriptNode.jsnpx

How does it compare?

vivekvar-dl/token-stamp3imed-jaberi/cryptography-si-isamm3imed-jaberi/koa-isomorphic-router
Stars222
LanguageJavaScriptJavaScriptJavaScript
Last pushed2021-09-252021-02-06
MaintenanceDormantDormant
Setup difficultyeasyeasyeasy
Complexity2/51/52/5
Audiencedeveloperresearcherdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Requires existing AI coding assistant logs on your machine from Claude Code or Codex to generate a poster.

So what is it?

STAMP is a tool that reads your local AI coding assistant usage logs and turns them into a visual "walking journey." If you have used Claude Code or Codex, those tools write session logs to your computer. STAMP looks at how many tokens you consumed, converts that into steps, distance, and energy, and renders a shareable poster card showing your activity as if you had walked a real route on a map. The tool runs entirely on your machine. It does not upload your data anywhere, and there are no accounts or telemetry. You start it with a single command, npx token-stamp, which launches a local server and opens a browser window. You can also install it globally or run it directly from the cloned repository. It works on macOS, Windows, and Linux, and requires no external dependencies to install. STAMP reads from two specific locations on your disk. For Claude Code, it parses JSONL files in ~/.claude/projects/ that contain token usage data for each assistant response. For Codex, it reads session files in ~/.codex/sessions/ and takes the final cumulative token count per session. The only outbound network requests are for map tiles, an optional geocoding lookup, and road snapping for the decorative walking route. The energy calculation weights tokens by role. Generated output tokens count for about 3 joules each, fresh input tokens for 0.3 joules, and cache reads for 0.05 joules. The tool then divides total energy by 167 joules per step to get a step count, and uses a 0.762 meter stride for distance. The README notes that counting cache reads at full price would overstate energy by roughly 30 times, so the weighting matters. A methodology page inside the app explains the full derivation. The map route is decorative. It uses real map tiles and real streets, and starts at your actual location, but the loop shape is a deterministic emblem derived from your token data, not an actual GPS trace. The README describes the route size as roughly 2 to 3 kilometers and purely decorative.

Copy-paste prompts

Prompt 1
I want to visualize my Claude Code token usage as a walking journey. How do I run token-stamp and what log files does it read?
Prompt 2
Help me understand how token-stamp calculates energy from my AI assistant logs. How does it convert tokens into steps and distance?
Prompt 3
I want to install token-stamp globally and generate a poster of my Codex sessions. Walk me through the setup and what the decorative map route represents.
Prompt 4
Explain how token-stamp weights different token types like generated output versus cache reads when calculating my total energy usage.

Frequently asked questions

What is token-stamp?

STAMP reads your local AI coding assistant logs and turns your token usage into a shareable visual poster showing how far you would have walked based on the energy consumed.

What language is token-stamp written in?

Mainly JavaScript. The stack also includes JavaScript, Node.js, npx.

How hard is token-stamp to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is token-stamp for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.