Matheus Sergio.
← Back to portfolio
Case study · React + Full stack + Cloudflare

Slotiva

Scheduling platform for professionals, with individual public pages, Google authentication, request approval and recurring appointments. In acceptance testing, with Google Calendar integration in development.

ReactTypeScriptCloudflare WorkersD1

Documented case baseline: Product branch in acceptance testing · Calendar integration in development. This edition preserves the delivery states and evidence of the Portuguese case.

The name

Slotiva — free time slots become appointments.

The Portuguese tagline is “Slotiva — horários livres que viram encontros.” The name combines “slot”, an available calendar time, with “ativa” (active), suggesting a calendar in motion.

Slotiva logo with its Portuguese tagline: available time slots that become appointments
Original Slotiva identity supplied by the project owner; the Portuguese tagline is preserved.
Product

Individual calendars, shared rules.

Each professional owns a public /p/{slug} page, presentation and theme. Master administration manages professional accounts; the professional panel contains appointments, opening hours and a service catalog. The application interface is in Portuguese.

Booking workflow

A request is not a confirmation.

Public requests start pending, at least 48 hours ahead and within 14 calendar days. Professionals have 24 hours to approve. Rejection, expiry and cancellation release occupied slots. Pending requests can be changed; confirmed customer rescheduling requires contacting the professional until a change-proposal workflow is delivered.

Recurrence

One agreement can create several appointments.

Professionals enter previously agreed single, weekly or fortnightly appointments: 1–26 occurrences within 366 days. Creation is atomic: any conflict rejects the whole series, and retries cannot duplicate it. Cancellation explicitly affects one occurrence or all future appointments in that series, preserving history.

Services

Booking terms survive catalog changes.

Professionals create, edit and deactivate services with descriptions, optional duration and paid, free or undisclosed prices. Duration and paid amounts can remain to be agreed. Services without a fixed duration require direct arrangement and a professional-entered appointment duration. Existing bookings preserve their original terms after catalog edits.

Architecture and security

Identity and authorization are separate decisions.

React and TypeScript provide the interface; Cloudflare Workers and D1 serve the API and persistence on the same origin. Google sign-in uses PKCE, one-use state, nonce and identity verification. Every protected request checks role and active membership. Master administration does not grant access to professional appointment APIs. Suspension revokes sessions; removal preserves history and cancels active appointments.

Consistency

Isolation also lives in the database.

Occupancy is keyed by professional, date and interval. Different professionals can use the same time; overlaps for one professional are prevented in the database. Triggers, transactional batches, versions and idempotency keys protect state transitions, concurrent edits and recurring creation. Bookings retain immutable service snapshots.

Google Calendar

Read-only connection is the current increment.

Separate consent and manual primary-calendar free/busy lookup are implemented in the product branch. Refresh tokens are encrypted with AES-256-GCM. External configuration and acceptance remain pending. External busy intervals do not automatically block bookings yet. Event creation, synchronization, invitations and email are not delivered. The outbox contains durable intents, not sent messages.

Verification

Implementation and hosted acceptance have different evidence.

The reviewed baseline is d6cc202 on feat/product-readiness, with PR #3 still open at the October 22, 2026 review. CI and Documentation passed for this commit. Miniflare/workerd and isolated D1 tests cover concurrency, rollback, migrations, OAuth, roles, isolation and recurrence. Playwright covers workflows and automated accessibility checks, not a full manual audit. Owner-reported login, approval/cancellation and service-editing acceptance does not establish every scenario.

Status and next steps

A product in acceptance testing.

The product evolution uses isolated acceptance resources; a production release is not established. The original demonstration remains separate. Before real customers: finish Calendar and delivery retries/reconciliation, customer recovery, public abuse controls, retention/export/erasure, monitoring and tested backup restoration. Customer capabilities are still lost on reload. Payments and clinical records are not delivered.

Sources and evidence

Inspect the implementation and its limits.

Source documents and original product screenshots may be in Portuguese. Their language does not change the delivery state or the scope of the evidence.