Mashdun
AI GrowthWorkCapabilitiesIntegrationsProcessLabsMarketplaceBlogAbout
Get in Touch
Mashdun

Full-stack web developer, AI engineer & growth marketer. Building production-grade apps and intelligent solutions.

Navigation

  • Portfolio
  • Capabilities
  • Process
  • Labs
  • About

Resources

  • Blog / Notes
  • Marketplace
  • Contact
  • RSS Feed

Legal

  • Terms of Service
  • Privacy Policy
  • Cookie Policy
  • Do Not Sell or Share
  • Delete my data

© 2026 Mashdun. All rights reserved.

Built with Next.js, Tailwind CSS & Prisma

    All Labs
    Product
    Availability
    Booking Flow
    Algorithms

    Reservations & Availability

    Ported from a live multi-tenant reservation platform: free/busy availability per site per night, an interactive pin map, cheapest-first single-site options, and the greedy longest-run solver that builds a minimal-move split stay when no single site can hold the dates.

    Reservations & Availability

    Availability Engine
    Split-Stay Solver
    Pin Map
    Checkout Flow

    Aug 3 → Aug 6 · 1 site fit the whole stay

    Campground map

    Available all nightsPartially bookedBooked

    How it works

    1. Availability = free/busy per site per night
    2. Single-site options sort cheapest-first
    3. No fit? A greedy longest-run solver builds the split stay with the fewest moves
    4. Booking holds inventory, then payment confirms it

    From a shipped product

    This is the placement engine from a live multi-tenant campground + rental platform: pure functions shared by the POS, the public booking site, and the test suite. Tip: pick 5–7 nights to see the split-stay solver kick in.

    See the real products