Slipstream
A ride-tracking app for Android
An Android app that records rides with only the phone's GPS, replays them coloured by speed, runs live group rides and tracks fuel spends. The whole server side runs on free plans.
Ride replayMarine Drive, Mumbai · ends trimmed
- Time
- 7:23
- Speed
- 40 km/h
- Distance
- 3.9 km
Want to try it? Slipstream is in a closed test through Google Play, and joining takes a few minutes. Join the test here.
In short
Problem. Phone GPS can go badly wrong at speed. A short commute can report a speed no vehicle on that road could reach, and most ride trackers either hide this or need extra hardware.
What I built. I built an Android app that records a ride from phone GPS alone. It has a filter that throws away bad GPS readings, a compact ride format shared by the app and the server, and a server designed to stay inside free hosting limits, live group rides included. I then took it from a private build to a closed test through Google Play. That meant sign-up with no passwords that is protected from abuse, backup and restore between phones, consent that blocks uploads until it is given, and releases from the command line.
What I measured. I measured how small the ride files are, how far a stored position can drift from the real one, and what real rides did to my first assumptions.
What it looks like
Try it: join the test
Slipstream is in a closed test through Google Play. Google needs at least 12 people to keep it installed for 14 days in a row before it can be released to everyone, and you can help. You need an Android phone, and it takes about two minutes.
- Join the tester group with the Google account your Play Store uses: Slipstream early adopters. Testing only works for that account.
- Become a tester. Open the testing page and tap Become a tester.
- Install it from Google Play. If it says the app isn’t available, wait a few minutes after step 2 and try again.
Please keep it installed for the next 14 days. If testers drop out, the 14 days start again for everyone.
Already using an earlier version I sent you? Don’t uninstall it yet, or you’ll lose your rides and fuel logs.
- In the old app, go to You → Move to a new phone → Save backup, and save it to Downloads.
- Uninstall the old app, then install from Google Play.
- In the new app, go to You → Move to a new phone → Restore backup and pick that file.
What helps most: just use it. Record a few trips, look at the map afterwards, and add your vehicle and a fill-up if you like. If something looks wrong, like a strange line on the map, a speed that makes no sense, or the app stopping on its own, email me a screenshot and roughly when it happened. Email is better than posting in the group, because a map screenshot shows where you were.
Privacy: rides are stored on your phone. Cloud backup is your choice on the first screen, and you can delete your account and everything you uploaded from inside the app. Read the privacy policy.
1 Context
Slipstream is for anyone who wants a better record of their rides. It shows how fast they really went and where, where the people close to them are when they ride together, and what their vehicle spends on fuel.
It started with my own commute. I ride to work every day, and no app I tried showed how fast or slow I actually went, or where on the route I was slow and where I was quick. So I made one that colours the ride by speed. Then I wanted to see where my friends were on a ride. When several of us go on a trip on different vehicles, anyone can start a live session, the others join it, and everyone sees where each of us is.
Slipstream turns phone GPS into speed-coloured replays and live group rides. It is an Android app with a Cloudflare backend, and the whole stack is TypeScript. A small group used it privately from August 2026. Since October it has been in a closed test through Google Play. Each build is made and published from the command line, to an internal test track first and then to the closed test.
I do not quote audience numbers.
2 Constraints
- Noisy GPS readings. A parked phone draws a tangle of lines on the map, signals bouncing off buildings report absurd speeds, and indoor Wi-Fi fixes hop hundreds of metres.
- Battery Saver. Android’s Battery Saver can switch GPS off while the screen is off, even for an app running as a foreground service.
- Free tiers. I designed the app to stay inside the free limits.
3 What I built
The sampler sits between the GPS and the database, and it can say no. It gates on fix quality, holds still when the phone is parked, rejects jumps and outliers in tiers, and decides “stopped” by displacement from an anchor and not by wobble, because a random walk can fake wobble but cannot fake displacement.
The codec quantises the absolute position first and then takes the delta. I never round a float delta, because rounding each delta is a random walk and the errors add up. Quantising first keeps the error bounded at the same byte cost.
Rounded deltas drift 73 m by the end of the track
Quantise, then delta stays within 0.556 m, however long the track
A finished ride becomes one gzipped blob plus metadata, and the backend stores one database row per ride. The Worker never inflates a track, which protects its CPU budget and keeps the trust boundary clear. Live group rides run in a Durable Object per six-character code. Positions pass through memory and never touch the database or object storage.
Getting it ready for a public test. There are no accounts or passwords. Each phone makes its own Ed25519 key, and registering it needs a Play Integrity verdict bound to that key, so a token can’t be reused for another phone. Older private builds still register with a shared secret until they’re retired. Around that sit rate limits per network address and per account, daily caps on new accounts and uploads, and a kill switch per account. Every refusal says when to retry, and the app’s sync already waits for it. The Play build is signed with a different key from the earlier private builds, so Android can’t update one into the other. Moving to the Play build therefore means reinstalling, which wipes local rides. So the app gained backup and restore, which is a full copy of the phone’s database, including the account key. The new install then carries on with the same cloud account and merges without duplicates.
Consent controls the data itself, and is more than a screen I show. Nothing uploads until the current version of the consent is accepted. Raw GPS diagnostics are a separate opt-in, and declined ones are thrown away, never sent. Account deletion is in the app and on a public page, and raw GPS is deleted automatically after a fixed period by a storage rule, so the privacy policy’s promise holds. One script builds the Play bundle and refuses without the signing key, or if the shared secret the private builds use ever turns up in the compiled app. A second publishes to any Play track, with a dry run that has Google check a release without publishing it.
Fuel and vehicles. Each ride and fill-up belongs to one vehicle, or to none, on foot. Mileage uses the standard fill-to-full method, where the fuel added after one full tank, up to the next full tank, is what was burned in between. Partial fills roll into the next full one, and a “missed a fill-up” flag voids that stretch instead of under-counting it. The odometer is optional, because the app records every ride and can add up the distance between fills itself. Only volume and total cost are stored, never the price per litre as well, so the three can never disagree by a rounding unit.
Driving events. Hard acceleration and braking are detected while recording, from the raw readings taken every second, not from the stored track. On a city test ride the raw readings showed more than a dozen of each; the stored track showed none, because sampling keeps a route’s shape but loses its dynamics. The app stores low-threshold candidates and applies the display threshold when you view a ride, so I could retune it on real rides without new data: down to 2.0 m/s²the threshold for showing hard acceleration and hard braking, recalibrated on real rides; was 2.5 and 3.0 m/s², at the very top of what real rides produced.Method stored low-threshold candidates from 23 real rides (229 candidates) replayed against new display thresholds.My calibration on real rides, Aug 2026 · Measured by me2.0 m/s²the threshold for showing hard acceleration and hard braking, recalibrated on real rides; was 2.5 and 3.0 m/s², at the very top of what real rides produced.Methodstored low-threshold candidates from 23 real rides (229 candidates) replayed against new display thresholds.SourceMy calibration on real rides, Aug 2026ClassMeasured by me · Aug 2026. Sharp turns stay hidden until their noise is measured on real GPS.
Replaying rides. Each ride also records its raw readings as a side channel, and the sampler is deterministic, so any reported ride can be replayed through the current code. So I check a fix against the ride that broke it.
4 Measurements
The codec
| Reading | What it shows |
|---|---|
| 0.556 m0.556 mworst-case GPS position error, permanently bounded, at the same byte cost; rounding the deltas instead drifted 73 m over 2,000 points.Methodreconstruction error of the track codec on a 2,000-point track, quantise-then-delta vs rounded float deltas.NoteHalf of the 1.11 m position quantum; the bound holds for any track length.SourceMy measurements, codec test suite, Aug 2026ClassMeasured by me · Aug 2026 | Worst-case position error with quantise-then-delta. It holds for any track length. |
| 73 m73 mposition drift when GPS deltas are rounded instead of quantised, over a 2,000-point track; the quantise-then-delta bound is 0.556 m at the same byte cost.Methodreconstruction error of the track codec on the same 2,000-point track as the 0.556 m bound, rounded float deltas.NoteRounded deltas are a random walk, so the error keeps growing with the length of the track.SourceMy measurements, codec test suite, Aug 2026ClassMeasured by me · Aug 2026 | Rounding the deltas instead, at the same byte cost, over a 2,000-point track. |
| 126 m126 mthe same rounding drift after 10,000 points; was 73 m after 2,000 points.Methodreconstruction error of the track codec with rounded float deltas, on a 10,000-point track.SourceMy measurements, codec test suite, Aug 2026ClassMeasured by me · Aug 2026 | The same rounding after ten thousand points. It keeps growing. |
What it costs in bytes
| Reading | What it shows |
|---|---|
| 1,702 B1,702 Bone hour of city riding, encoded and gzipped.Methodbyte length of the encoded and gzipped track in the codec test suite. synthetic city-ride fixture, not a real ride.SourceSynthetic test ride, codec test suite, Aug 2026ClassSynthetic · Aug 2026 | One hour of city riding, gzipped (synthetic test ride). |
| 4,627 B4,627 Bone hour of highway riding, encoded and gzipped.Methodbyte length of the encoded and gzipped track in the codec test suite. synthetic highway fixture, not a real ride.SourceSynthetic test ride, codec test suite, Aug 2026ClassSynthetic · Aug 2026 | One hour on a highway (synthetic). |
| 49,250 B49,250 Btwelve hours of riding, encoded and gzipped.Methodbyte length of the encoded and gzipped track in the codec test suite. synthetic long-ride fixture, not a real ride.SourceSynthetic test ride, codec test suite, Aug 2026ClassSynthetic · Aug 2026 | Twelve hours (synthetic). |
| 88 B88 Ba parked phone, encoded and gzipped.Methodbyte length of the encoded and gzipped track in the codec test suite. synthetic parked fixture, not a real ride.SourceSynthetic test ride, codec test suite, Aug 2026ClassSynthetic · Aug 2026 | A parked phone (synthetic). |
| ~2 B per point~2 B per pointstored cost per GPS point on real rides after encoding and gzip; naive JSON costs about 58 B per point.Methodstored blob bytes per point on real rides, against the same points as JSON, as recorded in the project's architecture notes.NoteAn approximation from the project notes.SourceMy measurements on my own rides, 2026ClassMeasured by me · Oct 2026 | Real rides, per point. JSON costs far more. |
What real rides did to my assumptions
| Reading | What it shows |
|---|---|
| 170.6 km/h170.6 km/htop speed one short commute reported, from a single corrupted fix.Methodpeak of the speed series on the recorded ride.NoteDoppler speed and position both came from the same corrupted solution, so cross-checking one against the other could not catch it.SourceMy ride of 19 Aug 2026ClassMeasured by me · 19 Aug 2026 | The top speed a short commute reported. |
| 64.8 km/h64.8 km/htop speed of the same ride replayed through the sampler with the acceleration check; was 170.6 km/h.Methodreplay of the recorded ride through the sampler with the tier-2 acceleration check on.SourceMy ride of 19 Aug 2026, replayed in Aug 2026ClassMeasured by me · Aug 2026 | The same ride replayed once the acceleration check existed. |
| 262 s262 slongest gap in GPS fixes in one 11-minute ride while Battery Saver was on.Methodlargest interval between consecutive fixes on the recorded ride.NoteA second gap of 89 s in the same ride. Found with adb dumpsys location, not by reading the code. A foreground service and a battery whitelist do not exempt the app.SourceMy measurements on my own phone, 2026ClassMeasured by me · Oct 2026 | The longest gap Battery Saver left in a short ride. |
Free-tier arithmetic
| Reading | What it shows |
|---|---|
| ~16,600 rides/day~16,600 rides/dayrides per day that the free database write budget allows at one row per ride; was about 25,000 at four row-writes per ride.Methodfree-tier arithmetic, daily write allowance divided by the six row-writes each ride costs.NoteArithmetic from the design, not a traffic measurement.SourceDesign arithmetic, free-tier limits, Oct 2026ClassDerived · Oct 2026 | Rides per day the free write budget allows at one row per ride. |
| ~27 rides/day~27 rides/dayrides per day the same free budget would allow if every GPS point were its own row.Methodfree-tier arithmetic, daily write allowance divided by the rows a ride of typical length would need.NoteArithmetic from the design, not a traffic measurement.SourceDesign arithmetic, free-tier limits, Oct 2026ClassDerived · Oct 2026 | The cap if every point were its own row. |
| 270 requests270 requestsbilled requests for a three-rider, one-hour group ride with Durable Object hibernation.Methodfree-tier arithmetic for three riders over one hour, with the object hibernating between messages.NoteArithmetic from the design. I have not yet read the real cost of a group ride off the Cloudflare dashboard.SourceDesign arithmetic, free-tier limits, Oct 2026ClassDerived · Oct 2026 | Billed requests for a three-rider hour. This is arithmetic and not a dashboard reading. |
| 536 tests536 testsautomated tests in the repository, all passing.Methodthe test suite run per project: the track codec 213, the app 210, the server 113.SourceMy test run, 14 Oct 2026ClassMeasured by me · 14 Oct 2026 | Test cases in the repository. |
5 What broke
- The obvious check failed. On a short commute, one fix jumped a few hundred metres and came back. Speed and position came from the same corrupted solution, so cross-checking them could not catch it. Acceleration is the one thing such a jump cannot fake, so tier two compares against the last resolved speed, one-sided and discounted by accuracy.
- Stillness measured the wrong thing. I first judged “stopped” by deviation. A long ride logged almost half its distance as wobble, with spurious pauses, and auto-stop never fired. Displacement from an anchor fixed it.
- Some fixes came first, some came from real rides. A few things I fixed before measuring anything, because I knew they would not hold. Others only showed up when I rode with the app on my phone: indoor Wi-Fi hops and a parked phone’s wobble. Those two are why I added the quality gate and the static hold.
- Battery Saver. One of my own short rides arrived with a gap of 262 slongest gap in GPS fixes in one 11-minute ride while Battery Saver was on.Method largest interval between consecutive fixes on the recorded ride.Note A second gap of 89 s in the same ride. Found with adb dumpsys location, not by reading the code. A foreground service and a battery whitelist do not exempt the app.My measurements on my own phone, 2026 · Measured by me262 slongest gap in GPS fixes in one 11-minute ride while Battery Saver was on.Methodlargest interval between consecutive fixes on the recorded ride.NoteA second gap of 89 s in the same ride. Found with adb dumpsys location, not by reading the code. A foreground service and a battery whitelist do not exempt the app.SourceMy measurements on my own phone, 2026ClassMeasured by me · Oct 2026. Battery Saver switches GPS off when the screen goes off, and neither the foreground service nor the battery whitelist exempts the app. I found the cause with
adb dumpsys locationrather than by reading code, then added a native module and a warning the rider cannot dismiss. - “The fix looks right”, twice. A native marker-animation crash took four releases. Two fixes that looked right crashed on the very next real ride. What held was removing the native animation call and moving the movement into JavaScript. The lesson for me was to reproduce a crash before fixing it.
- Long stops counted as riding time. A tester’s ride showed almost twice its real length: they arrived and parked, and recording ran until auto-stop ended it. Long stops are now cut off at the start or end of a ride, collapsed into one break in the middle, and skipped by the replay, speed chart and duration. A migration recalculated every stored ride without touching the tracks. It was reported, fixed and out to the internal test track the same day.
- An upload that could never succeed. A ride stopped within a second “ended” a fraction of a second before it started, because Android hands over a slightly stale first reading. The app and the server both rejected it for good, and the ride list hid it because it had no distance. For seven weeks the only trace was “1 ride couldn’t upload”, which Retry never cleared. I found it by opening the app’s own backup file. The fix clamps the end time, and a migration repaired and re-queued the affected rides.
6 What I’d change
- Read the real cost of a group ride off the Cloudflare dashboard. The group-ride figure above is arithmetic.
- Release the codec as open source. The link above stays “Coming soon” until I do.
- Build the “location uncertain” state, so the app says so when fixes are bad instead of drawing a confident line.
- Verify the GPS hold thresholds on more handsets. I tuned them on my own phone.
- Add a passenger ride type. I had to record a cab ride as “on foot”.
7 Credits and disclosures
- Tools: I designed the app, the codec and the free-tier architecture, and tested on my own phone with replayable regression rides. AI coding agents help me write code faster.
- Open source this stands on: Expo and React Native, react-native-maps with the Google Maps SDK, Phosphor icons (MIT) and the Inter typeface. I patched two libraries.
- Privacy: account deletion is in the app, and the policy is linked above.
- Rides: synthetic or privacy-transformed, as stated above.
Details
- Role
- Designer and builder
- Dates
- Aug 2026–now
- Status
- Stack
- TypeScript, Expo and React Native, Cloudflare Workers, D1 and R2, Durable Objects, SQLite
- Built with
- Designed and built by me, with AI coding agents for speed, and tested on my own phone.
- Links
- Google Play listing:
- track-codec (open source):
- Privacy policy (external)
- Delete account (external)
Talk to me about this
Questions about the method, or something I got wrong? Write to me.




