~122.6 MB Core WASM 8-Voice StyleTTS 2 0 Bytes Uploaded
About & Code

Standalone App & PWA

Launch Clear Write on its dedicated origin to install it as an offline desktop or mobile PWA with .txt, .md, and .html draft file handlers.

Open write.webai.show ↗

Honest cache note: browsers isolate Cache Storage per origin, so write.webai.show stores its own local weights. Staying on webai.show shares cached weights with the Grammar Correction, KittenTTS Nano 0.8, and Text Simplification model pages.

Stage 1 · Grammar Proofing (95 MB q8 · CC-BY-NC-SA / Apache-2.0)

Xenova/grammar-synthesis-small

Stage 2 · 8-Voice Read-Aloud (27.65 MB int8 · Apache-2.0)

KittenML/kitten-tts-nano-0.8-int8 · Shared Worker

Stage 3 (Optional) · Plain-Language Simplifier (98 MB q8 · Apache-2.0)

grazh/agentlans-flan-t5-small-simplifier-onnx-v2

0-MB Built-in AI Accelerator Probing Chrome AI…

0 bytes uploaded. Focus Reader & readability metrics active immediately; load the local WASM models above for proofing and 24 kHz read-aloud.

TXT · 0 clauses · 0 bytes uploaded
Readability Delta–
Rewrite Hunks–
Read-Aloud (24 kHz)–
T5 Tokens & Cadence–
Chrome Built-in AIProbing…

Focus Reader & Live Rewrite Surface

Dyslexia & ADHD Typography Controls

Highlight: ready
Pending Fix Accepted Grammar Plain Rewrite Spoken Clause

Before / After Readability Telemetry

Original Draft –

–

Active Composed Prose –

–

Edit or Paste Draft Text (.TXT / .MD / .HTML Drop Supported)

Diff Hunks, 8-Voice Read-Aloud & Exports

No diffs yet

Clause Diffs & Accept / Reject Rewrite Pills

Stage 2 · Synchronized 8-Voice KittenTTS Read-Aloud

Awaiting Stage 2 (27.6 MB)

T5 Encoder Tokens & Decode Cadence

Awaiting T5 decode

Export Audio, Prose & OWASP-Safe Reports

How Clear Write Works

Three CPU WebAssembly models running strictly off the main thread — Xenova/grammar-synthesis-small (95 MB q8), KittenML/kitten-tts-nano-0.8-int8 (27.65 MB int8 via shared worker), and optional grazh/agentlans-flan-t5-small-simplifier-onnx-v2 (98 MB q8) — paired with Dyslexia/ADHD Focus Reader controls and progressive 0-MB Chrome Built-in AI.

Non-Destructive Diff Highlights

applyReaderHighlights() walks native text nodes via TreeWalker and paints CSS.highlights ranges (with semantic <mark> fallback), preserving smooth text selection alongside one-click Accept/Reject rewrite hunks.

Shared 27.65 MB StyleTTS 2 Worker

Stage 2 directly reuses ../../models/kitten-tts-nano-0-8/worker.js with zero duplicate weights or version pin overrides, mapping sample counts at 24 kHz into synchronized clause playback highlights.

Progressive Built-in AI + WebMCP

Feature-detects Chrome LanguageDetector, Summarizer, and Translator as an instant 0-MB accelerator while registering 5 registerTool(def, { signal }) WebMCP endpoints with clean AbortController teardown.

Show the code — extractTextFromUntrustedHtml() XSS-safe HTML cleanup without innerHTML
Show the code — buildClauseDiffHunks() word-level LCS diff into Accept/Reject hunks
Show the code — composeAcceptedDocument() cherry-picking grammar & simplified prose
Show the code — buildSpokenClauseTimeline() 24 kHz KittenTTS sample-to-timestamp mapping
Show the code — escapeCsvCell() OWASP CSV formula-injection neutralization
Show the code — StageWorkerClient coalesced load, FIFO queue & epoch-safe disposal
Show the code — applyReaderHighlights() CSS Custom Highlight API + <mark> fallback
Show the code — probeBuiltInAi() 0-MB LanguageDetector / Summarizer / Translator probe
Show the code — registerClearWriteWebMcpTools() 2-arg WebMCP registration with AbortController