Skip to content

mailshieldai/better-context

 
 

Repository files navigation

Better Context (btca)

npm

https://btca.dev

btca is a CLI for asking questions about libraries/frameworks by cloning their repos locally and searching the source directly.

Dev docs are in the apps/cli directory.

Install

bun add -g btca
btca --help

Quick commands

Ask a question:

btca ask -t svelte -q "How do stores work in Svelte 5?"

Open the TUI:

btca chat -t svelte

Run as a server:

btca serve -p 8080

Then POST /question with:

{ "tech": "svelte", "question": "how does the query remote function work in sveltekit?" }

Keep an OpenCode instance running:

btca open

Config

On first run, btca creates a default config at ~/.config/btca/btca.json. That’s where the repo list + model/provider live.

stuff I want to add

  • get the git repo for a package using bun:
 bun pm view react repository.url
  • tui for working with btca (config, starting chat, server, etc.)
  • mcp server
  • multiple repos for a single btca instance
  • fetch all the branches to pick from when you add a repo in the tui
  • cleaner streamed output in the ask command

About

A better way to get up to date context on libraries/technologies in your projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 70.9%
  • Svelte 27.7%
  • Other 1.4%