8 unstable releases (3 breaking)

0.5.0 Dec 29, 2025
0.4.2 Dec 11, 2025
0.3.0 Dec 1, 2025
0.2.4 Dec 1, 2025
0.2.2 Nov 29, 2025

#484 in Build Utils

MIT license

775KB
15K SLoC

Fob CLI - Modern JavaScript bundler with Rust performance.

This crate provides the command-line interface for the Fob bundler, exposing all functionality from fob-bundler through an intuitive CLI with excellent error messages and user experience.

Architecture

The CLI is organized into several key modules:

  • error - Comprehensive error types with actionable messages
  • logger - Structured logging with tracing
  • [ui] - Terminal UI utilities for progress bars and formatted output
  • commands - Individual CLI command implementations
  • config - Configuration file handling
  • server - Development server

Features

  • Type-safe error handling: Uses thiserror for structured errors
  • Structured logging: Built on tracing for better debugging
  • Beautiful terminal UI: Progress bars, colors, and formatting
  • File watching: Automatic rebuilds on file changes
  • Configuration profiles: Environment-specific settings

Example

use fob_cli::{error::Result, logger};

fn main() -> Result<()> {
    logger::init_logger(false, false, false);
    // CLI command implementations...
    Ok(())
}

Dependencies

~72–110MB
~2M SLoC