Case Study — 2026
LEGALRAY
Contract analysis across five jurisdictions.
A LegalTech SaaS that reads B2B contracts, notarial deeds and court documents and points to the unfair clauses and unfavourable terms inside them, with the article or provision behind every finding. Built for freelancers, agencies and small businesses working across Poland, Germany, the UK, Spain and Italy.
Roles
- SaaS Architecture
- AI Integration
- UI/UX Design
Timeline
Completed: March 14, 2026
Live
Visit Website →The link opens a demonstration build: the Gemini API is disconnected and the app serves a pre-generated analysis of a fictional contract for each jurisdiction. The whole flow — jurisdiction picker, analysis, free-plan limit, paywall — works exactly as it does in production.
Tech Stack
- Google Gemini 3.0 Pro
- Supabase
- Clerk
- Stripe
- Next.js
- TypeScript
- Tailwind CSS
Dense legalese, unfair clauses buried deep in the text, and court or notarial documents written for lawyers rather than for the people who receive them. A freelancer or a small business signs anyway, with no reliable way to tell which clauses are standard and which turn expensive later.
A SaaS application that analyses a document under the law of a chosen jurisdiction — Poland, Germany, the UK, Spain or Italy — flags unfair clauses, points out what the document is missing, cites the article or provision behind each finding, and produces a PDF report. An AI chat then helps draft the reply to the counterparty.
A deployed SaaS: upload, analysis, PDF report, authentication, team accounts and Stripe billing. The free plan covers five analyses and returns two risks per document; everything past that stays on the server. The paywall is the conversion mechanism the product is built around — designed and implemented, not yet validated against real traffic.
Contract Analysis
A Google Gemini 3.0 Pro integration reads the document clause by clause, flags unfair clauses and unfavourable terms, notes what is missing, and cites the article or provision behind each finding. The app calls itself a copilot: the final decision belongs to the person signing.
Negotiation Chat
An AI chat that drafts a negotiation email from the findings of a given analysis — which clause to push back on, and on what grounds. Paid plans only; on the free plan the chat is blocked entirely.
Multi-format Support
Handles PDFs, scanned documents and digital contracts. Covers B2B contracts, notarial deeds, court documents and terms of service.
Server-side Paywall
Nothing is blurred. A free user receives exactly two risks — the missing-clauses data never leaves the server; the browser only ever gets empty placeholder rows in its place. A blur can be removed in devtools; data that was never sent cannot.
The jurisdiction is chosen before the analysis starts, and it changes the prompt: each one carries its own legal basis, and the answer comes back in that country's language. Four of the five are EU jurisdictions; the United Kingdom is not, and is treated as its own body of law. Reports in five languages are a consequence of this, not a separate feature.
Poland
Civil Code + Code of Civil Procedure
Germany
BGB + HGB
United Kingdom
English common law
Spain
Código Civil
Italy
Codice Civile






LegalRay gives informational analysis, not legal advice. The final decision belongs to the person signing.