How kakarla7/tripcraft works
TripCraft is a Streamlit AI trip-discovery app. The main workflow is traveller input, parallel destination/weather/budget recommendations, ranking, then results that can be saved, shared, or compared. Signed-in users can also revisit saved trips and searches. The excerpts show the search orchestration, ranking, persistence helpers, and sharing implementation; My Trips and several page interactions are unsampled, so those links are marked unverified. The README describes future itinerary and personal-space features, not implemented runtime components.
Main entry points: 1_Search.py Trip search · 2_Results.py Destination results · supabase_client.py Supabase access · share.py Share links
Components 20
Trip discovery
- Home and navigation
app.py - Trip search
pages/1_Search.py - City options
utils/cities.py - Destination agent
agents/destination_agent.py - Weather agent
agents/weather_agent.py - Budget agent
agents/budget_agent.py - Ranking agent
agents/comparator_agent.py
Results and comparison
- Destination results
pages/2_Results.py - Destination comparison
pages/3_Compare.py
Account and trips
- My Trips
pages/4_My_Trips.py - Login page
pages/5_Login.py - Authentication
utils/auth.py
Shared services
- Supabase access
utils/supabase_client.py - Share links
utils/share.py - Mobile layout
utils/mobile.py - Claude JSON parser
utils/json_parser.py
Other components
- Traveller
- Anthropic Claude
- Supabase database
- Browser share APIs
Connections 30
- Traveller → Home and navigation: opens
README.md - Home and navigation → Trip search: navigates
app.py - Trip search → City options: offers cities
pages/1_Search.py - Trip search → Mobile layout: injects layout
pages/1_Search.py - Trip search → Destination agent: requests matches
pages/1_Search.py - Trip search → Weather agent: requests weather
pages/1_Search.py - Trip search → Budget agent: requests costs
pages/1_Search.py - Trip search → Ranking agent: requests ranking
pages/1_Search.py - Destination agent → Anthropic Claude: queries model
agents/destination_agent.py - Budget agent → Anthropic Claude: queries model
agents/budget_agent.py - Ranking agent → Anthropic Claude: queries model
agents/comparator_agent.py - Weather agent → Anthropic Claude: queries model
README.md - Destination agent → Claude JSON parser: parses response
agents/destination_agent.py - Weather agent → Claude JSON parser: parses response
agents/weather_agent.py - Budget agent → Claude JSON parser: parses response
agents/budget_agent.py - Ranking agent → Claude JSON parser: parses response
agents/comparator_agent.py - Trip search → Destination results: opens results
pages/1_Search.py - Destination results → Supabase access: saves and loads
pages/2_Results.py - Destination results → Share links: creates share link
pages/2_Results.py - Destination results → Mobile layout: injects layout
pages/2_Results.py - Destination results → Destination comparison: opens comparison
README.md - Destination comparison → Supabase access: loads comparison
pages/3_Compare.py - Destination comparison → Share links: shares comparison
README.md - My Trips → Supabase access: accesses saved trips
pages/4_My_Trips.py - My Trips → Share links: shares saved trips
pages/4_My_Trips.py - Login page → Authentication: renders sign-in
pages/5_Login.py - Home and navigation → Authentication: renders account nav
app.py - Authentication → Supabase access: gets client
utils/auth.py - Supabase access → Supabase database: reads and writes
utils/supabase_client.py - Share links → Browser share APIs: invokes share APIs
utils/share.py