Vibecode Lex

track this build5 phases, 15 steps, beginner friendly
YES · one-shottable
price $12/moyou'd save $144/yrbuild time multi-daycategory ✍️ ai writingreplaced by 0 people

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.

the project pack5 files · written for this build, step by step
README.md
# Lex · indie build

A document editor whose AI reads what you wrote and responds as a reader would, in margin comments you can accept, argue with or ignore, with the constraint that it never edits your text and never writes a sentence you then keep.

Estimated effort: **multi-day**. Work `BUILD_PLAN.md` top to bottom · every phase ends in a check that has to pass before the next one starts.

## Stack

| Part | Choice | Why |
| --- | --- | --- |
| Editor | ProseMirror over a document model with stable positions | comments anchor to ranges and those anchors must survive editing |
| Runtime | TypeScript with a local application and SQLite | drafts are the most private thing most people write |
| Comments | Generated on demand, anchored to ranges, never applied automatically | the whole premise is that the writing stays yours |
| Versions | Every session's text kept, diffable | seeing how a draft changed is most of the value of keeping drafts |
| Models | Local by default, hosted as an explicit per-document choice | an unfinished draft going to a service should be a decision |

## Before you start

Have every one of these ready. The plan assumes them from step one.

- [ ] **Node.js 22 or newer** · free
  - Why: Runs the editor and the local application.
  - Get it: nodejs.org, or nvm install 22.
  - Verify: node --version prints v22 or higher
- [ ] **A local model runner** · free, needs memory and patience
  - Why: The default policy is local, and a draft is the most private writing most people do.
  - Get it: Ollama or llama.cpp with a model that follows structured output instructions reliably.
  - Verify: It returns valid structured output for a comment request ten times in a row
- [ ] **A real draft of yours, at least two thousand words** · free
  - Why: Comment quality, coverage and anchor drift are only observable on real writing with real weaknesses.
  - Get it: Something you are actually working on and would revise.
  - Verify: It is long enough that comment coverage across sections is testable
- [ ] **Your editor's position model** · free, a couple of hours of reading
  - Why: Everything about comments depends on positions that survive editing, and this is the hardest decision to change later.
  - Get it: Read how your editor framework represents positions and how they map through changes before writing anchor code.
  - Verify: A written note explains how a position maps through an insertion above it

## Quick start

Follow Phase 1 in `BUILD_PLAN.md`; it creates the project.

Then copy `.env.example` to `.env` and fill in the values it documents.

## Honest limits

This build deliberately does not replace:

- Collaborative editing.
- Publishing and distribution.
- Any generation of body text.
- Style enforcement against a house guide.
- collaborative editor polish, sync, and embedded model access
- proprietary ranking data
- brand-trained models
- team workflows
- large template libraries

If one of those is essential to you, that is the reason to keep paying for Lex, and the README should say so rather than pretend.

$ choose a build depth, inspect the files, then open the complete pack in your agent

why people still pay

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"
the escape hatch

Don't feel like building it? These folks already made it free.

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

no votes, no pay-to-list · just what's real

questions
Vibecode 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/month (Pro, checked 2026-07-31), 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.