The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
import { MAX_TRIP_DAYS } from '../trip/trip.schema';
import { z } from 'zod';
export const roadtripDayBoundarySchema = z
.object({
day_number: z.number().int().min(1).max(MAX_TRIP_DAYS),
from_assignment_id: z.number().int().positive(),
to_assignment_id: z.number().int().positive().nullable(),
fraction: z.number().min(0).max(1),
})
.refine((b) => b.to_assignment_id !== b.from_assignment_id, 'A boundary needs two different stops');
export const roadtripDayBoundaryListSchema = z.object({
boundaries: z.array(roadtripDayBoundarySchema),
});
export type RoadtripDayBoundary = z.infer<typeof roadtripDayBoundarySchema>;