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

btca

v0.3.3

Published

CLI tool for asking questions about technologies using OpenCode

Readme

btca

A CLI tool for asking questions about technologies using their source code repositories.

Installation

bun install

Usage

bun run src/index.ts

Or after building:

btca <command>

Commands

btca

Show version information.

btca ask

Ask a question about a technology.

btca ask -t <tech> -q <question>
btca ask --tech svelte --question "How do I create a reactive store?"

Options:

  • -t, --tech - The technology/repo to query
  • -q, --question - The question to ask

btca chat

Start an interactive TUI chat session.

btca chat -t <tech>
btca chat --tech nextjs

Options:

  • -t, --tech - The technology/repo to chat about

btca serve

Start an HTTP server to answer questions via API.

btca serve
btca serve -p 3000

Options:

  • -p, --port - Port to listen on (default: 8080)

Endpoint:

  • POST /question - Send { "tech": "svelte", "question": "..." } to get answers

btca open

Hold an OpenCode instance in the background for faster subsequent queries.

btca open

btca config

Manage CLI configuration. Shows the config file path when run without subcommands.

btca config

btca config model

View or set the model and provider.

# View current model/provider
btca config model

# Set model and provider
btca config model -p <provider> -m <model>
btca config model --provider anthropic --model claude-3-opus

Options:

  • -p, --provider - The provider to use
  • -m, --model - The model to use

Both options must be specified together when updating.

btca config repos list

List all configured repositories.

btca config repos list

btca config repos add

Add a new repository to the configuration.

btca config repos add -n <name> -u <url> [-b <branch>] [--notes <notes>]
btca config repos add --name react --url https://github.com/facebook/react --branch main

Options:

  • -n, --name - Unique name for the repo (required)
  • -u, --url - Git repository URL (required)
  • -b, --branch - Branch to use (default: "main")
  • --notes - Special instructions for the AI when using this repo

Configuration

Configuration is stored at ~/.config/btca/btca.json. The config file includes:

  • promptsDirectory - Directory for system prompts
  • reposDirectory - Directory where repos are cloned
  • port - Default server port
  • maxInstances - Maximum concurrent OpenCode instances
  • repos - Array of configured repositories
  • model - AI model to use
  • provider - AI provider to use