How secretgspot/25-cariari.agency works
Cariari.Agency is a real-estate listings platform for the Cariari area. Buyers browse and filter properties, inspect map previews and details, then submit inquiries; agents authenticate to create or maintain listings, capture locations and photos, and produce printable QR flyers. Separate branches provide a read-only public property API, agency contact, and sitemap generation. The README documents these capabilities; sampled server code confirms inquiry handling and listing writes, but most page and map implementations were not sampled, so their internal links are not asserted.
Main entry points: add/+page.server.js Create listing · [id]/+page.server.js Inquiry handling · +page.svelte Map explorer · MapLibre.svelte MapLibre explorer
Components 22
Property discovery
- Map explorer
src/routes/(app)/+page.svelte - MapLibre explorer
src/lib/map/MapLibre.svelte - Property preview
src/lib/Preview.svelte - Listing filters
src/lib/Filters.svelte - Listings grid
src/routes/(app)/properties/+page.svelte - Property details
src/routes/(app)/[id]/+page.svelte
Listing operations
- Authentication
src/routes/(auth)/login/+page.server.js - Create listing
src/routes/(app)/properties/add/+page.server.js - Edit listing
src/routes/(app)/[id]/edit/+page.server.js - Photo uploader
src/lib/Uploader.svelte - Location picker
src/lib/map/MapPicker.svelte - QR flyer
src/routes/(app)/[id]/print/+page.svelte
Buyer engagement
- Inquiry handling
src/routes/(app)/[id]/+page.server.js - Agency contact
src/routes/(app)/about/+page.server.js
Public access
- Properties API
src/routes/(api)/api/properties/+server.js - Single-property API
src/routes/(api)/api/properties/[id]/+server.js - SEO sitemap
src/routes/sitemap.xml/+server.js
Other components
- Buyer or visitor
- Listing agent
- Supabase data
- Supabase Storage
- Email transport
Connections 23
- Buyer or visitor → Map explorer: browses
- Map explorer → MapLibre explorer: shows listings
- Buyer or visitor → Listings grid: filters listings
- Listings grid → Listing filters: filters by
- Buyer or visitor → Property details: opens listing
- MapLibre explorer → Property preview: previews property
- Listing agent → Authentication: signs in
- Listing agent → Create listing: creates listing
- Listing agent → Edit listing: maintains listing
- Create listing → Location picker: captures location
- Create listing → Photo uploader: adds photos
- Edit listing → Supabase Storage: manages photos
src/routes/(app)/[id]/edit/+page.server.js - Listing agent → QR flyer: prints flyer
- Buyer or visitor → Inquiry handling: submits inquiry
- Inquiry handling → Supabase data: saves lead
src/routes/(app)/[id]/+page.server.js - Inquiry handling → Email transport: notifies agent
src/routes/(app)/[id]/+page.server.js - Buyer or visitor → Agency contact: contacts agency
- Agency contact → Email transport: sends message
src/routes/(app)/about/+page.server.js - Buyer or visitor → Properties API: requests properties
- Buyer or visitor → Single-property API: requests property
- Properties API → Supabase data: queries listings
- Single-property API → Supabase data: queries listing
- SEO sitemap → Supabase data: reads listings
src/routes/sitemap.xml/+server.js