How to build a Luma alternative
How to build a Luma alternative with ordered prompts, data rules and failure checks. Deploy a focused tool with a tested export and restore path.
How to build a Luma alternative starts with one event page with capacity-limited RSVPs. An owner publishes an event. A guest reserves a place. The owner sees the attendee list and can cancel a reservation without losing its history. Use the Luma catalog prompt for the wider context.
How to build a Luma alternative with a clear v1
An owner publishes an event. A guest reserves a place. The owner sees the attendee list and can cancel a reservation without losing its history. Write this flow into your README before generating screens. Keep paid tickets, email campaigns and calendar-provider connections outside this version. Each would introduce a separate operating problem and a larger testing boundary.
Model the saved records
These are proposed tables for your replacement, rather than a description of the commercial product’s internals:
Event(id, owner_id, title, starts_at, timezone, capacity, revision)
Reservation(id, event_id, guest_key, display_name, state, revision)
ReservationEvent(id, reservation_id, kind, recorded_at)
Follow ownership from every child row to its root record. Check that relationship on reads and writes. Browser filters help navigation; server authorization determines access.
Input → validation → authorized transaction → committed revision → read/export
↓ failure
retained input
Make the last place a database decision
Capacity is an invariant across reservations. Counting attendees in the browser and then sending an insert permits two guests to claim the same last place. Put the capacity check and reservation write inside one database transaction with the locking behavior your SQL engine supports. Require the agent to explain that behavior for the chosen deployment database.
A cancellation changes a reservation’s state. It does not delete its history. Count only active reservations toward capacity. Keep a unique guest key per event so a retried reservation cannot consume another place. A second reservation with the same key should return the first result.
Use an opaque random guest token for cancellation. Store its hash and bind it to one reservation. Never authorize cancellation from a display name or a guessable email address. The owner route uses the owner’s authenticated session and a separate authorization check.
| Capacity fixture | Expected active reservations |
|---|---|
| Capacity 2, first guest submits | 1 |
| First guest retries same key | 1 |
| Second guest submits | 2 |
| Third guest submits | 2, with full response |
| First guest cancels | 1 |
Run the final-place test with simultaneous requests, rather than clicking twice sequentially. Keep a test database isolated from production. After both requests finish, query the count and confirm it never exceeds capacity.
Keep an event’s timezone visible
Store the start as a UTC instant plus an IANA timezone for display. Show the named timezone beside the event time. If a guest sees a localized time, retain the organizer’s time too so they can understand a screenshot forwarded by a friend.
Changing the event start after reservations exist should produce a preview listing affected reservations. This v1 records the change but sends no automatic messages. The owner must see that boundary clearly before saving. Keep cancellation available even after the start changes.
The public event response includes only the fields a guest needs. The attendee list is private. Inspect the HTML and API payload, including errors, to confirm that other guests’ names and tokens never appear.
Separate event publication from an editable draft
A private draft should return unavailable to a visitor. Publication copies the approved title, start and capacity into the public representation, or explicitly marks that revision as published. Editing the draft afterward must not silently change the published event.
Test a capacity reduction below the number already reserved. Refuse it with the current count and keep the attempted input. Increasing capacity is allowed under the same revision check. Closing reservations stops new guests while preserving cancellation and the owner’s export.
Choose the stack and write the first migration
Use Astro for server-rendered pages, HTMX for form updates, and Alpine.js for small local previews. Keep the database behind server routes. Start with SQLite on a Node host with persistent storage, or use a hosted SQL database when the application host has no persistent disk.
For a Cloudflare deployment, use an Astro server adapter and D1 bindings for the dynamic routes. A static Pages build alone cannot process these writes. Keep database access in one module so authorization and transaction rules are easy to inspect.
Add versioned migrations and a fixture command to the repository. Run the migration against both a fresh database and a populated development copy. Include foreign keys, unique constraints and indexes for the queries the main screen actually performs.
Prompt 1 builds the empty workflow
Explain the acceptance flow above to your coding agent, then send this first request:
Create a server-rendered Astro application using HTMX and Alpine.js.
Implement owner authentication with a maintained auth library.
Add the proposed SQL tables through a versioned migration.
Create an empty dashboard and a working first-record form.
Keep database credentials and session secrets on the server.
Document setup, migration and fixture commands in the README.
Run the app, create the first record and reload. Restart the process and read it again. An empty database should show a useful create action. A failed database connection should show a recoverable error instead of pretending there are no records.
Check the signed-out response directly. Private data must be absent from the response body, including serialized browser state. Use two owner accounts in development to check that changing an identifier cannot cross the ownership boundary.
Prompt 2 enforces the core write
Once the domain rules below are clear, ask for their implementation:
Implement the acceptance flow with server-side validation.
Enforce the domain invariant inside the database transaction.
Use stable request keys for operations that can be retried.
Return the saved identifier and revision after commit.
Reject stale edits while preserving the submitted values for review.
Add fixtures for duplicate requests, invalid parents and denied access.
Have the agent name the exact transaction boundary. A read followed by a later unrelated write can race. Send overlapping requests from two clients and inspect the resulting rows, rather than relying on a button becoming disabled.
Give every editable record a revision. Submit the loaded revision with the form. An update should match both the authorized record id and that revision. When nothing matches, return a conflict and let the person compare their attempted change with the saved version.
Prompt 3 completes the screens
Keep previews and saved results visibly distinct:
Build the owner list, detail screen and bounded public view if required.
Use the committed server response to update the interface.
Provide loading, empty, invalid, unavailable and retry states.
Keep attempted input after a failed save.
Support keyboard use with labeled controls and field-level errors.
Do not add features outside the stated v1 acceptance flow.
Use a slow connection to make pending states visible. Submit once, interrupt the response and retry using the same request key. Reopening the page should reconcile the actual saved result. A client-side success toast should appear only after the server confirms the operation.
Render user text with escaping. For any rich text you eventually add, choose a maintained sanitizer and an explicit allowlist. Test markup inside titles and notes. It should appear as text or be sanitized according to that rule.
Export and restore before deployment
Export stable identifiers, revisions, timestamps and every relationship needed to reconstruct the workflow. Put a format version at the top of the export. Do not include session cookies, raw share tokens or API credentials in a data download.
Import into a separate database first. Validate the complete file before changing saved records. Show counts and conflicts in a preview, then require an explicit commit. A failed import must leave the previous data intact. Reject unknown future format versions with an explanation.
Restore a fixture and compare both row counts and the result of the main acceptance flow. Counts alone miss broken relationships. If you cannot reconstruct the useful screen from the export, keep working on the format before trusting it with real data.
Deploy and exercise the hosted flow
Create production storage separately from development. Apply migrations before serving code that depends on them. Set secrets through the host’s secret configuration, then deploy the server build. Confirm that the domain uses HTTPS and the session cookie has appropriate secure settings.
Open the public or signed-in entry point on the deployed hostname. Perform the full acceptance flow with synthetic records, reload, and check the owner index. Then test an unavailable id and a signed-out request. The local build cannot establish that production bindings or authorization are configured correctly.
Keep logs to request ids, operation names and outcomes. Exclude user text and credentials. Add a health check that verifies required storage access without leaking private rows. Record the deployed version so a report can be connected to a particular release.
Back up before the next migration. Keep the previous artifact available and document whether a code rollback is compatible with the new schema. Prefer additive migrations while the project is young. Test restoration into a clean environment before removing your old service.
Keep the next version bounded
The basic build completes the acceptance flow with manually entered fixtures. A stronger personal tool adds permission tests, recovery, export and concurrent-edit handling. Reproducing the wider commercial service adds integrations and continuing operations; use the catalog’s three estimate levels to choose the next step.
Stop when the defined flow works on the deployed hostname and survives a restore. Write down one missing feature only when using the tool exposes a concrete need. Keep the rest outside the next coding prompt.
Continue with the related build post and the scope guide. For another implemented workflow boundary, see the HoneyBook guide.