Vit Busek
← Work

August 2026

Legal Document Creator

Draft a legal agreement by chatting. Pick one of 11 Common Paper templates, answer in plain language, and watch the document fill in live.

A completed Mutual NDA in Legal Document Creator: every field filled and ready to download, with the chat panel showing the details that produced it.
Role
Solo build — frontend, backend, infrastructure
Stack
Next.js, FastAPI, SQLite, OpenRouter, Docker

What it brings

Technical design

chat completion

Client

  • Next.js 16

  • @react-pdf/renderer

    The PDF is built in the browser.

Server

  • FastAPI

    Routes: auth, documents, chat, saved, demo.

  • GitHub OAuth

  • app/document_chat.py

Data

  • SQLite

  • templates/*.md

    Indexed by catalog.json.

External

  • OpenRouter

REST /api/*

SQLite

  1. Templates are markdown files in the repository. catalog.json indexes them, so there is no CMS and no content rows in the database — a template change arrives as a diff someone can review.
  2. The PDF is rendered in the browser. The server never generates a document, so no request holds a rendering process open.