blecsd-media
@blecsd/media Package Skill
The @blecsd/media package provides image parsing, rendering, and video playback for blECSd terminal applications. It includes complete GIF and PNG parsers, ANSI rendering to 256-color terminal, animated image widgets, video player integration (mpv/mplayer), and W3M overlay support.
Install: pnpm add @blecsd/media
Peer dependency: blecsd >= 0.7.0
Subpath Imports
The package exposes focused subpath imports:
import { parseGIF, frameToRGBA } from '@blecsd/media/gif';
import { parsePNG, extractPixels } from '@blecsd/media/png';
import { renderToAnsi, scaleBitmap, rgbTo256Color } from '@blecsd/media/render';
import { createImage, setImageData, play, pause } from '@blecsd/media/widgets/image';
import { createVideo, detectVideoPlayer } from '@blecsd/media/widgets/video';
import { createW3MOverlay } from '@blecsd/media/overlay';
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-ai
Build AI/LLM terminal interfaces with @blecsd/ai. Covers streaming conversation UIs, markdown rendering, token tracking, tool call visualization, and agent workflow displays.
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