Startup · Aug 2026 – now

Sameway

Ride-pooling where sharing has a price cap.

Role
Founding engineer
Status
API live at api.sameway.mobi
Apps
Rider · Captain · Web · Admin
Fares
Capped when shared

Overview

Riders going the same way share a captain's car. The matching engine inserts compatible riders into a live trip in real time, with explicit limits on how much detour and cost sharing can add for each of them.

Why it exists

Most cars on Indian roads run with empty seats, and existing pooling makes riders gamble on detours. Sameway makes the trade explicit: lower fares, with a cap on what sharing can cost you.

Product film

How it works

  1. 1

    Two backend services with Kafka between them. The Core API (Express 5 + Socket.IO) owns Postgres; the Matching Engine is a Kafka worker running the shared matching pipeline.

  2. 2

    Matching is async because a pooled request can legitimately need up to 40 Route Optimization calls and 150 Routes calls; no synchronous HTTP request survives that.

  3. 3

    H3 corridor sets in Redis cut candidates to single digits before any billed Google call.

  4. 4

    Offers are broadcast to captains, and the trip commit is atomic so two riders can't take the same seat.

  5. 5

    Rider and captain apps are Expo with native navigation; ops run from a Next.js admin console.

Architecture

Clients

Rider app

Expo

Captain app

Expo + Nav SDK

Web + Admin

Next.js 16

Core API

Express 5

Socket.IO gateway

Payments · OTP · support

Event log

Kafka

requests ⇄ matches

Matching engine

H3 corridor filter

Route Optimization

Google

Scoring + caps

Data

Postgres / PostGIS

Redis

hot state, corridors

Hard parts

Every match costs money

Each route and optimizer call is billed. Budgets per run, H3 pre-filtering and caching keep a match within a known cost before any Google call is made.

Seats are a race

Two matches can try to fill the same seat at once. The commit is a single atomic transaction with re-validation, and the loser re-enters matching.

Fairness for the first rider

Adding riders can hurt whoever booked first. Each rider carries a detour and price cap; a candidate that breaks any cap is rejected, however good it is for the others.

By the numbers

Rider · Captain · Web · Admin
Apps
Capped when shared
Fares
≤40 optimizer calls/run
Matching budget

Screens · 25

Website
Website (1/25)

Stack

  • Expo 57
  • Next.js 16
  • Express 5
  • Socket.IO
  • Kafka
  • Postgres + PostGIS
  • Redis
  • H3
  • Google Route Optimization
  • Razorpay
  • Twilio
Next projectRetroMobiBook a specific scooter from a licensed rental shop.→