Quickstart
Run the complete compile and render loop locally in one minute.
Run the offline demo
The repository includes a mock provider, sample text, and glossary. No API key is required.
git clone https://github.com/lexweave-hq/lexweave
cd lexweave
npm install
npm run build
npm run demoThe demo writes a portable .lexweave.json bundle and renders an adaptive HTML view.
Compile your own text
node packages/cli/dist/lexweave.cjs compile book.txt \
--source zh \
--target en \
-o book.lexweave.jsonConfigure an Anthropic or OpenAI provider for a real compile. The provider is used only to produce the bundle.
Render and inspect
node packages/cli/dist/lexweave.cjs render book.txt \
--bundle book.lexweave.json \
-o book.html
node packages/cli/dist/lexweave.cjs inspect book.lexweave.jsonRendering does not require the original model provider or a network connection.