AI writing

Should you build your own Lex?

Write and revise long-form documents with comments, version history, and AI actions

Buildable · the essentials fit in one project
Price $12/moEstimated savings $144/yrEstimated time multi-dayCategory AI writingCatalog votes 0

The core loop is small enough for a capable coding agent to produce a useful local version in one sitting. For Lex, write and revise long-form documents with comments, version history, and AI actions. The hard boundary is collaborative editor polish, sync, and embedded model access, plus workflow, data, and model tuning.

ENOriginal research content in English. Original prompt preserved in English.

The complete prompt
Build a personal replacement for Lex in an empty repository.
Use Next.js 15, TypeScript, Tailwind CSS, SQLite, Drizzle ORM, and the OpenAI Responses API; do not offer alternative stacks.
The core loop is: take a brief, gather user-supplied source material, generate and revise a structured long-form draft with comments and AI actions, and keep citations and version history attached to each section.
Make the first run work locally with one documented command.
Store all user data locally by default and make export straightforward.
Put secrets in .env, ship .env.example, and never commit credentials.
Build a brief form with audience, objective, tone, source URLs, and prohibited claims.
Store imported source text locally and chunk it for retrieval with SQLite FTS5.
Generate an outline first and require approval before drafting sections.
Attach source references to generated paragraphs and flag unsupported claims.
Provide rewrite controls for shorten, clarify, change tone, and add evidence.
Export clean Markdown plus a JSON research bundle.
Include clear empty, loading, success, and recoverable error states.
Add input validation, safe filenames, and graceful handling of unavailable APIs.
Write focused tests for the core transformation and one end-to-end happy path.
Create a README with setup, architecture, permissions, data location, and backup steps.
Do not add accounts, billing, telemetry, analytics, or a hosted control plane.
Deliberately leave out live search-engine rank data.
Deliberately leave out automatic publishing to third-party CMSs.
Deliberately leave out multi-user approvals and brand governance.
Finish by running the tests and listing the exact commands used.

The prompt opens pre-filled in your agent. Review it before running. · this prompt is generated from the build plan · improve it via PR

Original prompt preserved in English.

What would building your own look like?

Take a brief, gather user-supplied source material, generate and revise a structured long-form draft with comments and AI actions, and keep citations and version history attached to each section.

What you will need

Why paying can still make sense

People still pay for Lex because the subscription bundles a refined workflow, proprietary signals, templates, and predictable output quality for a team. The recurring cost buys prompt maintenance, retrieval quality, source handling, provider changes, and editorial QA, not just the visible interface.

What you lose

xcollaborative editor polish, sync, and embedded model access

xproprietary ranking data

xbrand-trained models

xteam workflows

xlarge template libraries

Share on X ↗"I just replaced Lex ($12/mo) with one prompt"
Free alternatives

Prefer something ready-made?

AppFlowyA local-first collaborative document workspace with comments, history, and free Ollama-backed AI; Notion-shaped, but it can replace Lex.75kJul 2026Open source↗

License, setup, and limitations for each alternative.

Plans and pricing

How much does Lex cost?

In your currency · US DollarChecked on 07/31/2026
Monthly billing
$12/mo
Per year
$144/yr
Buy on the official site

You complete the purchase on Lex’s site. Vibe Radar does not handle payments.

Compare withanother app →
Build or buy

Is it cheaper to build or buy Lex?

Adjust the numbers: hours to build, your hourly rate, running costs and the subscription price.

Subscribe
Build it yourself
Horizon
Subscribe$288
Build it yourself$3,560

Over 24 months, subscribing is cheaper.

Starting hours estimated from the analysis (multi-day). Does not price what you give up (support, integrations, security).

Frequently asked questions
Can I rebuild Lex?

Yes. A competent AI coding agent (Claude Code, Codex, Cursor) can build a usable personal Lex replacement in one session with the prompt on this page. It runs on your own machine or server with no subscription.

How much does Lex cost?

Lex costs about $12/mo (Pro, checked 07/31/2026), which is $144 per year. That’s what you save by replacing it with one prompt.

What do I lose by replacing Lex?

Honestly: collaborative editor polish, sync, and embedded model access; proprietary ranking data; brand-trained models; team workflows; large template libraries. If any of those are load-bearing for you, keep paying.

Is there an open-source alternative to Lex?

Yes: AppFlowy (A local-first collaborative document workspace with comments, history, and free Ollama-backed AI; Notion-shaped, but it can replace Lex.) The prompt is for when you want it exactly your way.

New ideas on your radar.

Get catalog updates and prompts for your next project.