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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@gitsense/gscb-cli

v0.5.3

Published

GitSense Chat Bridge (GSCB) Command Line Tool

Downloads

34

Readme

GitSense Chat Bridge (GSCB) CLI

The GitSense Chat Bridge (GSCB) Command Line Interface is a tool designed to import various data sources, primarily Git repositories, into a GitSense Chat SQLite database. This allows the GitSense Chat application to leverage your code repositories for enhanced conversational AI capabilities.

Table of Contents

Installation

To install the GSCB CLI, ensure you have Node.js and npm (or yarn/pnpm) installed.

Install via npm (Recommended for users):

To install the CLI globally, run:

npm install -g @gitsense/gscb-cli

This will make the gscb command available directly in your terminal.

Install from source (For contributors/developers):

If you intend to contribute or develop the CLI, you can clone the repository and build it:

# Clone the repository
git clone https://github.com/gitsense/gscb-cli.git
cd gscb-cli

# Install dependencies
npm install

# Build the project
npm run build

After building, the gscb executable will be available in dist/bin/gscb.js.

Usage

The GSCB CLI's primary function is to import data.

Import Git Repository

The import git command allows you to import a Git repository into your GitSense Chat database. The command now uses positional arguments for a more streamlined experience, with the database path specified as an option.

Current Version: 0.5.0

Syntax:

gscb import git <repo directory> <repo owner> <repo name> <branch> [options]

Arguments:

  • <repo directory>: The local path to the Git repository (e.g., ./my-repo, . for current directory).
  • <repo owner>: The owner or organization name of the repository (e.g., gitsense).
  • <repo name>: The name of the repository (e.g., gscb-cli).
  • <branch>: The Git branch to import (e.g., main, develop). The ref-type is automatically set to branch.

Options:

  • --db-path <path>: The path to the GitSense Chat SQLite database file (e.g., ./test.db). Defaults to ./data/chats.sqlite3 relative to the CLI executable.
  • -s, --max-size <size>: Maximum file size in KB to include in the import (default: 256).
  • -i, --include <pattern>: Regular expression pattern to include specific files.
  • -x, --exclude <pattern>: Regular expression pattern to exclude specific files.
  • -p, --prompt <name>: Name of the system prompt to use for processing.
  • --include-binary: Include binary files in the import (by default, binary files are skipped).
  • -v, --verbose: Enable verbose logging for detailed output.

Examples:

  1. Import a repository from the current directory:
    gscb import git . gitsense gscb-cli main --db-path ./test.db
  1. Import a specific repository with a custom max file size and verbose logging:
    gscb import git /path/to/your/repo my-company my-project develop --db-path ./data/chat.db -s 512 -v
  1. Import a repository, including binary files and excluding certain patterns:
    gscb import git ./another-repo your-org awesome-app main --db-path ./db/app.sqlite --include-binary -x "node_modules|dist"

List Imported Data

The list command allows you to view imported data, specifically Git repositories.

Syntax:

gscb list [type] [owner] [repoName] [options]

Arguments:

  • [type]: (Optional) The type of data to list. Currently, only git is supported. If omitted, available types will be listed.
  • [owner]: (Optional) Filter by repository owner. Only applicable when type is git.
  • [repoName]: (Optional) Filter by repository name. Only applicable when type is git.

Options:

  • --db-path <path>: Path to the GitSense Chat SQLite database. Defaults to ./data/chats.sqlite3 relative to the CLI executable.

Examples:

  1. List all available data types:
    gscb list
  1. List all imported Git repositories:
    gscb list git
  1. List all imported Git repositories from a specific database path:
    gscb list git --db-path ./my-custom-db.sqlite