Compile meaning, not decoration.
Extract verbatim words, phrases, grammar and entities from the complete source.
Lexweave turns long-form text into a portable reading program, then plans deterministic word, phrase and sentence exposure for each reader without a read-time LLM.
Units are extracted and verified at compile time. At read time, Lexweave selects only the replacements that fit the current reader, location and flow budget.
Extract verbatim words, phrases, grammar and entities from the complete source.
Balance density, scaffolding, unit tier and novelty against comprehension.
The same source, bundle, reader state and parameters produce the same view.
No API key is required for the mock-provider demo.
Open Quickstart →git clone https://github.com/lexweave-hq/lexweave
cd lexweave && npm install && npm run build
# compile and render the bundled sample
npm run demo
# inspect the portable reading program
node packages/cli/dist/lexweave.cjs inspect \
examples/demo/sample-book.lexweave.jsonUse the full CLI or embed only the boundary your product needs.
Schemas, language units, flow budget, planning and reader memory.
npm i @lexweave/coreCompile long-form text into a portable reading program with any LLM.
npm i @lexweave/compileDeterministic replacement injection for HTML and plain text.
npm i @lexweave/renderCLI for compile, render and inspect workflows.
npm i lexweaveRead the planner. Inspect the bundle. Replace the model adapter. Run the renderer in a browser, WebView or Node.