appointment-booking-api

Pick a staff member, a service, a day and your time zone. The open slots come from the repo's own slot engine. Book one, watch it disappear, then try to book it again.

Everything runs in this browser tab. Nothing is sent anywhere, and the database resets when you reload.

Open slots

Bookings in this session

#StaffCustomerStart (staff time)Status
What is real here. app/slots.py, app/booking.py, app/models.py and app/config.py run unchanged in Python (Pyodide), against SQLite in memory with the same tables and the same partial unique index. Booking refusals show the HTTP status the API would return.

What is not running. The FastAPI app itself: routes, JWT login and roles, the login rate limiter, Alembic migrations and Postgres. Those need a server, so this page calls the same functions the GET /slots and POST /bookings handlers call. The seeded staff, services and hours are invented for the demo.