CarCraft
CarCraft is a full-stack SaaS platform built for a real automotive interior restoration and exterior protection business. It handles the complete customer lifecycle — from initial quote request through service delivery — with separate interfaces for customers and administrators.
Loading live preview...
Supported App Ecosystem
User Apps
Customer App
Public-facing site with service pages, quote wizard, and scheduling
Customer Portal
Unique booking links for status tracking and progress photos
Admin Tools
Admin Dashboard
Full business management with 15+ operational pages
Campaign Engine
Email broadcasts via Tiptap editor and SMS automation via Twilio
Infrastructure
Cron Workers
Automated SMS reminders and follow-up email sequences
Faxas Hub auto-categorizes 89 services across 4 groups using Docker labels and a curated service registry.
Architecture
RSC-based dual-dashboard with 23 Prisma models
The architecture separates customer and admin concerns via Next.js route groups — (public), (customer), and admin — each with tailored layouts and auth requirements. Supabase Auth with SSR adapter handles magic links and RBAC role assignment.
Customer Frontend
Public-facing pages for services, quoting, scheduling, and customer accounts with magic link auth.
Admin Dashboard
Full business management interface with TanStack React Table, Tiptap editor, and real-time stats.
API Layer
27 API routes handling quotes, bookings, payments, campaigns, and automated cron operations.
Data Layer
PostgreSQL via Prisma 7 ORM with 23 models covering core operations, marketing, and compliance.
Security Boundaries
Credentials Server-Side
Upstream API keys never reach the browser. All credentials are managed in the BFF layer.
SSRF Protection
RFC 1918 blocklist prevents server-side requests to private network ranges.
HMAC Enablement Gates
SHA-256 HMAC gates validate adapter connectivity before exposing data paths.
Integration Intelligence
6+ external services orchestrated for business operations
The platform integrates Supabase Auth for authentication, Stripe for payments, Resend for transactional and broadcast email, Twilio for SMS with quiet hours, NHTSA API for vehicle lookup, and Google Reviews for social proof. Each integration is isolated in dedicated modules.
Supabase Auth
AuthenticationAuthentication with magic links, Google OAuth, and RBAC role assignment for admin team management.
Auth redirect to login page; protected routes return 401
Supabase SSR adapter → session cookie with role claims
Stripe
PaymentsCheckout sessions with configurable deposits, promo code redemption, and refund processing.
Checkout creation fails gracefully; user sees retry prompt
Stripe webhook events → booking status updates via Prisma
Resend
EmailTransactional emails for booking confirmations and broadcast campaigns with audience segmentation.
Email queued for retry; booking flow continues without blocking
React Email templates → Resend API with audience tagging
Twilio
SMSSMS notifications for booking confirmations, 24-hour reminders, and status updates with quiet hours.
SMS failure logged; booking flow continues without blocking
Booking events → SMS messages with quiet hours filtering
NHTSA API
Vehicle DataVehicle VIN decoding and year/make/model lookup for the multi-step quote wizard.
Manual vehicle entry fallback when API unavailable
NHTSA response → normalized vehicle object for quote pricing
Google Reviews
Social ProofSocial proof widget displaying business reviews on the customer-facing site.
Widget hidden when reviews unavailable; page layout unaffected
Google Places API → review cards with rating and attribution
Operational Readiness
405 tests, 23 models, and automated operations
The codebase maintains 405 passing tests across 65 test files covering API routes, server actions, components, and business logic. The database schema spans 23 Prisma models with 10 enums covering vehicle types, booking statuses, and campaign states.
Security Hardening
- SSRF protection with RFC 1918 blocklist
- HMAC-SHA256 enablement gates
- Rate-limited authentication endpoints
- Encrypted session cookies (iron-session)
- Docker socket proxy isolation
Live Preview
Explore the public-facing experience
Why no live demo?
Live deployment available — iframe shows public-facing pages; dashboard features require authentication.
Live iframe preview demonstrates the public experience; full capability is documented in the L1-L4 narrative sections.