Case Study

Cal.com Next.js Scheduling

Illustrative reference design for the next, TypeScript, Prisma stack: component roles, highlights and trade-offs. No production metrics claimed.

  • next
  • TypeScript
  • Prisma
  • trpc

Illustrative walkthrough. This page is a reference design built around the stack listed above. It is not an audit of the named project’s production system, and it makes no measured performance claims. The referenced repository (https://github.com/calcom/cal.com) is the source of truth for the real implementation.

Component roles

  • next — Routing and rendering layer; stream the shell early and keep per-request work bounded.
  • TypeScript — Application code with one shared type surface between client and server.
  • Prisma — Typed database access and migrations; schema changes ship with the code that needs them.
  • trpc — Typed API contract between client and server; versioning lives in the schema.

Design highlights

  • tRPC type-safe API
  • Prisma migration system
  • iCal export with timezone

Trade-offs to check before adopting

  • Schema changes ship with the code, so every migration needs a rollback path.
  • Client-side work only pays off after the payload budget is respected.

Where to look next


Repository

View on GitHub ↗