How rsavnani18/pixelkit-cli works
PixelKit CLI converts supported images to WebP or PNG. Users invoke a converter with an optional path; the command parses it, then either validates one file directly or scans and validates a directory before interactive selection. The command invokes conversion and reports per-file results and progress. The graph also includes global CLI options and converter registration. Converter internals are represented at their implementation paths; unsampled helpers and UI details are not inferred beyond the indexed references and README capabilities.
Main entry points: webp.ts WebP Command · png.ts PNG Command · cli/index.ts CLI Entry · webp/index.ts WebP Converter
Components 18
CLI Entry
- CLI Entry
src/cli/index.ts - Global Options
src/cli/commands.ts
Conversion Workflow
- Path Arguments
src/cli/arguments.ts - WebP Command
src/commands/webp.ts - PNG Command
src/commands/png.ts - Directory Scanner
src/core/scanner.ts - Image Validator
src/core/file-validator.ts
Format Converters
- Converter Registry
src/converters/registry.ts - WebP Converter
src/converters/webp/index.ts - WebP Options
src/converters/webp/options.ts - PNG Converter
src/converters/png/index.ts - PNG Options
src/converters/png/options.ts - Conversion Engine
src/core/converter.ts - Output Protection
src/core/output-manager.ts
Terminal UI
- Image Selector
src/ui/image-selector.ts - Progress Display
src/ui/progress.ts - Status Messages
src/ui/messages.ts
Other components
- Developer
Connections 26
- Developer → CLI Entry: invokes
README.md - CLI Entry → Global Options: dispatches options
src/cli/index.ts - CLI Entry → WebP Command: loads WebP
src/cli/index.ts - CLI Entry → PNG Command: loads PNG
src/cli/index.ts - WebP Command → Path Arguments: parses path
src/commands/webp.ts - PNG Command → Path Arguments: parses path
src/commands/png.ts - WebP Command → Converter Registry: gets definition
src/commands/webp.ts - PNG Command → Converter Registry: gets definition
src/commands/png.ts - Global Options → Converter Registry: lists converters
src/cli/commands.ts - WebP Command → Directory Scanner: scans directory
src/commands/webp.ts - PNG Command → Directory Scanner: scans directory
src/commands/png.ts - WebP Command → Image Validator: validates files
src/commands/webp.ts - PNG Command → Image Validator: validates files
src/commands/png.ts - WebP Command → Image Selector: selects images
src/commands/webp.ts - PNG Command → Image Selector: selects images
src/commands/png.ts - WebP Command → WebP Converter: converts files
src/commands/webp.ts - PNG Command → PNG Converter: converts files
src/commands/png.ts - WebP Command → Progress Display: renders progress
src/commands/webp.ts - PNG Command → Progress Display: renders progress
src/commands/png.ts - WebP Command → Status Messages: reports results
src/commands/webp.ts - PNG Command → Status Messages: reports results
src/commands/png.ts - WebP Converter → Conversion Engine: delegates conversion
src/converters/webp/index.ts - PNG Converter → Conversion Engine: delegates conversion
src/converters/png/index.ts - Conversion Engine → Output Protection: checks output
src/core/converter.ts - WebP Converter → WebP Options: uses options
src/converters/webp/index.ts - PNG Converter → PNG Options: uses options
src/converters/png/index.ts