blecsd-ai
@blecsd/ai Package Skill
The @blecsd/ai package provides terminal UI widgets for building AI/LLM interfaces. It includes five major widgets for conversations, streaming markdown, token tracking, tool call visualization, and agent workflow displays. All widgets follow blECSd's functional ECS architecture.
Install: pnpm add @blecsd/ai
Peer dependency: blecsd >= 0.7.0
Import: import { conversation, streamingMarkdown, tokenTracker, toolUse, agentWorkflow } from '@blecsd/ai'
Architecture Rules
All blECSd rules apply: no classes, no this, no direct bitecs imports, functional only, early returns. See the blecsd-tui skill for core rules.
Each widget follows the namespace pattern: a frozen plain object of pure functions.
Widgets
1. Conversation Widget
Chat-style conversation thread with streaming support.
More from kadajett/blecsd-skill
blecsd-3d
Render 3D graphics in the terminal with @blecsd/3d. Covers software rasterizer, 3D math (vec3/mat4), multiple backends (braille/sixel/kitty), OBJ loading, scene graphs, and camera systems.
6blecsd-media
Render images, GIFs, PNGs, and video in the terminal with @blecsd/media. Covers GIF/PNG parsing, ANSI rendering, image widgets, video playback, and W3M overlay.
4blecsd-game
Build terminal games with @blecsd/game. Covers the high-level game API, input actions, fixed timestep physics, game loop lifecycle, and widget creation for game development.
4blecsd-audio
Add audio to blECSd terminal apps with @blecsd/audio. Covers audio manager, channel system, adapter pattern, event-based sound triggers, and volume/mute control.
4blecsd-tui
Best practices and module map for blECSd, a modern TypeScript terminal UI library built on ECS (bitecs). Use when building, reviewing, or refactoring blECSd apps, widgets, systems, or ECS/game-loop code.
4