About this software
About LexFlow – Law Firm Case, Client & Billing Management
LexFlow is a self-hosted web application (Next.js 16 front end, NestJS API, PostgreSQL 16, Redis/BullMQ) that covers cases, clients, hearings, documents, tasks, time tracking and VAT invoices. Hearings get 24 h and 2 h reminders sent by a background worker, and clients can open a read-only portal through a tokenised link. Access is role-based (Admin, Lawyer, Paralegal), and lawyers and paralegals can open only records on cases they work on. The source is a pnpm monorepo with shared Zod schemas, 12 SQL migrations, Docker Compose files and a VPS setup guide. It is web only; no mobile app is evidenced in the code.
Why LexFlow – Law Firm Case, Client & Billing Management
What makes it better
than the alternatives
- 01
Record-level access control
A global guard chain (throttle, origin check, JWT, roles, record access) checks every :id route on cases, clients, hearings, documents, tasks, time entries, invoices and communications against the user's assigned cases.
- 02
Arabic and English
The web app ships Arabic translation files and a direction provider for right-to-left layout, with default language set per installation.
- 03
Hearing reminders on a queue
A BullMQ worker with a tested reminder plan sends 24 h and 2 h reminders, and the shared reminder-plan logic skips reminders already sent or past due.
- 04
Hardened first-run and sessions
First admin sign-up is serialised with a Postgres advisory lock and needs ADMIN_SETUP_TOKEN in production; sign-out and password changes revoke tokens via a token version.
- 05
Verifiable database and delivery
CI rebuilds the schema from migrations on empty PostgreSQL 16 and compares it with database/schema.sql; the repo also includes unit and e2e tests for portal isolation, staff scope and session revocation, plus a source manifest checksum.
Cases and clients
- Case and client records with filtering and search
- Case team membership and case dossier view
- Court-ready dossier PDF export
- Conflict-of-interest check across the firm
- Communication log per case or client
Hearings and calendar
- Hearing calendar with hearing types
- 24 h and 2 h reminders by email via user-configured SMTP
- Web Push notifications (VAPID) and in-app notification bell
- iCal export library included as a dependency
Documents
- Document vault with upload validation and file-signature checks
- Local disk or Cloudflare R2 storage
- Encrypted file storage (file-crypto module)
- Send a document by email
Tasks and time
- Task management with status select
- Time entries with a live timer
- Time billed in hours
- rounded to 2 decimals
Invoicing
- VAT invoices with line items and tested invoice maths
- Invoice PDF generation through a background queue
- Invoices limited to Admin and Lawyer roles; protected from deletion with cases
Client portal
- Token-link portal for each client
- with tokens stored hashed
- Regenerate or revoke a portal link
- Portal isolation covered by e2e tests
Dashboard
- Metrics and date-range trends read from pre-aggregated tables
- Bar charts
- background recalculation
- Admin-triggered refresh
Administration and security
- Users and roles: Admin
- Lawyer
- Paralegal
- Append-only audit log
- viewable by Admin
- Firm profile
- logo and encrypted SMTP settings
- Rate limiting
- httpOnly cookies
- CORS origin guard
Deployment
- Docker Compose with separate api
- worker
- web
- postgres and redis
- Coolify compose file and a VPS setup guide
- Migrations applied on start in production
- GitHub Actions CI with typecheck
- lint
- tests and smoke run
| Language | Version | Framework | Used for | Share of code |
|---|---|---|---|---|
| TypeScript (React) | — | — | Front-end | 47.1% |
| TypeScript | — | — | Front-end | 46.2% |
| SQL | — | — | Database | 3.8% |
| CSS | — | — | Styling | 2.8% |
| JavaScript | — | — | Front-end | 0.1% |
- Primary language
- TypeScript 5.9 on Node.js 22
- Framework
- Next.js 16 (App Router) + NestJS 11
- Database
- PostgreSQL 16 (pg_trgm) with Redis for BullMQ queues
- Authentication
- JWT access and refresh tokens in httpOnly cookies, role-based access (ADMIN, LAWYER, PARALEGAL), token-version session revocation
- Licence
- Single-site
- Screens
- 15
- Database tables
- 18
- Supported languages
- English and Arabic; Arabic uses right-to-left (RTL) layout
- Browser support
- Modern evergreen browsers; no legacy browser testing is evidenced
| Minimum | Recommended | |
|---|---|---|
| CPU | 2 vCPU | 4 vCPU |
| RAM | 4 GB | 8 GB |
| OS | Linux (Docker or systemd VPS), Node.js 22.x, pnpm 10.x, PostgreSQL 16 | Linux (Docker or systemd VPS), Node.js 22.x, pnpm 10.x, PostgreSQL 16 |
| Est. monthly hosting | $25 | $25 |
```bash cp apps/api/.env.example .env openssl rand -hex 24 # POSTGRES_PASSWORD openssl rand -hex 48 # JWT_ACCESS_SECRET openssl rand -hex 48 # JWT_REFRESH_SECRET docker compose up -d --build ``` This starts postgres, redis, api, worker and web.
```bash corepack enable pnpm install --frozen-lockfile pnpm build systemctl enable --now redis-server psql -h localhost -U lexflow -d lexflow -v ON_ERROR_STOP=1 -f database/schema.sql systemctl enable --now lexflow-api lexflow-worker lexflow-web ``` Set the first admin with ADMIN_SETUP_TOKEN, then configure branding under Settings > Firm profile.
Quality report
Manually reviewedHow to read the quality report
What this is. Every project on Vibe96 goes through an automated audit of its source code before a reviewer in Dubai checks it by hand. The score is out of 100; 75 is the minimum to be listed, and any single failing check blocks a listing regardless of the score.
- Security
- No real credentials in the code, every data-changing route protected, admin areas role-gated, no SQL built from user input.
- Code structure
- A developer can navigate and extend it: clear module boundaries, no giant files, little copy-paste.
- Docs & completeness
- The setup guide, example config, schema and required files the builder committed to are actually in the archive.
- Dependency health
- Packages pinned, no known critical vulnerabilities, no abandoned libraries in production paths.
- Build & deploy
- A clean machine can restore, build and start it by following the shipped instructions.
Warnings are problems that didn't block the listing; they stay visible here until a later version clears them. The audit reads the code — it does not run it — so always try the live demo before you buy. Lines of code are counted from the same audited archive.
Reviewer notes (2 minor)
Build looks reproducible, but key build files and the setup doc were not visible, so some checks are unverified; drizzle orm with proven migrations; most service sql is not visible in the digest. None of these stop the software from working; the developer has been told and improvements come in a future update.
Versions & updates
No updates yet. New versions appear here with a changelog.
Buyers receive updates free for 1 year.
What you get
- </>Full source codeThe complete audited source, delivered as a download from your account. No obfuscation.
- ▤DocumentationSetup guide, architecture notes, CLAUDE.md and AGENTS.md.
- ↻One year of updatesEvery new version the builder publishes, free for 12 months.
- ♧30 days of supportInstallation and defect support through Vibe96 tickets.