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-sdsc-vllm

v0.1.3

Published

Pi extension for the SDSC Authentik-protected OpenAI-compatible vLLM gateway.

Readme

SDSC vLLM Pi Extension

Pi package for the SDSC Authentik-protected, OpenAI-compatible vLLM gateway.

It registers a provider, supports /login via Authentik OIDC device flow, and discovers available models from the gateway's /v1/models endpoint when possible.

Install from git

pi install npm:pi-sdsc-vllm

For project-local installation, run:

pi install -l npm:pi-sdsc-vllm

Use

Start Pi and log in:

/login sdsc-vllm

Pi will show the Authentik device code and verification URL. After login, choose a model with /model.

To inspect the full registered configuration for the current SDSC model, run:

/sdsc-vllm-config

You can also filter by model id substring:

/sdsc-vllm-config Qwen

Requests are sent to the vLLM gateway with:

Authorization: Bearer <authentik-access-token>

Defaults

The package is preconfigured for the SDSC RunAI shared vLLM gateway:

  • Authentik issuer: https://authentik-server-runai-sharedllm-ralf.inference.compute.datascience.ch/application/o/vllm/
  • vLLM base URL: https://vllm-gateway-runai-sharedllm-ralf.inference.compute.datascience.ch/v1
  • Provider id: sdsc-vllm

Models are auto-discovered from the gateway's OpenAI-compatible /models endpoint. If unauthenticated startup discovery fails, Pi falls back to bundled defaults until /login sdsc-vllm succeeds, then refreshes the model list using the access token. On later Pi startup/resume, the extension also asks Pi for the stored OAuth API key, letting Pi refresh the token if needed, and then re-fetches /models with that token.

The extension consumes these optional per-model metadata fields from /models when present:

{
  "id": "Qwen/Qwen3.6-35B-A3B-FP8",
  "name": "Qwen 3.6 35B FP8",
  "context_window": 262144,
  "contextWindow": 262144,
  "context_length": 262144,
  "max_model_len": 262144,
  "max_tokens": 8192,
  "maxTokens": 8192,
  "reasoning": true,
  "input": ["text"],
  "compat": {
    "thinkingFormat": "qwen"
  }
}

Configuration

Optional environment variables:

export SDSC_AUTHENTIK_ISSUER="https://.../application/o/vllm/"
export SDSC_AUTHENTIK_CLIENT_ID="<client-id>"
export SDSC_AUTHENTIK_CLIENT_SECRET="<secret>"        # only for confidential clients
export SDSC_AUTHENTIK_SCOPES="openid profile email"  # default

export SDSC_VLLM_BASE_URL="https://.../v1"
export SDSC_VLLM_PROVIDER="sdsc-vllm"
export SDSC_VLLM_PROVIDER_NAME="SDSC vLLM Gateway"
export SDSC_VLLM_API_KEY="<fallback-token>"          # optional startup discovery/fallback key
export SDSC_VLLM_CONTEXT_WINDOW=128000
export SDSC_VLLM_MAX_TOKENS=8192
export SDSC_VLLM_DISCOVER_MODELS=false               # disable auto-discovery

Set SDSC_VLLM_MODELS to override auto-discovery entirely:

export SDSC_VLLM_MODELS="model-a,model-b"

or JSON:

export SDSC_VLLM_MODELS='[{"id":"llama-3.3-70b","name":"Llama 3.3 70B","contextWindow":128000,"maxTokens":8192}]'

Development

This repo is also usable directly while developing:

pi -e ./extensions/sdsc-vllm/index.ts --list-models

The .pi/extensions/authentik-vllm/index.ts file is only a local development shim that re-exports the packaged extension.