Ramesh Inampudi

Web apps

Building a Zero-Commission Flight Search Site for India

By Ramesh Inampudi · 2026-11-07 · 4 min read

Searching for flights from India usually means opening five tabs, comparing prices that change between sites, and then discovering that the cheapest fare picks up a convenience fee at checkout. I built BrutalCheapFlights to cut that down: a flight search site for Indian travellers, with prices in INR, no commission, and a plain comparison of where to book.

Why I built it

I build side projects in the evenings, and I wanted one that solved a problem I actually have when planning trips. Two things bothered me about existing flight sites. First, the headline fare is rarely the final fare once OTA convenience fees are added. Second, visa rules for Indian passport holders are scattered across embassy pages and forum posts. I wanted both answers near the search results.

There was also a constraint I chose deliberately: no paid infrastructure. Flight data APIs charge for volume, so I designed around free tiers. That constraint shaped most of the architecture.

What it does

How it works

The stack is deliberately small: an Express backend in server.js, a single index.html with inline CSS and JavaScript, and no build step. It requires Node.js 18 or later.

The search flow

  1. The browser calls GET /api/search with from, to and date, plus optional returnDate, adults and cabinClass.
  2. The server tries providers in order: Google Flights via RapidAPI (roughly 150 requests a month), Sky-Scrapper via RapidAPI (roughly 100 a month), then FlightAPI.io (about 10 searches). The first non-empty result wins.
  3. If a provider returns a 429, it is marked exhausted and tried last next time.
  4. Results from every provider are normalized to one shape, sorted by price, and tagged isCheapest, isBestDirect and isFastest.

The endpoint also has clear failure modes: 400 for missing parameters, 503 when no keys are configured, and 429 when all quotas are exhausted. A GET /api/health route reports which providers are configured or exhausted, which is handy when debugging a deployment.

Other routes

Deployment

Pushing to main deploys to Vercel. The file api/index.js exposes the Express app as a serverless function, while index.html and image.png are served statically. Security headers are set in vercel.json. API keys (RAPIDAPI_KEY, FLIGHTAPI_KEY, AVIATIONSTACK_KEY) live in environment variables, never in the repository.

What I learned

Treat quotas as a routing problem

With free tiers, a provider running dry is a normal event, not an error. Ordering providers by quota size and demoting any that return 429 means the user usually still gets results. The best-supplied provider takes most traffic, and the smallest one is a last resort.

Know what your state actually is

The exhausted flag is kept in memory, per instance. On a serverless platform, instances come and go, so that memory is not shared and does not persist. It is good enough here: the worst case is one wasted call to a provider that is already out of quota. A shared store would be more accurate, but it would add a dependency to a project that does not need one yet. Choosing an imperfect mechanism on purpose, and writing down its limits, beats building something heavier.

Normalize at the edge of each provider

Each API returns a different shape. Converting every response to one format immediately lets sorting and the cheapest, best direct and fastest tags work without caring where a result came from. Adding a fourth provider would mean writing one adapter, not touching the frontend.

Be honest about stale data

The convenience fees and visa data are static. Marking them as estimates in both the README and the interface is cheaper than pretending they are live, and it keeps users from relying on them blindly.

No build step is a feature

Keeping the whole frontend in one HTML file removes bundlers and tooling from a side project. For a site this size, that made deployment trivial and changes quick.

Try it

The site is live at https://brutalcheapflights.vercel.app. Because searches draw on limited free quota, please search by hand rather than with scripts or loops.

Conclusion

BrutalCheapFlights is a small project, but the pattern is reusable: chain several free-tier APIs, fall back automatically, normalize the results, and be explicit about what is estimated. If you have feedback or ideas, you can reach me at hello@iramesh.com.

Live: https://brutalcheapflights.vercel.app