Skip to content

Remove Convex; add Luma check-in webhook for Cursor credits#3

Open
Alhwyn wants to merge 7 commits intomasterfrom
cursor/-bc-61be5bd9-4b22-47a8-ad09-8fc8e05dfeb1-5d24
Open

Remove Convex; add Luma check-in webhook for Cursor credits#3
Alhwyn wants to merge 7 commits intomasterfrom
cursor/-bc-61be5bd9-4b22-47a8-ad09-8fc8e05dfeb1-5d24

Conversation

@Alhwyn
Copy link
Copy Markdown
Collaborator

@Alhwyn Alhwyn commented Apr 6, 2026

Summary

Removes Convex; all app data is local (CSV/text files under CAFE_DATA_PATH or cwd). No cloud database. The Luma API is only used for webhooks + get-guest (operator-owned keys).

Luma integration: POST /v1/webhooks/create via bun run luma:register-webhook, inbound guest.updated, verify signature, GET /v1/event/get-guest for check-in, then credit + optional Resend.

README states local-only storage explicitly; UI comments no longer say “database.”

Operator setup

  1. bun run luma:webhook (expose https://host/luma/check-in).
  2. LUMA_API_KEY=... bun run luma:register-webhook https://host/luma/check-in
  3. Set LUMA_WEBHOOK_SECRET; align CAFE_DATA_PATH / LUMA_DATA_PATH for shared local files.

Testing

  • bun test / bun run test
  • ./node_modules/.bin/tsc --noEmit
Open in Web Open in Cursor 

cursoragent and others added 7 commits April 6, 2026 16:57
Co-authored-by: Alhwyn <Alhwyn@users.noreply.github.com>
- Drop cloud/local mode selector; use CAFE_DATA_PATH for CSV data directory
- Share Resend send logic between CLI and automation
- Add guest.updated webhook server with signature verification and check-in API check
- Dedupe Luma deliveries with cafe_luma_sent_guests.txt
- Document setup and add webhook signature tests

Co-authored-by: Alhwyn <Alhwyn@users.noreply.github.com>
Co-authored-by: Alhwyn <Alhwyn@users.noreply.github.com>
…-in URL

Luma has no separate check-in event; require guest.updated and document it.
Add canonical /luma/check-in path; fix test script to use bun test discovery.

Co-authored-by: Alhwyn <Alhwyn@users.noreply.github.com>
Add POST /v1/webhooks/create helper and luma:register-webhook CLI so setup
does not require the Luma dashboard. Document API-first operator flow.

Co-authored-by: Alhwyn <Alhwyn@users.noreply.github.com>
Co-authored-by: Alhwyn <Alhwyn@users.noreply.github.com>
Co-authored-by: Alhwyn <Alhwyn@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants