About the project
A full-stack event discovery and management platform built with Next.js App Router, Clerk, and Prisma/PostgreSQL, with differentiated experiences per role (admin, organizer, attendee). The project started as a deep dive into strict TypeScript —no any, clear contracts between UI, API, and database— and grew into a system with non-trivial business logic across multiple layers.
The core of the platform includes a complete payments system built on Stripe and Stripe Connect: organizer onboarding with real payout routing (destination charges + application fee), paid event creation gated by Connect account readiness, and a resilient PaymentIntent lifecycle with versioned idempotency keys and an explicit policy for stale intents. Checkout uses an intercepted route with overlay UX, pre-confirmation validation, and 3DS return cleanup. Event attendance isn't just RSVP-based: it's tied to payment state and automatically updated on refunds. When a payment succeeds after an event is no longer joinable, the system triggers an automatic compensation refund. The full cycle is backed by webhooks for payment_intent.*, refund.updated, and account.updated, with tests covering failure modes, not just the happy path.
On top of that, there are role-scoped operational dashboards: the organizer dashboard combines a signal deck (refund metrics, paid event pipeline, rotating risk/opportunity signals) with carousels, a spotlight panel, trend analytics with 7/30-day windows, and payments/refunds workspaces with filters and drill-downs. The admin dashboard adds global platform KPIs, a user management shell with per-organizer drilldown, and moderation tools (Admin's Pick, archiving, manual refund). Attendees get their own agenda with contextual dashboard cues and a drawer showing all purchased tickets.
On the UX and performance side: micro-interactions with Motion (Motion.dev), tilt/3D cards, WebGL backgrounds with fallbacks and prefers-reduced-motion support, timezone-aware logic for today/upcoming ordering, and automated email sending via cron with React Email templates. Tested with Vitest + Playwright to keep critical flows regression-safe.
