[ SaaS Platform ]

Skiable

Flight search and exploration platform

THE CHALLENGE

A flight search tool has to handle complex queries, return structured results quickly, and let people compare many options.

ROLE:Full-Stack Developer
YEAR:2024
TYPE:SaaS Product
STATUS:Live

TECH STACK

Next.jsTypeScriptMongoDBNode.jsReact
I

Engineering Approach

Fast Search

Built the search with Next.js and TypeScript, with data structures chosen for fast filtering.

Server-Side API Routes

Wrote API routes in Next.js that query MongoDB and return structured results.

Complex Interaction Design

Designed responsive interfaces for multi-step forms, date ranges, passenger counts, and result comparison.

Modular Architecture

Organized the code with reusable hooks and clear component boundaries.

II

Key Technical Decisions

The choices that shaped the architecture and how easy it is to maintain.

Next.js API routes

Used API routes instead of a separate backend.

WHY

One deployment, and TypeScript types shared between the frontend and the backend.

MongoDB aggregation

Used the aggregation pipeline for search.

WHY

Complex filtering and sorting is more efficient in the database than in application code.

Custom hooks for search state

Wrapped search and filter state in reusable hooks.

WHY

Complex logic lives in composable units that several components can use.

III

Challenges & Solutions

[ CHALLENGE ]

Searches with several filters were slow.

[ SOLUTION ]

Added compound indexes in MongoDB for the common filter combinations.

[ CHALLENGE ]

The search form's state was hard to manage and debug.

[ SOLUTION ]

Centralized it in a search context with TypeScript types and validation at each step.

[ CHALLENGE ]

Comparing many flight options was hard.

[ SOLUTION ]

Built a sortable table with persistent filters.

IV

Outcomes

Skiable is a flight search platform with filtering, sorting, and a responsive interface across devices.

KEY TAKEAWAYS

Search interfaces are more complex than they look. A simple form hides many edge cases and performance concerns.