A CRM prototype with contacts CRUD, audience segmentation rule builder, multi-step campaign wizard, and analytics dashboard — powered by Prisma and Turso.
A full-stack CRM dashboard prototype demonstrating contacts management, audience segmentation, and campaign workflows. The dashboard features real-time KPI cards, lifecycle stage analytics, and campaign performance charts — all rendered server-side for zero client-side data waterfalls.
Built with Next.js 16 App Router, Prisma v7 with a dual adapter pattern (SQLite for local dev, Turso LibSQL for production), and ShadCN UI components. Every API route is Zod-validated with input bounds and column whitelisting.
better-sqlite3 locally, libsql for Turso in productionbuildWhereClause function keeps segment filtering DRY across APIs(app) pattern for shared sidebar layout without URL pollutionnext/dynamic with ssr: false to avoid hydration mismatches