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

@zackify/pi-sambanova

v0.0.1

Published

A pi extension that adds SambaNova as an OpenAI-compatible model provider.

Readme

pi-sambanova

A reusable pi package that adds SambaNova as an OpenAI-compatible model provider.

Features

  • Adds the sambanova provider
  • Uses SambaCloud's OpenAI-compatible base URL: https://api.sambanova.ai/v1
  • Adds a bundled SambaNova model/pricing list by default
  • Includes per-model pricing for pi usage/cost display
  • Supports /login sambanova by prompting for a SambaNova API key
  • Supports SAMBANOVA_API_KEY as an environment variable
  • Adds /sambanova-models to fetch live model IDs from SambaNova's /v1/models endpoint and refresh the provider in the current session

Requirements

  • pi with extension/package support
  • A SambaNova API key from the SambaCloud portal

Install

From npm

After this package is published:

pi install npm:@zackify/pi-sambanova

Then reload pi:

/reload

Manual install

Copy the extension into your global pi extensions directory:

mkdir -p ~/.pi/agent/extensions/pi-sambanova
cp index.ts ~/.pi/agent/extensions/pi-sambanova/index.ts

Or install it only for one project:

mkdir -p .pi/extensions/pi-sambanova
cp index.ts .pi/extensions/pi-sambanova/index.ts

Then reload pi.

Login

Run:

/login sambanova

Paste your SambaNova API key when prompted. The extension opens the SambaCloud API page for convenience.

Alternatively, set an environment variable before starting pi:

export SAMBANOVA_API_KEY="your-key"
pi

Usage

After installing and logging in, select the model in pi:

/model

Choose any bundled SambaNova model, for example:

sambanova/MiniMax-M2.7

Bundled models:

| Model | Input / 1M tokens | Output / 1M tokens | | --- | ---: | ---: | | DeepSeek-R1-Distill-Llama-70B | $0.70 | $1.40 | | DeepSeek-V3.1-cb | $0.15 | $0.75 | | DeepSeek-V3.1 | $3.00 | $4.50 | | DeepSeek-V3.2 | $3.00 | $4.50 | | gemma-3-12b-it | $0.20 | $0.35 | | gpt-oss-120b | $0.22 | $0.59 | | Llama-4-Maverick-17B-128E-Instruct | $0.63 | $1.80 | | Meta-Llama-3.3-70B-Instruct | $0.60 | $1.20 | | MiniMax-M2.5 | $0.30 | $1.20 | | MiniMax-M2.7 | $0.60 | $2.40 |

To refresh live SambaNova model IDs and show known pricing:

/sambanova-models

Models without known pricing are still added, but show zero/unknown cost until pricing is added to the extension.

Notes

SambaNova is registered with pi's openai-completions API mode. The extension disables newer OpenAI-only request fields that many OpenAI-compatible providers reject, such as developer role and reasoning_effort.

Releasing

This repository includes a GitHub Actions workflow that publishes to npm when a GitHub release is created.

  1. Add an NPM_TOKEN repository secret.
  2. Create a GitHub release named like v1.2.3 or 1.2.3.
  3. The workflow sets package.json to that version and runs npm publish --provenance --access public.

Files

  • index.ts — extension source
  • package.json — pi package metadata for @zackify/pi-sambanova, including the pi-package keyword
  • .github/workflows/publish.yml — npm publish workflow