CASE-0009 · MISSION REPORT任務報告
FEATUREDIn Progress

clarify

AI-powered contract auditing in plain language. 3-tier OpenAI strategy, Stripe credits, Supabase RLS, BullMQ queue.

clarify screenshot
KEY FEATURES
  • 3-tier OpenAI strategy (GPT-4o / GPT-5-mini / GPT-5) balances cost, latency, depth
  • Stripe credit system with webhook-driven async fulfillment, idempotent under load
  • Supabase auth + Row Level Security enforced at the database layer, not the app
  • BullMQ + Redis async queue, magic-byte PDF validation, glassmorphism Tailwind UI
OVERVIEW

stars last commit license

AI-powered contract auditing in plain language

Clarify lets users upload legal contracts and get back a detailed risk assessment — abusive clauses, hidden costs, unfavorable terms — explained in language a non-lawyer can act on. Built around a 3-tier OpenAI strategy (GPT-4o / GPT-5-mini / GPT-5) with a credit-based payment model.

Why I built it

Legal advice is gated behind cost. Most people sign contracts they don't fully understand because reading them carefully takes hours and asking a lawyer costs hundreds. I wanted to see how far an LLM could go as a first pass — surfacing the clauses worth a human review, flagging consumer-protection red flags, and translating dense legalese into plain language. Not a replacement for a lawyer; a triage tool that tells you whether you need one.

What it does

  • Secure PDF upload — magic-byte validation, server-side text extraction, no untrusted parsing on the client.
  • Tiered AI analysis — three model tiers balance cost, latency, and depth. Quick previews use GPT-4o, full audits use GPT-5.
  • Specialized prompts for consumer protection and abusive-clause detection.
  • Credit system — pay-per-analysis via Stripe webhooks; credits are fulfilled async and idempotently.
  • Async job queue — BullMQ + Redis for reliable processing under load.
  • User dashboard — analysis history, document management, credit balance.
  • Supabase auth + RLS — Row Level Security ensures users only see their own analyses, enforced at the database level.
  • Glassmorphism UI built on Tailwind for a premium aesthetic.

Stack

Nuxt 3, Vue 3, TypeScript, Supabase (Postgres + Auth + RLS), OpenAI API, Stripe, BullMQ + Redis, TailwindCSS, Docker Compose for local dev.

Status

Active.

cativo.dev API·checking…·自家管理
--:--:--·UTC-6 SV
GitHub·LinkedIn·X·© 2026