Skip to content
Case study

nah.meter.
A verdict before the timer runs out.

A delivery offer gives a courier fifteen seconds and three numbers: pay, minutes, kilometres. It never gives the one that matters, what it pays per hour. nah.meter reads the offer off the screen, scores it against the courier's own rules and answers in one word: bet!, meh. or nah. It never taps anything, and it never goes online.

  • Kotlin
  • Jetpack Compose
  • Accessibility service
  • ML Kit OCR
  • Room
  • DataStore
  • GitHub Actions
nah-meter.json// shipping
timeline
Oct 2026 · v1 to v1.0.92 in 3 days
status
sideloaded APK · Android 8+
scale
5.7k lines Kotlin · 52 tests
network
none, by manifest
github.com/ejricahuerta/nah-meter

at a glance

~1 s
from offer card to verdict
52
parser + scorer unit tests
41
signed releases in 47 hours
27
pull requests merged
5.7k
lines of kotlin
0
internet permissions

in 45 seconds

nahmeter-promo.mp4
// the promo, also built in code: Remotion, the app's own tokens and scoring logic, a voiceover cut to the frame

reading a screen that won't be read

The maths is one line: pay divided by minutes, times sixty. Everything hard is getting three numbers off someone else's app, a second after they appear, on a phone in a dash mount, while being certain enough to say them out loud.

// 01

The text isn't there

The delivery app shows offers as a pop-up over other apps and hides its text from accessibility. So the main path is a screenshot cropped to that app's windows only, read on the phone by ML Kit about once a second. No recording prompt, no upload.
// 02

Forgive the OCR, never guess

“$1l.59” and “$1159” are both $11.59, and a bracket read as a C is still a bracket. But a trip line with an hours word and no readable hours number is can't read., because the minutes alone once scored a 63-minute trip as 3 minutes: $270.80 an hour. A trip faster than 100 km/h is a misread time, not a great offer.
// 03

The tallest number, not the biggest

Pages behind the pop-up have their own dollar amounts. The pay is the dollar figure in the tallest text in the band above the trip line, never the largest value on screen.
// 04

Two reads must agree

$19.04 read once as $9.04 is a nah. on a good offer. A screenshot read only counts when the next one agrees, so a one-off misread never shows, and never replaces a verdict that's already up. The verdict stays as long as the card does, and leaves 600 ms after it's gone.

The honest trade-off: OCR is the main path because the accessible one is closed, and it costs about a second per verdict. Every parser fix starts as a unit test built from the exact lines a courier pasted from the app's diagnostics log.

pipeline

How nah.meter reads an offerA delivery offer pops up over other apps. nah.meter's accessibility service notices it but reads only the delivery app's own windows. Because the offer's text is hidden from accessibility, it takes a screenshot of those windows about once a second and reads it with on-device text recognition. The parser turns the recognised lines into pay, minutes and kilometres, tolerating recognition mistakes but returning can't read rather than guessing, and two reads must agree before a verdict shows. The scorer applies the courier's own rules with exact maths, and the verdict card docks above the offer and can be spoken aloud. Everything happens on the phone: the app has no internet permission.Offer pop-uppay · minutes · km · 15 sAccessibility servicedelivery app's windows onlyScreenshot + OCRML Kit, on the phone · ~1/sOfferParserforgives OCR, never guessesScoreryour rules · exact mathsVerdict card + voicedocked above the offertwo reads must agree// all on the phone · no internet permission// it never taps the offerHow nah.meter reads an offerA delivery offer pops up over other apps. nah.meter's accessibility service notices it but reads only the delivery app's own windows. Because the offer's text is hidden from accessibility, it takes a screenshot of those windows about once a second and reads it with on-device text recognition. The parser turns the recognised lines into pay, minutes and kilometres, tolerating recognition mistakes but returning can't read rather than guessing, and two reads must agree before a verdict shows. The scorer applies the courier's own rules with exact maths, and the verdict card docks above the offer and can be spoken aloud. Everything happens on the phone: the app has no internet permission.Offer pop-uppay · minutes · km · 15 sAccessibility servicedelivery app's windows onlyScreenshot + OCRML Kit, on the phone · ~1/sOfferParserforgives OCR, never guessesScoreryour rules · exact mathsVerdict card + voicedocked above the offertwo reads agree// all on the phone · no internet// it never taps the offer
// one phone, no network, and the read-twice step picked out in lime
  • the service has to hear events from every app, because the offer's “window changed” event carries no package name; it reads text only from the delivery app's own windows
  • the verdict is an accessibility overlay, so there's no “draw over apps” permission, and it uses screen coordinates: without that, Android shifted it down by exactly the status bar's height on a Pixel
  • the screenshot reader frees every bitmap as soon as it's done; at one read a second for a whole shift, a leak there crashed the app after a few hours
  • Android switches a crashed accessibility service off and only the user can turn it back on, so if the reader stops mid-shift, a notification says so

decisions I'd defend

Advice only, never a tap

Auto-accept is the first thing couriers ask for, and it's how accounts get deactivated. The app can't tap: there's no gesture code in it at all. The courier decides; nah.meter just does the maths faster.

Offline, enforced by the manifest

The manifest removes the internet permission with a merge rule, so no library can quietly add it back. No analytics, no crash reporting that leaves the phone. Diagnostics are a log the courier copies and pastes, if they choose to.

“can't read.” beats a confident wrong answer

A verdict someone acts on in fifteen seconds has to be right or absent. Any number the parser can't stand behind turns the card grey, rather than into a best guess dressed up as an answer.

The strict rate is the courier's call

Missing the strict rate is nah.; missing the other is only meh. $ per hour by default, $ per km in traffic, when the minutes stretch and the distance doesn't. One tap in the shade flips it.

Say it, don't show it

The verdict can be spoken, “nah. 15 an hour”, on media volume at the courier's level, because the delivery app turns navigation volume down. Whole dollars, because “fourteen nineteen per hour” is noise at 60 km/h. Silent on calls.

debugging a phone I don't hold

// diagnostics

A log written for pasting

The app keeps the last 150 entries on the phone: the delivery app coming and going, the lines each reader saw, every verdict and where it came from, and the last crash's stack trace. One tap copies it, and a bug report becomes a reproducible test.
// core

The logic has no Android in it

Parsing and scoring live in a plain Kotlin module with exact BigDecimal maths, tested anywhere: 52 unit tests, including the eight scoring cases from the product spec as acceptance criteria. Exactly meeting a threshold passes.
// releases

Every merge is a signed build

Each merge to main runs the tests and publishes a signed APK as a GitHub release, with the build number as the version code so updates always install over the last one. 41 releases in the first 47 hours.
// design

Colour only means a verdict

Black, white and Geist, from one token file. Colour appears in exactly one place: the verdict word. A courier glancing at a dash mount should never have to wonder what a green thing means.

stack

// app
  • Kotlin · Jetpack Compose
  • Accessibility service + overlay
  • ML Kit text recognition, on device
  • On-device text-to-speech
  • Room · DataStore
// core
  • Plain Kotlin module
  • BigDecimal scoring
  • OCR-tolerant parser
  • JUnit · 52 tests
// delivery
  • GitHub Actions
  • Signed APK per merge
  • Sideloaded · Android 8+
  • Remotion promo, built in code
next_steps.md// currently taking on new projects

Your users have fifteen seconds, not a desk.
Good. Those are the fun ones.