Inspiration
The hackathon brief said to start with something you notice on an ordinary day, and named a confusing bus transfer as an example. That is exactly the trip many people around me take every week: a ride to the park, a bus, a short walk, then another bus. The plan usually lives in your head, and one short transfer can break the whole day. I wanted one clear screen that shows each step, checks the gaps between rides, and tells you when to leave home. I built PopHop solo during the hackathon window, from 26 November 2026.
What it does
PopHop turns a multi-stop trip into big step cards. For each step you add how you are moving (bus, train, walk, ride, ferry or flight), where from and to, and the leave and arrive times. PopHop then checks every transfer gap and labels it Comfortable (20 minutes or more), Tight (8 to 19 minutes), Risky (under 8 minutes), or Missed connection. It adds up moving time, waiting time, the longest wait, and how many transfers look risky. It works out a leave-home-by time from your first departure, the minutes it takes to reach the stop, and a safety buffer you choose. It offers a follow along mode with a progress bar, so you can tick steps off as you travel. It copies the whole plan as plain text to share with family, or prints the step cards. It saves trips on the device with localStorage, so it keeps working offline and needs no sign up. Two sample trips are ready to try: a Bida to Abuja morning run (ride, bus, walk, bus) that includes one risky five minute transfer, and a Peninsula day trip (walk, train, bus, walk) inspired by the hackathon theme.
How I built it
React with Vite and Tailwind CSS. The interface uses a small design system of chunky rounded cards, sticker badges and bold type in coral, orange and violet on white, built from shadcn style components written for this project. All the time maths (parsing times, leg durations, transfer gaps, trip totals, leave-by calculation, overnight legs) lives in one tested module. State is kept in React and persisted to localStorage. The site is a static build, so it can be hosted on GitHub Pages and used offline after the first load. An AI coding assistant helped write and test code; the idea, design choices and final product are Ibrahim's.
Challenges I ran into
Times are trickier than they look. Overnight legs, a next ride that leaves before you arrive, and gaps that wrap past midnight all needed careful handling so the badges never lie. I also had to keep the screen calm: lots of numbers, but only one clear message per card. Writing unit tests first for the time module made both problems much easier to trust.
Accomplishments that I am proud of
The risky transfer warning is honest and instant. Change one time and every badge, total and the leave-home time update together. Twenty two unit tests pass, covering time parsing, overnight legs, gap levels, totals, leave-by maths and input checks. The whole app works offline with no account, which matters on the road where signal drops. The design reads well on a phone at a bus park: big type, high contrast, one thumb friendly actions.
What I learned
A small tool earns trust by being right about simple things. Most of the work was not the screens, it was making the time maths boring and correct, then presenting it so a tired traveller can read it in seconds. Testing the logic separately from the interface paid off every time I changed a rule.
What is next for PopHop
One tap "leave earlier" suggestions when a transfer is risky. Optional reminders before each step, using the times already in the plan. A shareable link per trip, so family can follow the same step cards. More sample trips for common routes, added from real journeys.
Built With
- css
- html
- javascript
- localstorage
- react
- tailwind-css
- vite
