Samokov TransitСамоков
Samokov is a town below the Borovets ski resort. Its bus timetables are published as PDFs. This project turns them into something you can search.
- Role
- Design, data work and build
- Built with
- TypeScript, React, GTFS, Fastify
- Fields
- Links
- No public deployment or repository yet


Context
The goal is a map and timetable for residents and visitors: lines, stops, destinations and scheduled departures, in Bulgarian and English, in light and dark themes.
I rebuilt this project several times before the current repository. The lesson from the earlier versions was that the interface is the easy part. The timetable data is where a transit app is right or wrong.
Approach
So the current version started with the data. The source is a GTFS feed for the Samokov network. Before importing anything I pinned it to an exact revision, recomputed the checksum of every file, and ran the validation pipeline in an isolated copy. The result: 0 errors and 225 warnings, each one categorised.
The repository is a pnpm workspace. One package normalises the feed into validated JSON, another provides the query layer, and a separate Fastify service probes the transport data sources. The passenger app reads the generated data.
- public lines
- 6
- stops
- 87
- trips in the feed
- 165
Progress
4 of 7 milestones done
- Prototype(done)
- Data audit(done)
- App foundation(done)
- Data pipeline(done)
- Live map(not started)
- Passenger screens(not started)
- Release checks(not started)
Details
- What the audit found
- Six public lines (1, 2, 14, 16, 17 and 21), 87 stops, 165 trips and 19 route shapes. Line 21 only runs in winter and has no direction field, so directions have to be derived.
- What the audit could not prove
- The feed is inside its validity window, but nobody has checked it against buses on the street. The audit records that, so the timetable is treated as scheduled data, not confirmed service.
- Demo data is labelled
- The prototype marks fixture data as demo data in both languages, so a screenshot can never be mistaken for a real departure board.
Where it stands
This is unfinished work. The prototype, data audit, app foundation and data pipeline are complete. The live map, passenger screens on real data, and release testing have not started, and there is no public deployment yet.