928 B
928 B
lmc
Bun CLI tool for streaming LLM chat with inline markdown rendering.
Commands
bun run dev # dev run
bun run prod # run bundled output
bun run check # biome lint + format + organize imports
Architecture
index.ts— CLI entry point, orchestrationsrc/render/index.ts—Rendererclass: streams LLM response, buffers markdown, renders to stdout/stderrsrc/render/markdown.ts—renderMarkdown(): syntax-highlighted markdown via@comark/ansi+ Shiki
Gotchas
- Bun only — not Node. Use
Bun.file(),Bun.argv,Bun.sleep(). - No tests — none exist.
- Biome config: double quotes, space indent, auto-import-organize on. Run
bun run checkbefore committing.
Style
- Double quotes (enforced by biome).
- Preserve
verbatimModuleSyntax— imports must be used or type-imported. strict: truein tsconfig.