Magickal Experiences Bali
An end-to-end multi-tenant platform spanning public booking, guest services, partner operations, referrals, administration, and financial workflows, with an AI chat agent for booking tasks.
- My contribution
- Architecture, backend and frontend
- Built at
- PT General Magick Indonesia
- Commercial product. Source is private.
- Core stack
- FastAPIPostgreSQLReactTypeScriptAI Agents
How it fits together
The main pieces, from the screens people use down to the database.
React / TypeScript
- Public booking
- Guest
- Partner
- Referral agent
- Admin
FastAPI
Shared business logic and scoped data access
CONNECTED SERVICES & DATA
- KeycloakIdentity & roles
- RedisCaching
- PostgreSQLPlatform data & append-only ledger
Engineering decisions
Booking tasks through an AI chat agent
Problem
Admins need a quick way to create bookings and check room availability, while money-related actions still need human approval.
Approach
Built Key with separate admin and guest experiences. The admin chat uses Tambo generative UI for booking tasks and availability checks, and requires explicit admin approval for money-related actions.
A financial record that holds up
Problem
Commissions and refunds need to reconcile correctly, including when requests arrive at the same time.
Approach
I built the financial core around an append-only ledger to preserve transaction history and keep calculations consistent.
The right access for every role
Problem
Guests, partners, agents and staff share a platform but need different views of its data.
Approach
I combined Keycloak authentication and role-based access with row-level data scoping across the backend.
From API to working portals
Problem
Public booking and day-to-day operations need to work together across several user journeys.
Approach
I designed and built the FastAPI/PostgreSQL backend and React/TypeScript frontend, spanning the booking site, role-specific portals and admin dashboard.