Public
Remixed
Track cars you own & owned: mileage, MPG, docs, photos, history
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.

🏁 Garage

A personal car-history tracker. Log every car you own or have owned, and keep its full story in one place: purchase details, mileage, average MPG, photos, documents, and a timeline of services, mods, and repairs.

Features

  • Garage view — cars split into Currently own and Previously owned
  • Car detail page — purchase date/price/mileage, current mileage (+ miles driven while owned), avg MPG, ownership duration, sold date/price, notes
  • History timeline — log services, mods, repairs, inspections with date, mileage, and cost. Purchase and sale appear automatically. Logging a higher mileage rolls the odometer forward.
  • Photos — upload multiple, click to view, set a cover photo. Images are resized client-side (~1600px JPEG) to save storage.
  • Documents — titles, receipts, window stickers, insurance… view, download, delete.

Architecture

  • index.ts — Hono server: serves the frontend + REST API (/api/cars, /api/events, /api/files)
  • backend/db.ts — SQLite schema (cars, events, files)
  • Uploads live in the val's blob storage; metadata in SQLite
  • frontend/ — React 18 + Twind, hash routing (#/car/:id)
  • scripts/smoke.ts — in-process API smoke test (run it with run_file)

Notes

  • Blob storage is shared account-wide: 10 MB on Val Town free, 1 GB on Pro.
  • There's no auth — anyone with the URL can view/edit. Keep the URL private or make the val unlisted/private (Pro).