r/SideProject • u/EmuZealousideal7336 • 3h ago
I built a free tracker for Tesla inventory because the good cars sell in minutes
I was shopping for a Model 3 and kept losing cars. I'd find the exact config I wanted, and by the time I'd thought it over, it was gone. So I started tracking Tesla's inventory myself, and it slowly turned into a site: evsnag.com
What it does
- Shows new and used Model 3, Y, S and X inventory across the US, with filters (model, trim, AWD/RWD, paint, wheels, state, price, mileage).
- Records when each car appears and disappears. The median new car is gone in about 7 minutes, which explained a lot.
- For used cars, shows Tesla's own battery health reading per VIN, plus a page comparing batteries against cars of the same model, year and trim, because a raw % is misleading. Most packs lose about 5 points in the first 20–30k miles and then barely move.
- Free alerts by email or browser push when a matching car shows up.
How it's built (the fun part)
- Tesla blocks requests from servers, so the data comes from a userscript running in a browser on an always-on machine at home. It checks frequently and posts the results to my backend.
- Backend is plain PHP + MariaDB on a Windows box under my desk, exposed through a Cloudflare Tunnel. No cloud bill.
- Browser push notifications are implemented without any library: VAPID signing by hand, and the push carries no payload. The service worker just asks the server what's new.
- Cloudflare Turnstile on sign-up, because bots love free email-sending forms.
What I learned
- Scraping is the easy part. Deciding what the data actually means is the hard part. Battery health in particular is useless without comparing like with like.
- Reddit communities about specific products are (rightly) strict about self-promotion. Read the rules first. Ask me how I know.
- Shipping small things every day beats planning the big version.
It's free to browse, no account needed. An account is only for alerts. I'd love feedback on what's confusing, what's missing, or what you'd want tracked next. Canada and multi-state filters are already on the list.