How nateherkai/claude-wrapped works
Claude Wrapped is a local year-in-review generator for Claude usage. The main flow starts with a Claude Code command or direct CLI run, scans local session history and optionally a Claude app export, combines yearly aggregates, and produces a browser-ready story page and share card. The README documents the story’s analytics, personality, soundtrack, and privacy-focused sharing; the source excerpts show the scanner, shared scoring helpers, export reader, and CLI orchestration. The template and skill are present in the tree but were not sampled, so their internal wiring is not asserted.
Main entry points: wrapped.mjs Wrapped CLI · scan-worker.mjs Transcript scanner · chat-export.mjs Chat export reader · template.html Story page template
Components 13
Entry and orchestration
- Slash command skill
SKILL.md - Wrapped CLI
scripts/wrapped.mjs
History ingestion
- Local session history
- Transcript scanner
scripts/scan-worker.mjs - Chat export reader
scripts/chat-export.mjs
Aggregation and analysis
- Scoring helpers
scripts/common.mjs - Yearly aggregates
- Story metrics
scripts/wrapped.mjs
Story experience
- Story page template
assets/template.html - Interactive story
- Share card
assets/template.html
Other components
- Claude Code user
- Browser
Connections 18
- Claude Code user → Slash command skill: runs command
README.md - Claude Code user → Wrapped CLI: runs directly
README.md - Slash command skill → Wrapped CLI: starts workflow
- Wrapped CLI → Local session history: scans history
README.md - Wrapped CLI → Transcript scanner: dispatches batches
scripts/wrapped.mjs - Local session history → Transcript scanner: provides transcripts
- Transcript scanner → Scoring helpers: uses scoring
scripts/scan-worker.mjs - Wrapped CLI → Chat export reader: calls export reader
scripts/wrapped.mjs - Chat export reader → Scoring helpers: uses scoring
scripts/chat-export.mjs - Transcript scanner → Wrapped CLI: returns aggregates
scripts/wrapped.mjs - Chat export reader → Wrapped CLI: returns aggregates
scripts/wrapped.mjs - Wrapped CLI → Yearly aggregates: merges aggregates
scripts/wrapped.mjs - Wrapped CLI → Story metrics: derives metrics
scripts/wrapped.mjs - Story metrics → Story page template: populates page
- Story page template → Interactive story: renders story
- Story page template → Share card: renders card
- Wrapped CLI → Browser: opens output
scripts/wrapped.mjs - Interactive story → Browser: opens in
README.md