How 3obhan/mr-judge works
Mr Judge is a multilingual AI dispute-analysis product with anonymous accounts, a limited free allowance, paid credit packs, and a thin Android shell. Users enter a dispute, obtain an AI analysis and verdict, and can review results/history; account and credit management support that workflow. Payments span several providers, while the API verifies purchases and persists account state. The excerpts show some client/API and server/storage calls; other domain links below are documented in the README, and unsampled implementation details are not assumed.
Main entry points: account.js Account client · pages Product pages · geminiClient.js AI and transcription · redis.js Account store
Components 26
Web experience
- Localized app
src/App.jsx - Product pages
src/pages - History and results
src/pages/History.jsx - Account settings
src/pages/Settings.jsx - Android shell
capacitor.config.ts
Dispute analysis
- Dispute entry
src/components/arbiter/DisputeForm.jsx - Analysis orchestration
src/lib/judge.js - AI and transcription
src/lib/geminiClient.js - Voice input
src/components/arbiter/VoiceButton.jsx - Verdict display
src/components/arbiter/VerdictDisplay.jsx - PDF export
src/lib/pdfGenerator.js - AI services
Accounts and credits
- Account client
src/lib/account.js - Account API
api/account.js - Credit API
api/credits.js - Email verification
api/email.js
Payments
- Credits page
src/pages/Credits.jsx - Payment choices
src/components/arbiter/PaymentButtons.jsx - Billing client
src/lib/billing.js - Payment endpoints
api - Stripe webhook
api/stripe-webhook.js - Payment providers
API and hosting
- Account store
api/_lib/redis.js - Cloudflare API adapter
cloudflare/adapter.js - Hosting runtime
functions/api/[[path]].js
Other components
- User
Connections 30
- User → Localized app: opens
- Localized app → Product pages: routes to
src/App.jsx - Product pages → Dispute entry: collects dispute
- Dispute entry → Analysis orchestration: submits analysis
- Analysis orchestration → AI and transcription: requests analysis
- AI and transcription → Account client: ensures account
src/lib/geminiClient.js - AI and transcription → AI services: calls AI
- Voice input → AI and transcription: transcribes audio
src/components/arbiter/VoiceButton.jsx - Analysis orchestration → Verdict display: returns verdict
- Verdict display → PDF export: exports report
- Product pages → History and results: offers history
- Product pages → Account settings: offers settings
- Account settings → Account client: manages account
src/pages/Settings.jsx - Credits page → Account client: loads balance
src/pages/Credits.jsx - Account client → Account API: calls account API
src/lib/account.js - Account client → Credit API: calls credit API
src/lib/account.js - Account client → Email verification: verifies email
src/lib/account.js - Account API → Account store: reads and writes
- Credit API → Account store: reads and writes
- Email verification → Account store: reads and writes
api/email.js - Credits page → Payment choices: renders choices
src/pages/Credits.jsx - Payment choices → Billing client: starts billing
src/components/arbiter/PaymentButtons.jsx - Billing client → Payment endpoints: requests checkout
- Payment endpoints → Payment providers: verifies payment
- Payment providers → Stripe webhook: sends events
api/stripe-webhook.js - Stripe webhook → Account store: grants credits
api/stripe-webhook.js - Hosting runtime → Cloudflare API adapter: forwards requests
functions/api/[[path]].js - Cloudflare API adapter → Payment endpoints: dispatches API
cloudflare/adapter.js - Cloudflare API adapter → Account API: dispatches API
cloudflare/adapter.js - Android shell → Localized app: opens website