{
  "manifest": {
    "spekkr": 1,
    "id": "dwrtz/scheduling-app",
    "name": "Scheduling app",
    "summary": "Booking app on Cloudflare Workers and D1: event types, hours, any-time-zone booking, reschedule, cancel; optional email and calendar sync.",
    "keywords": [
      "scheduling",
      "booking",
      "calendar",
      "appointments",
      "availability",
      "time zones",
      "event types",
      "reschedule",
      "cloudflare workers",
      "d1",
      "email",
      "google calendar"
    ],
    "kind": "web app",
    "version": "0.1.2",
    "author": {
      "id": "dwrtz",
      "name": "David Wurtz"
    },
    "targets": {
      "platforms": [
        "web",
        "backend"
      ],
      "stack": [
        "TypeScript",
        "Cloudflare Workers",
        "Cloudflare D1",
        "Wrangler",
        "React",
        "Vite",
        "Luxon",
        "Vitest",
        "Playwright"
      ]
    },
    "customize": {
      "settings": [
        {
          "key": "app_name",
          "label": "Product name",
          "default": "Scheduler",
          "help": "Shown in the sidebar, page titles and under the booking page."
        },
        {
          "key": "brand_color",
          "label": "Accent colour",
          "default": "#111827",
          "help": "As #rrggbb. Primary buttons, the selected day, switches and focus rings."
        }
      ],
      "options": [
        {
          "key": "seed_demo",
          "label": "Demo data",
          "default": true,
          "help": "On an empty database, adds a demo host with hours and three event types."
        }
      ]
    },
    "files": [
      {
        "path": "spec.md",
        "about": "Requirements and acceptance checks, including the guidance copy (R14) and optional integrations (R15-R18)."
      },
      {
        "path": "design.md",
        "about": "Stack, Cloudflare config, deploy steps, data model, API, double-booking guard, slot maths and tests, screens, look, optional integrations."
      },
      {
        "path": "tasks.md",
        "about": "Build tasks in order, each with a check."
      },
      {
        "path": "research.md",
        "about": "What the design was modelled on, how it was studied, and where it differs."
      }
    ],
    "needs": {
      "permissions": [
        "shell",
        "network"
      ]
    },
    "demo": {
      "screenshots": [
        "shots/booking-page.png",
        "shots/booking-form.png",
        "shots/confirmed.png",
        "shots/bookings.png",
        "shots/event-types.png",
        "shots/event-limits.png",
        "shots/availability.png",
        "shots/booking-mobile.png"
      ]
    },
    "safety": {
      "commands": [
        "npm install",
        "npx wrangler d1 migrations apply DB --local",
        "npx wrangler dev",
        "npx playwright install chromium"
      ]
    },
    "lineage": {},
    "changelog": [
      {
        "version": "0.1.2",
        "date": "2026-11-16",
        "note": "Fixes calendar invites in Gmail (R16): the host's own copy no longer names the host as ORGANIZER (Gmail showed 'Unable to load event' and added nothing); it is organized by the sending address with the host as an accepted attendee. Invite emails are now raw MIME shaped like Google Calendar's own (multipart/alternative with an inline text/calendar; method=REQUEST/CANCEL part, plus invite.ics), sent through EmailMessage on the Email Sending binding. Adds SITE_URL for links from cron, a test-only scheduled route, and the full MIME in the test outbox."
      },
      {
        "version": "0.1.1",
        "date": "2026-11-16",
        "note": "Fixes from a full audit of the live app: hosts can reschedule from the bookings list (upcoming and unconfirmed) without retyping the guest's details, and the move is confirmed and recorded as the host's; the reschedule page now says it is a reschedule and opens on the booking's own day; the public footer no longer sends guests to the sign-in page; guest emails are masked in logs. Adds guidance copy on every public step (R14): 'Choose a meeting type' on the profile with duration and location, 'Select a date' / 'Select a time' / 'Enter your details' on the booking page, a 'What's next' box with copy-link and add-to-calendar, clearer cancel, moved and declined messages, a meeting-link prompt for hosts and helpful empty states. Adds owner-only deployment vars ALLOWED_EMAILS and ALLOW_SIGNUP (R2). Specifies optional integrations, each off unless configured: email through Cloudflare Email Sending or Resend with confirmations, reschedules, cancellations and deduplicated cron reminders (R15); RFC 5545 invites with a stable UID, SEQUENCE bumps and METHOD:CANCEL, shown as confirmed (R16); busy times from a secret iCal address with RRULE/EXDATE and time zones (R17); and two-way Google Calendar through OAuth (R18)."
      },
      {
        "version": "0.1.0",
        "date": "2026-11-15",
        "note": "First version."
      }
    ]
  },
  "links": {
    "page": "./",
    "bundle": "bundle.tar.gz",
    "files": {
      "design.md": "files/design.md",
      "research.md": "files/research.md",
      "shots/availability.png": "files/shots/availability.png",
      "shots/booking-form.png": "files/shots/booking-form.png",
      "shots/booking-mobile.png": "files/shots/booking-mobile.png",
      "shots/booking-page.png": "files/shots/booking-page.png",
      "shots/bookings.png": "files/shots/bookings.png",
      "shots/confirmed.png": "files/shots/confirmed.png",
      "shots/event-limits.png": "files/shots/event-limits.png",
      "shots/event-types.png": "files/shots/event-types.png",
      "spec.md": "files/spec.md",
      "tasks.md": "files/tasks.md"
    }
  },
  "publishedBy": "dwrtz",
  "uploaded": {
    "shots/availability.png": {
      "bytes": 77202,
      "type": "image/png"
    },
    "shots/booking-form.png": {
      "bytes": 46558,
      "type": "image/png"
    },
    "shots/booking-mobile.png": {
      "bytes": 33400,
      "type": "image/png"
    },
    "shots/booking-page.png": {
      "bytes": 49750,
      "type": "image/png"
    },
    "shots/bookings.png": {
      "bytes": 71309,
      "type": "image/png"
    },
    "shots/confirmed.png": {
      "bytes": 57781,
      "type": "image/png"
    },
    "shots/event-limits.png": {
      "bytes": 46040,
      "type": "image/png"
    },
    "shots/event-types.png": {
      "bytes": 48465,
      "type": "image/png"
    }
  }
}
