Skip to content
rmnr
DocsTourSlicesBest PracticeAgentsInstall

Command Palette

Search for a command to run...

New

Slice · AI prompt

Cal.com Booking

Cal.com inline booking UI with a real Convex webhook mirror. React/Next stays default via @calcom/embed-react; SvelteKit uses native Svelte 5 over the shared vanilla embed loader. The bundled backend mirrors webhook events into the real bookings table; list/cancel/reschedule remain host-injected tool adapters.

Resource detail View source
Copy this prompt into Claude / Codex / Cursor
cal-com-booking.prompt.mdmarkdown
# Install `cal-com-booking` — Cal.com Booking

> Cal.

📚 Knowledge base : https://resource.rahmanef.com/llms.txt
📦 Slice detail   : https://resource.rahmanef.com/slices/cal-com-booking
🧠 JSON catalog   : https://resource.rahmanef.com/api/knowledge?slice=cal-com-booking
🔗 Source         : https://github.com/rahmanef63/resource-site/tree/main/frontend/slices/cal-com-booking

## 1. Install

```bash
npm i @calcom/embed-react
# alias: npx rr add cal-com-booking
```

The CLI copies `frontend/slices/cal-com-booking/` into your project + augments `.env.example` + installs npm deps automatically. Run it from your project root.

## 2. What it ships

- npm: `@calcom/embed-react`
- env vars:
  - `CALCOM_WEBHOOK_SECRET` (convex, required)
- convex feature paths: `convex/features/bookings`

## 3. Wire it up

Run `npx rr add cal-com-booking` for React/default or `npx rr add cal-com-booking --framework sveltekit`. Pass an explicit calLink and optional calOrigin. Wire the bundled webhook mirror to the real bookings table; bind list/cancel/reschedule tools separately to host APIs.

## Rules of engagement

- shadcn-only UI primitives. No raw `<button>` / `<dialog>` / native date or file inputs.
- 200-line hard cap per source file (extract neighbours when over).
- All Convex queries hit an index (`.withIndex(...)`); never bare `.collect()`.
- Public mutations/queries declare `args:` validators + authz.
- Full ruleset: https://resource.rahmanef.com/best-practice

The agent will fetch /llms.txt for the full ruleset and use /api/knowledge for the JSON catalog.