Enterprise SaaS

ODR Platform

A multi-tenant online dispute resolution platform — formal case-lifecycle state machine, AI case triage, secure multi-party messaging, and an API layer for platforms to file disputes programmatically.

Enterprise-grade complexity, designed and shipped alone

Next.jsTypeScriptSupabaseClaude APIRecharts
The Domain

How disputes get resolved without litigation.

ODR is how modern enterprises, courts, and fintech platforms handle disputes without going to court — think eBay/PayPal's Resolution Center (60M+ disputes a year), the EU ODR platform for cross-border e-commerce, or B2B SaaS platforms handling merchant disputes.

This platform provides the full infrastructure to run an ODR operation: multi-phase resolution, an AI intelligence layer, enterprise multi-tenancy, and an API integration layer for programmatic dispute filing.

Architecture Decisions

Four choices that carry the design.

01

A formal state machine for the case lifecycle

Cases move Draft → Filed → Served → Negotiation → Mediation → Arbitration → Settled/Awarded/Dismissed/Closed. Legal processes need auditable, enforced transitions — not status fields that anyone can overwrite.

02

Multi-tenancy enforced at the database layer

Multiple organisations share one deployment, each with their own data. Every table carries Supabase Row Level Security policies — isolation is enforced by the database, not by application code remembering to filter.

03

An append-only audit log

The audit_events table is immutable via database rules. In a dispute-resolution product, the record of what happened is itself the product.

04

API-key auth + HMAC-signed webhooks for integrations

E-commerce and fintech platforms file disputes programmatically. Signed webhooks mean receivers can verify events actually came from the platform.

Scope

What shipping it alone actually covered.

15+ tables
Schema with enums, triggers, and sequences — RLS on every table
6 AI capabilities
Claude-powered triage, outcome prediction, document analysis, mediator assist, settlement drafting
Secure messaging
Per-case rooms with read receipts, multi-party
Evidence vault
Document management with AI analysis and versioning
Settlement chains
Offer / counter-offer links through to e-signed agreements
Analytics
Resolution-metrics API + charts dashboard