AI · Travel · 2026
Planit
AI travel itinerary planner: give it your dates, budget, pace and interests, and get a day-by-day plan.
- Days per trip, planned stop by stop
- 14
- Days per trip, planned stop by stop
- Currencies for budgets, from IDR to GBP
- 7
- Currencies for budgets, from IDR to GBP
- Pace options, from 2–3 to 5+ stops a day
- 3
- Pace options, from 2–3 to 5+ stops a day
- Memory used by the production server
- ~200 MB
- Memory used by the production server
About the project
The problem, in plain terms
Planning a trip usually means a dozen open tabs: blogs, maps, opening hours, prices, and a spreadsheet to keep it all within budget. Planit does the first draft for you. Tell it where (or let it surprise you), when, who's coming, how busy you want each day and what you enjoy, and it builds a realistic day-by-day plan you can tweak, share and print.
Planit is an AI travel itinerary planner. You pick a destination or press 'Surprise me', choose your dates, group size, pace, budget and interests, and it generates a day-by-day itinerary with times, estimated costs, map links and local tips.
Itineraries are generated with the Gemini API using JSON structured output, then validated and costed on the server before they are saved. Trips live in a personal My Trips dashboard, stay private unless you share them, and any single day can be regenerated with a request like 'more food, less walking'.
It runs on the same Google Cloud VM as this portfolio, deployed by a GitHub Actions pipeline that builds in CI, health-checks each release and rolls back automatically if a release doesn't come up.
Key features
- Day-by-day plans with times, costs and map links
- 'Surprise me' destination picker
- Budget tracking per activity, per day and per trip
- Regenerate one day with your own request
- My Trips dashboard with private share links
- Print or save any itinerary as PDF
How it works
How a trip gets planned
From the form to a saved itinerary in one request, with the AI's answer checked before anything is stored.
- 1
Trip form
Next.js · shadcn/ui
- 2
Server action
Clerk · zod
- 3
AI generation
Gemini API
- 4
Validate & cost
zod
- 5
Save
PostgreSQL · Drizzle ORM
- 6
Your itinerary
Next.js
- 1
Trip form
You choose a destination (or 'Surprise me'), dates up to 14 days, travelers, pace, a budget in one of 7 currencies, and interests.
- 2
Server action
Checks that you're signed in, validates every field, and enforces a daily limit of new plans per user.
- 3
AI generation
Your preferences become a structured prompt. Gemini must answer in a fixed JSON schema, with one automatic retry if the service is busy.
- 4
Validate & cost
The reply is validated again on the server with safe fallbacks, and the trip total is recalculated from each activity rather than trusting the model's sum.
- 5
Save
The itinerary is stored against your account, private by default.
- 6
Your itinerary
Day cards with times, costs, map links and tips. Regenerate a single day, share a link, or print and save as PDF.
Reliability & security
Built to fail safely
Never trust the model blindly
Gemini is constrained to a JSON schema and its reply is re-validated with zod. Bad categories or costs fall back to safe defaults, and totals are recomputed on the server.
Cost and abuse limits
Each user can create a limited number of plans and day regenerations per 24 hours, which keeps the AI bill predictable on a public site.
Private by default
Sign-in is handled by Clerk. A plan is only visible to its owner until they choose to share it.
Safe deploys with rollback
CI lints, type-checks, tests and builds a standalone server, migrates the database over an SSH tunnel, switches releases atomically, and rolls back if the health check doesn't report the new version. The database is backed up nightly.
Screenshots
Inside the app
Plan a trip
Pick a destination (or 'Surprise me') and travel dates up to 14 days.
Preferences
Travelers, pace, budget in your currency, and interests.
My Trips
Every saved itinerary at a glance, newest first.
Next project
Musawarah
An autodebit donation platform that makes recurring charitable giving automatic and transparent.