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

@gigachain/pi-gigachat

v0.1.1

Published

GigaChat provider extension for pi-coding-agent

Readme

@gigachain/pi-gigachat

GigaChat as a standalone pi-coding-agent extension package.

What It Includes

  • native gigachat provider registration for pi
  • built-in GigaChat-2 (Lite), GigaChat-2-Pro, and GigaChat-2-Max
  • /login gigachat onboarding with stored credential refresh
  • robust streaming for tool-heavy sessions without the SDK client.stream(...) parser path
  • source in src/ and published build artifacts in dist/

Install

pi install npm:@gigachain/pi-gigachat

Try it without installing:

pi -e npm:@gigachain/pi-gigachat

Or load the local checkout directly after building once:

npm install
pi -e /absolute/path/to/pi-gigachat

Usage

After loading the package, select a GigaChat model with /model or start by logging in:

/login gigachat

The onboarding flow asks for:

  • account type: personal or business
  • auth mode: basic or token
  • scope, with sensible defaults
  • base URL, with the standard production URL as the default

Because the current public pi OAuth prompt API only supports text prompts, the onboarding uses text input with defaults instead of picker widgets.

Quick Smoke Test

After installing and authenticating:

pi -p --provider gigachat --model GigaChat-2-Pro "Say hello in one short sentence."

For a tool-use smoke test:

pi -p --provider gigachat --model GigaChat-2-Pro "Read package.json and reply with only the package name."

Environment Variables

Recommended:

export GIGACHAT_CREDENTIALS=...
export GIGACHAT_SCOPE=GIGACHAT_API_PERS

Also supported:

export GIGACHAT_ACCESS_TOKEN=...

Or:

export GIGACHAT_USER=...
export GIGACHAT_PASSWORD=...

Optional:

export GIGACHAT_BASE_URL=https://gigachat.devices.sberbank.ru/api/v1

Models

  • gigachat/GigaChat-2
  • gigachat/GigaChat-2-Pro
  • gigachat/GigaChat-2-Max

Current metadata is aligned with the public GigaChat model docs as of March 23, 2026:

  • GigaChat-2 is shown as GigaChat 2 Lite
  • GigaChat-2-Pro and GigaChat-2-Max are marked as text-and-image capable in pi
  • public per-million-token pricing is reflected in the extension metadata

pi model metadata only supports text and image input flags today, so GigaChat audio-input support is not represented separately even though the upstream Pro and Max models support it.

Notes

  • Uses the official gigachat SDK for auth and request configuration.
  • Uses a custom SSE parser instead of the SDK's built-in client.stream(...) path, because tool-call responses can arrive split across transport chunks and break the SDK parser.
  • Supports refreshable stored credentials for both basic and token-credentials login modes.

Publish Checklist

Before the first publish:

  1. Create the GitHub repo at github.com/ai-forever/pi-gigachat or update the repository URLs in package.json.
  2. Run npm install.
  3. Run npm run check.
  4. Confirm npm publish --dry-run.
  5. Publish with npm publish --access public.

Development

npm install
npm run build
npm run check