feat(web): local React/Recharts dashboard (codeburn web)#531
Merged
Conversation
Add a Vite + React 19 + Tailwind v4 + Recharts SPA (dash/) and a 'web' command that serves the built UI plus a local /api/usage endpoint backed by the existing menubar aggregation. Midnight theme with CodeBurn's orange chart ramp: hero cost, a stacked-by-model daily bar chart with a custom tooltip and hover-dim, metric cards, by-tool and by-activity bar lists, and top-projects and tools tables. Period and provider filters, react-query with skeleton loading. Stays 100% local. build:dash builds the SPA into dist/dash (shipped via package files, served at runtime); a missing build falls back to a helpful message.
c038cb4 to
4fe6e08
Compare
This was referenced Jun 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a local web dashboard served by
codeburn web: a Vite + React 19 + Tailwind v4 + Recharts SPA (dash/) plus a small local server that serves the built UI and a/api/usageendpoint backed by the existing menubar aggregation. Everything is computed and served on the local machine. No account, nothing uploaded.UI
How it is wired
dash/is a standalone Vite app.npm run build:dashbuilds it intodist/dash, which ships via the packagefilesand is served at runtime. A missing build falls back to a help message.codeburn web [--period --provider --from --to --port --no-open]starts the server (default port 4747, falls back to a free port if taken) and opens the browser. Static assets come fromdist/dash;/api/usagere-aggregates per request viabuildMenubarPayloadForRange.Verify
Checked locally: serves the SPA shell and assets (200) and
/api/usagereturns live data for the current month (cost, calls, 8 tools, 38 daily entries each with per-model breakdown for the chart). Full suite 1239 green, main project tsc clean.Notes
npm run buildnow runsbuild:dashas its final step (installs dash deps + Vite build).