A zen text editor for writing in meter. Large-font canvas, subtle per-line syllable counts, optional meter rulers and stress marks, and quiet per-draft syllable/stress overrides for ambiguous words.
Built for lyriic.com Write-up on my blog: I meant to write a song but built a local-first lyric editor instead.
- Vite + React + TypeScript
- CodeMirror 6 (poem canvas)
- Tailwind CSS + shadcn/ui
- pnpm
pnpm install
pnpm devOpen the local URL Vite prints (usually http://localhost:5173).
pnpm test
pnpm build
pnpm preview
pnpm lintpnpm build regenerates SEO/agent files (llms.txt, markdown mirrors, sitemap), builds the app, then prerenders /faq, /privacy, and /tools/* to static HTML via react-dom/server (Vite SSR) — no browser required.
Regenerate Open Graph images (Playwright screenshots of og.html → public/og/):
pnpm build:ogPreview the OG gallery with pnpm dev:og.
Rebuild pronunciation packs (shared lexicon + perfect/end/slant rhyme indexes). Downloads Misaki and WikiPron into scripts/sources/ when missing; requires pip install wordfreq:
pnpm build:pronunciationRebuild the thesaurus pack (Open English WordNet + Wiktionary; downloads when missing; requires lexicon from build:pronunciation):
pnpm build:thesaurusRebuild definition digraph packs (OEWN glosses + Wiktionary fill; requires lexicon):
pnpm build:definitionsRuntime dictionaries live under src/lib/data/packs/ as compact binary assets (not JSON).
Defaults follow the fused US pronunciation corpus (Misaki + CMU Pronouncing Dictionary + WikiPron): vowel nuclei in the primary IPA transcription. Hyphenated compounds are split and summed. Out-of-vocabulary words use a spelling heuristic. Prefer an alternate count for ambiguous words (e.g. poetic fire as 1) via hover/tap a word → Syllables; overrides persist with the active draft.
Offline dictionaries are built from:
- Misaki pronunciation data — Apache 2.0
- CMUdict — © Carnegie Mellon University; unrestricted use; acknowledgment requested
- WikiPron (Wiktionary pronunciations) — CC-BY-SA
- Open English WordNet — CC-BY 4.0
- Wiktionary synonyms via kaikki.org / wiktextract — CC-BY-SA
wordfreq— MIT (build-time ranking only)
See scripts/README.md for rebuild details.