npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@bigbyte/cli

v0.8.2

Published

<div align="center">

Readme

🔄️ @bigbyte/cli - BigByte Command Line Interface

NPM Version License TypeScript

Modular CLI to run, analyze, diagnose and package TypeScript applications inside the BigByte ecosystem.

📋 Table of Contents

✨ Features

  • Typed execution of TypeScript applications (run)
  • Automatic pre-compilation (leverages tsc + project configuration)
  • Controlled environment injection with defaults (NODE_ENV=development)
  • Watch mode with incremental reload (--watch)
  • Live diagnostic doctor mode (--doctor) Upcoming releases
  • Dynamic informational banner with app metadata (--banner)
  • Debug mode with extended logging (--debug)
  • Custom .env file loading (--env=<path>)
  • Structural code analysis and classpath model generation (scan)
  • Packaging with optional minification (package --minify)
  • Version flags (--version, -v) and contextual help (help)
  • Integration with other BigByte libraries: @bigbyte/utils, @bigbyte/integration, @bigbyte/classpath
  • Extensible architecture driven by declarative command configuration

🚀 Installation

npm install @bigbyte/cli --save-dev

Executable available as bbyte binary.

🖥️ Commands

Below is the set of commands and flags discovered from the internal configuration (src/integration/configuration.ts).

run

Executes the main application by compiling and launching the provided entrypoint.

Flags:

  • --doctor Enables diagnostic mode (env: DOCTOR_MODE) Upcoming releases.
  • --watch Enables change detection (env: WATCH_MODE).
  • --debug Enables debug mode (env: DEBUG_MODE).
  • --env=<file> Sets an alternative environment file.
  • --banner Enables (default) banner output (env: BANNER).

package

Generates a distributable package of the application.

Flags:

  • --minify Enables output minification.

scan

Analyzes TypeScript structure and generates a structural model (classes, interfaces, enums, types, functions). No additional flags.

help

Shows contextual help. Supports granular queries: help, help run, help run --watch, help --doctor.

--version / -v

Prints the current CLI version.

🔧 Basic Usage

Run an application (main entrypoint):

bbyte run ./src/index.ts

Development with live reload & diagnostics:

bbyte --watch --doctor --debug run ./src/index.ts

Use a specific environment file:

bbyte run --env=.env.local ./src/index.ts

Show CLI version:

bbyte --version
# or
bbyte -v

Analyze project structure: Used to develop

bbyte scan

Package with minification:

bbyte package --minify

Show help for a specific flag:

bbyte help run --watch

🔍 Detailed API

Command Model (run)

  • Requires a main file (mainFile).
  • Injects environment with default: NODE_ENV=development.
  • Internal phases:
    1. Read tsconfig.
    2. TypeScript compilation (errors wrapped in CompilationError).
    3. Conditional activation: Watcher (chokidar), Doctor, Banner, Debug logs.
    4. Runtime launch.
    5. Compilation time metrics.

Run Command Flags

  • --doctor (switch) Enables diagnostic service/server. Default: false Upcoming releases.
  • --watch (switch) Watches for changes & recompiles. Default: false.
  • --debug (switch) Enables extended logs. Default: false.
  • --env=<file> (file) Specifies alternative .env. Falls back to project root if omitted.
  • --banner (switch) Shows banner with metadata (App Name, Version, Cli Version). Default: true.

Related Environment Variables

  • NODE_ENV Execution environment (default: development).
  • BANNER Controls banner display (true / false).
  • DOCTOR_MODE Doctor mode state (internal read-only after activation).
  • WATCH_MODE Watch mode state (internal read-only after activation).
  • DEBUG_MODE Debug mode state.

package Command

  • Generates distributable artifact.
  • Flag: --minify (reduces size removing whitespace/comments).

scan Command

  • Builds structural representation using ts-morph.
  • Useful for tooling, metadata generation, static analysis.

help Command

  • Contextual resolution of actions & flags.
  • Supports combinations: action + flag.

Version Flags

  • --version / -v quick version query.

🔧 Advanced Examples

Silent run without banner:

# (If implementation supports disabling the banner via env var)
BANNER=false bbyte run ./src/index.ts

Full development pipeline (watch + debug + doctor):

bbyte run ./src/index.ts --watch --debug --doctor

Generate optimized package:

bbyte package --minify

Integrate with npm scripts:

"scripts": {
  "start": "bbyte run ./src/index.ts --watch",
  "analyze": "bbyte scan",
  "build:pkg": "bbyte package --minify"
}

Inspect help for a specific flag:

bbyte help run --env

📄 License

This project is licensed under Apache-2.0. See the LICENSE file for details.


Built with ❤️ by Jose Eduardo Soria Garcia

Part of the BigByte ecosystem