Why I built it

My thesis was that law firms could benefit enormously from AI, but only if their information stays secure. In legal work, how documents are stored and handled is a matter of liability, not just convenience. Lexra was my attempt to build an AI document assistant around that constraint.

It was also an exploration. I had never written software before, and I built Lexra before I started using Claude Code, so the project doubled as a crash course in building and shipping a real application.

What was built

Lexra is a web application that helps legal professionals review documents with AI.

  • Document library. Firms uploaded PDF, Word and text files. Lexra extracted the text and stored the documents securely, organized into projects.
  • AI summaries. For each document, Lexra produced a summary covering key points, important terms and potential legal implications.
  • Questions and answers. Users could ask questions about a document, or across their documents, in a chat assistant with suggested prompts such as “What are the key legal risks?”
  • Model choice. Users could pick between several AI models from OpenAI, Anthropic and Google, with access depending on plan.
  • Firm accounts. Multi-user firm accounts with usage tracking and subscription billing.

It was built as a React single-page application on an Express and PostgreSQL backend, with file storage on AWS S3, deployed on Heroku.

Timeline and use

I started Lexra in July 2025 and launched it about a month later. It was used by a couple of pilot users and was not commercialized.

What I learned

  • How to use AI more effectively and leverage it for my own work.
  • How to take a product from nothing to a live website: building the application, registering a domain and deploying it.
  • How to design and manage a database.
  • How to read, write and reason about code. My only prior experience was some limited R in college.

About the demo

For this archive, the interface was redesigned and rebuilt as a static demo covering the core workflow: workspace, document review, and the assistant. It contains four fictional documents. Summaries and answers are pre-written, so no AI model is called, nothing you type leaves your browser, and uploads are turned off.

← All technical projects