Case study · Personal build

Pocket Oracle

Type
Personal build
Role
Design & build — solo
Stack
Vanilla JS · Node.js
Status
Running on my desk

I kept running into my Claude Code quota at the worst moments, because checking it meant stopping what I was doing to go and look. I wanted a number I could see without asking for it, so I turned a spare phone into a desk display that shows my 5-hour and weekly limits as live rings.

It is deliberately plain: a single HTML file in vanilla JavaScript, a tiny Node.js server feeding it, and no framework or dependencies. It is a personal hack, and it has been running on my desk ever since.

Pocket Oracle running on a phone, showing Claude Code quota rings and machine vitals on a dark background.

The itch

I live inside Claude Code now, and the one number I kept losing track of was my quota. The 5-hour window and the weekly limit both matter, but checking them meant stopping what I was doing to go hunt for a usage readout. By the time I looked, I was often already deep into a long session and the reset was too far away to plan around.

What I wanted was simple: a glanceable readout that just sits there. Something I could see out of the corner of my eye while I worked, showing how much runway I had left and which session was eating it.

A desk display

I had a spare phone lying around, so I propped it on my desk in portrait and pointed it at the job. It became a second screen: always on, always current, and sized for a glance rather than for reading. A small Node.js backend runs on my laptop and feeds the page; the phone just asks it for the latest numbers.

Pocket Oracle usage view showing two quota rings for the 5-hour and weekly limits with percent used and time until reset.
The usage view: one ring per limit, each with percent used and time until reset.

What it shows

The main view is the usage screen, and it answers three questions without any interaction:

Quota rings

Two neon rings, one for the 5-hour limit and one for the weekly limit, each showing percent used, time until reset and an estimated runout.

Current session

Which session or project is burning quota right now, so a sudden drop has an obvious cause.

Machine vitals

Battery, CPU and memory from the laptop, because a second screen that only shows the bill and not the machine is missing half the picture.

Media and idle views

A media view for when the phone is doing something else, and an idle clock for when nothing needs watching. Three views in total, all on the same phone.

Pocket Oracle idle view showing a large clock on a dark background.
The idle view: a clock, for when nothing on the desk needs watching.

Everything refreshes on a roughly 30-second cycle, so the numbers are never more than a short beat behind what the laptop knows.

Deliberately boring tech

The stack is as plain as I could make it. The frontend is a single HTML file with vanilla CSS and JavaScript: no framework, no build step, zero dependencies. The backend is a small Node.js server with three endpoints, one each for usage data, the current session and system vitals. Layout is sized in vmin units so it holds together on whatever phone is lying around, and it is portrait-only by design, since a desk display does not need to rotate.

Motion respects prefers-reduced-motion, and the dark background with neon accent rings keeps the screen readable in a dim room. Nothing here needed a library, and that was the point: fewer moving parts is fewer things to break on a machine that sleeps, reconnects and sleeps again.

The close

Pocket Oracle is a personal hack, and it is still running on my desk. It did what I built it to do: I stopped checking my quota by hand, and the number I used to forget is now the one I see first. It is a small project, but it is one I use every day, and I like that the best measure of it is whether I still look at it.

The code is public on GitHub if you want to see how the pieces fit together.

Want a Glanceable Readout Too?

If you find yourself constantly checking a number you cannot see, I am happy to talk through the same kind of build, whether it is for a desk, a dashboard or a workflow.

Karmit Patel

Karmit Patel

Full-Stack Developer · Senior Consultant at MNP Digital, Toronto