A local dashboard for Neon usage-based billing. It pulls live consumption metrics, converts them with Neon’s published formulas, and shows spend by type, day, and project. Nothing is stored.
Plan rates last refreshed: 15 September 2026. Neon has no API for list prices. This app hardcodes them from the docs in src/lib/rates.ts. If you are using this later, paste UPDATE_RATES.md into an LLM and have it re-check Plans and Usage and cost calculations.
Consumption history is available on Launch, Scale, Agent, and Enterprise plans.
Yes there's a light and dark mode.
The browser never receives NEON_PERSONAL_API_KEY. The key is only ever sent to Neon (https://console.neon.tech), as a Bearer token on allowlisted GET requests. It is not posted to this app’s authors, a third-party backend, or anywhere else. I've limited the packages to prevent any kind of key leakage.
- You put a personal API key in a gitignored
.envfile on your machine. - The UI only calls same-origin
/api/neon/.... - The only server code is
src/server/proxy.ts. Read that file. It is short on purpose. - That proxy:
- allows GET only
- allowlists four Neon paths (
/users/me/organizations,/projects,/consumption_history/v2/projects,/consumption_history/v2/branches) - injects
Authorization: Bearerfrom.env - returns JSON as-is
- does not log the key
- does not write responses to disk
- does not use a database
There is no Next.js server, no server actions, and no @neon/sdk. The client uses fetch against the local proxy. If you can read src/server/proxy.ts, you can see every way the key is used.
Restart pnpm dev after changing .env. Vite loads the key at process start.
Look I'm just a guy who wants to track his Neon usage. I've done my best to keep this as minimal as possible while still looking nice and getting the info I need. You should always review codebases that you're passing keys to, especially Neon keys, since as of this writing, you can't scope them down to just readonly. Which is so freaking dumb.
So all I can offer is my word, but its your job to review this too. User beware and all that.
pnpm install cp .env.example .env
Create a personal API key in the Neon console and set:
NEON_PERSONAL_API_KEY=your_personal_neon_key_hereThen:
pnpm dev
Open the printed localhost URL. pnpm preview uses the same proxy after pnpm build.
- Pick an organization, date range, and granularity (
hourly/daily/monthly) - Filter to one project or all projects
- Summary cards for estimated spend
- Spend over time (stacked by consumption type)
- Spend share by type, and top projects
- Per-project table with usage + cost for compute, root/child storage, instant restore, snapshots, public/private transfer, and extra branches
- Expand a project to load per-branch compute/storage/transfer (snapshots and extra branches stay project-level; those metrics are not on the branch API)
No billing data is persisted. Theme preference is the only localStorage value.
Neon returns 406 if from is older than the granularity window. The UI clamps ranges to:
| Granularity | Lookback |
|---|---|
| Hourly | Last 168 hours |
| Daily | Last 60 days |
| Monthly | Last 12 months |
Hourly is closest to invoice math for extra-branch allowances. Daily is the usual choice for a month.
Raw v2 metrics are converted in src/lib/billing.ts using rates in src/lib/rates.ts:
- CU-hours =
compute_unit_seconds / 3600 - GB-months =
*_bytes_month / 1e9(decimal GB; v2 is already byte-months) - Transfer GB =
*_bytes / 1e9 - Public transfer:
max(0, project_GB - 500)then × $0.10 - Extra branches: per project per bucket,
max(0, reported_hours - included_child_branches × hours_in_bucket) / 744× $1.50
Plan rates come from period_plan on each consumption period (Launch compute $0.106/CU-hr, Scale $0.222/CU-hr; Agent uses Launch compute with Scale allowances). Custom Enterprise contract rates are not applied.
Public-transfer allowance is subtracted from project totals over the selected range. The time-series chart shows transfer before that allowance so spikes stay visible. Partial-month ranges can therefore differ from a full invoice.
Calling the consumption API does not wake suspended computes.
Ugh, yes, it was. I just needed a dashboard, baby, and I didn't want to spend a day on it.