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

bharatcode

v0.2.9

Published

BharatCode CLI and OpenCode plugin for OAuth-based access to the BharatCode public beta.

Readme

BharatCode

BharatCode public beta website, OAuth CLI, OpenCode plugin, and operating notes.

Project Layout

  • index.js: OpenCode plugin entrypoint published as the bharatcode npm package.
  • bin/bharatcode.js: BharatCode OAuth CLI wrapper.
  • lib/: dependency-free OAuth credential and OpenCode config helpers.
  • apps/web/: Next.js public beta website, Supabase Auth pages, OAuth consent, account flow, dashboard, and model proxy.
  • docs/opencode-setup.md: OAuth-only user setup guide.
  • docs/public-beta-runbook.md: deployment and verification runbook.
  • docs/opencode-rebrand-path.md: OpenCode CLI/Desktop/VS Code rebrand path.
  • docs/security-hardening.md: current server hardening checklist and ops notes.
  • docs/stt-dictation.md: plan for remote dictation support through the same OAuth-protected BharatCode backend path.
  • stt/: OpenAI-compatible transcription service.
  • infra/: checked-in systemd and deployment notes.

Live Services

  • Website: https://bharatcode.ai
  • OAuth issuer: https://evgvlcaxfpwupaiwzqqm.supabase.co/auth/v1
  • User-facing model endpoint: https://bharatcode.ai/api/model/v1
  • Current upstream model endpoint: https://bharatcode.kaabil.me/v1

Model Capabilities

The OpenCode plugin explicitly declares image attachment support:

  • input: text, image
  • output: text
  • tools: enabled
  • reasoning: enabled

Quick Setup

The beta path uses OAuth, not user API keys:

npm install -g bharatcode
bharatcode .

bharatcode . opens browser login when needed, stores OAuth credentials in ~/.bharatcode/credentials.json, installs the BharatCode OpenCode plugin, and adds it to ~/.config/opencode/opencode.jsonc. The plugin then calls https://bharatcode.ai/api/model/v1 with a short-lived Bearer token. The explicit bharatcode auth login and bharatcode opencode configure commands remain available as repair commands.

Full setup instructions are in docs/opencode-setup.md.

Publishing

Before publishing:

npm pack --dry-run
node -e "import('./index.js').then(m => console.log(typeof m.default, typeof m.BharatCodePlugin))"

Web app:

cd apps/web
npm install
npm test
npm run build