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

pi-yandex-bridge

v0.3.19

Published

Pi Coding Agent provider bridge for Yandex Cloud AI (YandexGPT)

Readme

pi-yandex-bridge

Pi Coding Agent provider bridge for Yandex Cloud AI (YandexGPT).

Models

All models available in your Yandex Cloud folder are fetched dynamically after authentication. Supported models include:

  • YandexGPT (Pro 5.1, Pro 5, Lite) — with chain-of-thought reasoning
  • DeepSeek V3.2 — with thinking mode
  • Qwen3 series (235B, 3.5-35B, 3.6-35B) — with reasoning
  • GPT-OSS (120B, 20B) — with reasoning capability
  • Other models like Alice AI LLM, Gemma 3, embedding models, and speech models

Installation

Install from npm:

npm install pi-yandex-bridge

Or add directly to ~/.pi/agent/settings.json:

{
  "extensions": ["pi-yandex-bridge"]
}

Then restart Pi and run /yalogin.

Auth: OAuth (default)

1. Find your Yandex Cloud folder ID

In the Yandex Cloud console, select your folder. The ID is shown in the URL and on the folder overview page (looks like b1gk28...).

2. Log in

Run /yalogin in Pi. A browser window opens automatically — authorize the app, and the token is captured without any pasting. Pi then prompts for your folder ID. Available models are fetched immediately after login.

IAM tokens expire after 12 hours and are refreshed automatically using the stored OAuth token. The model list is re-fetched on each refresh.

To skip the browser flow, set env vars before starting Pi:

export YANDEX_OAUTH_TOKEN="y0_AgAAAA..."
export YANDEX_FOLDER_ID="b1g..."

Auth: Static API key

Set both env vars before starting Pi — no auth.json entry needed:

export YANDEX_API_KEY="your-api-key"
export YANDEX_FOLDER_ID="your-folder-id"

Models are fetched at startup using the API key. You can generate an API key in the Yandex AI Studio or in the Yandex Cloud console under Service accounts → your account → API keys.

Development & Testing

Run tests

bun test

Tests cover:

  • Model ID parsing from Yandex API response
  • OAuth → IAM token exchange
  • Header construction (Bearer tokens vs. API keys)
  • Error handling and timeouts
  • Model entry structure validation

Manual API verification

Before releasing, verify that the Yandex API is accessible and models are being fetched correctly:

# OAuth flow
YANDEX_OAUTH_TOKEN="<token>" YANDEX_FOLDER_ID="<id>" bun run verify.ts

# API key flow
YANDEX_API_KEY="<key>" YANDEX_FOLDER_ID="<id>" bun run verify.ts

The verification script:

  1. Tests IAM token exchange (OAuth only)
  2. Fetches the list of available models
  3. Tests connectivity to the model API endpoint
  4. Reports any 404 errors or misconfiguration

Build

bun run build

Outputs to dist/index.js.