How I Built a Legal Document Generator for French Small Businesses
I'm a solo developer shipping SaaS products for the French market. One of my recent builds is Auto-DUERP — a tool that generates a mandatory workplace risk assessment document (called "DUERP" in Fr...

Source: DEV Community
I'm a solo developer shipping SaaS products for the French market. One of my recent builds is Auto-DUERP — a tool that generates a mandatory workplace risk assessment document (called "DUERP" in France) that every employer must have. Here's the story of why I built it, and the technical decisions behind it. The problem In France, every company with at least one employee must produce a DUERP (Document Unique d'Evaluation des Risques Professionnels). It's a legal obligation since 2001. The reality? Most small business owners either: Pay 200-500 EUR to a consultant for a generic template Download a random Word file from the internet and hope it's compliant Simply don't have one (and risk fines up to 10,000 EUR) I saw an opportunity for a self-service tool at 49 EUR — 4-10x cheaper than a consultant, but actually tailored to their specific industry. The stack I used the same monorepo setup I use for all my products: Next.js 16 (App Router) with TypeScript Tailwind CSS for styling Prisma +