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/integration

v0.8.2

Published

<div align="center">

Readme

🔗 @bigbyte/integration - Integration Models for BigByte

NPM Version License TypeScript

Essential TypeScript models and types for configuration and integration of BigByte ecosystem libraries

📋 Table of Contents

✨ Features

  • Configuration Models: TypeScript interfaces to configure integration between addons
  • Command Definition: Types to declare new commands and actions in the CLI
  • Flag System: Models to define flags with types (switch, value, file) and default values
  • Addon Management: Interfaces to register and configure external addons
  • Environment Handling: Types for environment variable injection
  • Help System: Base models for command documentation and help
  • Library Compatibility: Shared types to ensure interoperability
  • Dependency Validation: Models to declare and validate dependencies between components

🚀 Installation

npm install @bigbyte/integration

🔧 Basic Usage

Define an Addon Configuration

import { Configuration, Command, Flag, FlagType } from '@bigbyte/integration';

const myConfiguration: Configuration = {
  newCommands: [
    {
      name: 'my-command',
      path: './commands/my-command.js',
      requiresMainFile: true,
      injectEnvironment: true,
      flags: [
        {
          name: '--verbose',
          type: FlagType.switch,
          env: 'VERBOSE',
          defaultValue: false,
          help: 'Enable verbose mode',
          description: 'Shows detailed information during execution'
        }
      ],
      help: 'My custom command',
      description: 'Executes a custom action with advanced options'
    }
  ]
};

🔍 Detailed API

Configuration

Main interface to configure addon integration:

  • newCommands?: Command[] - Declaration of new commands
  • commandDeclaration?: Command[] - Declaration of commands to add new flags

Command

Type to define commands and actions:

  • name: string - Name of the command or action
  • path?: string - Path of the command to execute, the file must export by default a function that receives CommandData type as parameters
  • flags?: FlagOptions - Flags that apply to the command
  • requiresMainFile?: boolean - If it requires a main file, a target .ts file
  • injectEnvironment?: boolean - If environment variables should be injected
  • environment?: Environment - Configuration about environment variables

Environment

  • DEFAULT_VALUES: [key: string]: string | undefined - Default environment values

Flag

Interface to define command flags:

  • name: string - Flag name (e.g.: "--doctor")
  • type: FlagType - Type: switch, value, or file
  • env?: string - Environment variable key where to replicate the value
  • defaultValue?: any - Default value
  • help: string - Help text
  • description: string - Detailed help text

FlagType

Enum with available flag types:

  • switch - Activation/deactivation flag. Value true or false
  • value - Flag that requires a value
  • file - Flag that requires a file path

Addon

Interface to register addons:

  • name: string - Addon name
  • version: string - Addon version
  • path: string - Addon path
  • configuration?: Configuration - Addon configuration

🏗️ Architecture

The module is structured in specialized components:

📁 Project Structure

src/
├── model/
│   ├── Addon.ts              # Addon model
│   ├── Command.ts            # Command definition
│   ├── CommandData.ts        # Command data
│   ├── Configuration.ts      # Integration configuration
│   ├── Dependency.ts         # Dependency management
│   ├── Environment.ts        # Environment variables
│   ├── Flag.ts              # Flag system
│   ├── Help.ts              # Help system
│   └── MainFile.ts          # Main files
└── constant/
    └── index.ts             # Module constants

🔄 Integration Flow

  1. Addon Registration: Addons are registered using the Addon interface
  2. Configuration: Each addon defines its Configuration with commands and flags
  3. Command Resolution: The system resolves commands according to configurations
  4. Environment Injection: Environment variables are injected according to configuration
  5. Execution: Commands are executed with appropriate flags and environments

📄 License

This project is under the Apache 2.0 license. See the LICENSE file for more details.


Developed with ❤️ by Jose Eduardo Soria Garcia

Part of the BigByte ecosystem