Portfolio
Digital health · SaaS

Schema Therapy Journey

Safepath Institute

Digital therapy platform with a real-time collaborative canvas, AI-guided exercises, subscriptions, and GDPR compliance — built for Safepath Institute.

Internal codename: iModes. ~8 months of continuous delivery (Oct 2025 – May 2026), 500+ commits, 110+ API routes, 35+ SQL migrations, and 45+ localized App Router pages.

Next.js 15React 19SupabaseKonvaRealtimeGDPRWooCommerceStripeLangChain
Visit live product
2025–2026
500+
Commits
Oct 2025 – May 2026
110+
API endpoints
Route handlers
70+
React components
src/components
Vercel
Deploy
Production SaaS
The Problem

Safepath needed a production-grade therapy platform where clinicians and patients collaborate on a shared digital canvas (iModes cards, drawings, post-its) with live sync, guided AI exercises, subscription billing, and strict GDPR requirements — without relying on spreadsheets, ad-hoc tools, or manual admin SQL.

The Solution

We shipped Schema Therapy Journey: a multi-role web app (therapist, patient, admin) on Next.js 15 and Supabase. The Konva-based canvas persists and syncs via Realtime; exercises use LLM coaching with session memory; WooCommerce and Stripe handle monetization with secure post-purchase onboarding; PGMQ workers run async jobs; and an internal iModes Control panel supports provisioning, revenue, and support workflows.

Engineering Highlights
110+
API routes
35+
SQL migrations
4 UI
Locales
Vercel
In production
Key deliverables
  • Multi-tenant platform by role (therapist, patient, admin)
  • Realtime canvas with checkpoints and persisted session state
  • WooCommerce-integrated B2C onboarding with secure account provisioning
  • iModes Control admin panel for ops without manual SQL
  • European i18n (EN, PT, NL, IT) and GDPR tooling
Stack
Next.js 15App Router, API routes, middleware
React 19 + TypeScriptStrict UI and domain types
SupabaseAuth, Postgres, Realtime, RLS
KonvaTherapeutic canvas
ZustandCanvas, auth, exercise state
PGMQBackground workers
AWS S3Presigned uploads
WooCommerce + StripeSubscriptions and billing
LangChainAlex AI exercises
ResendTransactional email
SentryError monitoring

Complex canvas state at scale

Therapy sessions require serialization, persistence, checkpoints, and realtime sync between therapist and patient. State is split across dedicated modules (store, serialization, persistence, realtime) so the UI stays responsive and recoverable.

Secure B2C onboarding after purchase

Post-WooCommerce account creation uses single-use tokens and welcome email flows — no unsafe magic-link shortcuts straight into the clinical dashboard.

GDPR-by-design

Cookie consent, data export, correction, and deletion flows, plus operational ROPA and breach procedures documented alongside rate limiting on APIs.

Multi-market i18n

Full UI in EN, PT, NL, and IT with next-intl; card locales extend to additional European languages for therapy content.

Have a similar project?

Let's build it right.

Start a Project