CestaLaw
An AI legal assistant built on ECHR case law: precedent matching, application forms, seven languages
- Role
- Backend & infrastructure
- Period
- 2026 —
- Status
- Live
By the numbers
200K+200K+ - ECHR judgments
77 - languages: TR, EN, DE, FR, ES, IT, RU
4646 - member states covered
5/20265/2026 - launch date, our first product
Overview
cestalaw.com is for lawyers preparing applications to the European Court of Human Rights. You upload your petition as a PDF, the system finds the closest precedents among more than 200,000 ECHR judgments, you talk strategy with the chatbot, and the assistant fills in the official application form for you to approve. It works in Turkish, English, German, French, Spanish, Italian and Russian. It's the first product we launched, in May 2026.
- Precedent matching: your uploaded petition is scored against ECHR judgments by similarity; every hit comes with its application number and the Convention article it concerns.
- Form assistant: fills in the official ECHR application form field by field (applicant, date of events, article violated, summary of facts); output is a PDF.
- Seven languages: ask in Turkish, get the output in French. Citations always stay in the judgment's original language so they can be found on HUDOC.
- The free plan gives 3 chats and 1 PDF to try it; Pro has unlimited analysis, multi-file reading and a priority queue.
- Identity, subscriptions, iyzico payments and the Kafka backbone are shared with CestaLex. The search and citation model was written separately for the ECHR.
01
Problem
Preparing an ECHR application is nothing like drafting for a Turkish court. The case numbering is different, the citation style is different, admissibility is a world of its own, and searching HUDOC is a job in itself. There is also a language barrier: a lawyer applying from Türkiye works in Turkish while the Court requires English or French documents.
This was our first product as a company; it shipped a month before CestaLex. Most of the infrastructure was built here first and then carried over.
02
Approach
We collected the ECHR judgments via HUDOC, indexed them by article and application number and stored them as vectors in Qdrant. When a user uploads a petition, the text is chunked and the closest judgments come back with a similarity score.
We didn't train separate models for seven languages. Query and answer pass through a translation layer, but citations stay in the judgment's original language. You can ask in Turkish and get a French application text with the sources intact.
The form assistant fills the fields of the official ECHR application form one by one: applicant, date of events, article violated, summary of facts. The user approves each field, then the PDF is generated.
The backend has authentication, subscriptions, iyzico payments, Kafka and Redis. Model calls run in a separate service and never block the request path; frequently opened judgment pages are cached in Redis.
03
Architecture
- Client
- React
- PDF yükleme
- Form asistanı
- Shared foundation
- Kimlik doğrulama
- Abonelik · iyzico
- Kafka · Outbox
- ECHR-specific
- HUDOC indeksi
- Benzerlik araması
- Çeviri katmanı
- AI servisi
- Data
- PostgreSQL
- Redis
- Qdrant
04
Key decisions
- 01
ECHR first, Turkish law second
The ECHR corpus is bounded and well structured; we built the search and assistant flow on it first, then moved on to 12 million Turkish decisions.
- 02
Share the infrastructure, not the search model
Identity, payments and the event flow are shared by both products. Because ECHR and Yargıtay judgments are structured differently, the search and citation layer was written separately for each product.
- 03
Never translate a citation
Translate the name of a judgment and the lawyer can't find it on HUDOC. Whatever language the answer is in, the citation stays original.
Outcome
It went live in May 2026 with a free trial and a monthly Pro plan. A month later the same infrastructure became the base of CestaLex, which is why the second product shipped much faster.
What I learned
“The lesson from shipping the first product: releasing a working version and improving it from user feedback is more effective than waiting for the infrastructure to be complete. Most of the changes in the first two months came from user feedback.”
Related projects
SaaSLiveCestaLex
An AI legal assistant for lawyers: case-law search, drafting, contract review and UYAP in one app
cestalex.com tries to put a Turkish lawyer's daily work in one place. You search more than 12 million decisions from Yargıtay, the Constitutional Court, Danıştay and the regional courts in your own words, draft petitions in an editor that cites its sources, upload a contract and get the risky clauses flagged, and pull hearings and deadlines from UYAP into a calendar. I built the whole backend.
- 12M+
- decisions from six official sources
- 12+
- modules: search, drafting, contracts, calendar…
- Java 21
- Spring Boot
- PostgreSQL
- Kafka
- Redis
- Qdrant
Open
SaaSLiveNetKoçum
Study tracking for Turkish university-exam (YKS) students and their coaches: finds weak topics, plans the week and links official resources to the exact page
netkocum.com is a platform where a student preparing for Türkiye's university entrance exam (YKS) logs what they study, and the system works out which topics are weak and what to focus on this week. Mock exams, a mistake box, a review schedule, a weekly plan and a bank of 7,600 original questions live in one place, and the student's coach sees the same screens. I built every layer myself, from idea to launch.
- 7.600
- original questions with explanations
- 177
- official resources, linked to the page
- Java 21
- Spring Boot
- PostgreSQL
- Redis
- Flyway
- React
Open
BackendPrivate repoTaskify
Five microservices, sub-20ms real-time synchronization
Task management across five decoupled microservices, with Redis and Kafka syncing state between active users at sub-20ms latency.
- 5
- microservices
- <20ms
- sync latency
- Java
- Spring Boot
- Redis
- Kafka
- PostgreSQL
- Docker
Open
