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

@snehalyelmati/pi-doubleword-provider

v0.1.4

Published

Pi extension for the Doubleword model provider.

Readme

Pi Doubleword Provider

Pi extension for the Doubleword realtime and async model provider.

Doubleword models in Pi

Doubleword provides model inference with multiple execution tiers. This extension registers the live doubleword provider, discovers available models from Doubleword when an API key is present, and lets you toggle realtime vs async execution from inside Pi.

Why Doubleword?

Doubleword's APIs are OpenAI-compatible and let you trade latency for lower cost:

  • Realtime / priority: immediate responses for interactive coding.
  • Async / flex: reduced pricing with background polling; Doubleword docs say submitted async work starts within about a minute.
  • Batch: lowest pricing for bulk jobs with a 24h SLA.

Example published prices per 1M input/output tokens:

| Model | Realtime | Async | Batch | | --- | --- | --- | --- | | DeepSeek V4 Flash | $0.14 / $0.28 | $0.10 / $0.20 | $0.07 / $0.14 | | GLM 5.2 | $1.40 / $4.40 | $1.05 / $3.30 | $0.70 / $2.20 |

This provider exposes realtime and async in Pi; batch is better suited for offline evals and bulk jobs.

Install

pi install npm:@snehalyelmati/pi-doubleword-provider

Quick start

export DOUBLEWORD_API_KEY=...
pi --model doubleword/deepseek-ai/DeepSeek-V4-Flash

Use Alt+T or /doubleword-mode to toggle realtime vs async execution for Doubleword models.

Supported Doubleword generation models use medium reasoning by default. Press Shift+Tab to change thinking depth or turn reasoning off; the provider sends the selected level to Doubleword as reasoning_effort.

Configuration

Required for live models:

DOUBLEWORD_API_KEY                 live API key

Optional overrides:

DOUBLEWORD_BASE_URL                override API base URL
DOUBLEWORD_MODEL_CACHE_FILE        override cached /models catalog path
DOUBLEWORD_MAX_OUTPUT_TOKENS       override default 16384 output cap
DOUBLEWORD_LIVE_ASYNC_TIMEOUT_MS   override default 600000 async timeout
DOUBLEWORD_LIVE_ASYNC_POLL_MS      override default 2000 poll interval
DOUBLEWORD_CANCEL_TIMEOUT_MS       override default 10000 cancel request timeout
DOUBLEWORD_EXECUTION_MODE          realtime or async; defaults to realtime

Capabilities

  • Registers the live doubleword provider in Pi.
  • Discovers models from Doubleword /models and caches the catalog locally.
  • Falls back to a small known model list when discovery is unavailable.
  • Supports realtime priority execution and async/flex background polling.
  • Marks registered Doubleword models with Fanout tier metadata for realtime, async, and batch.
  • Sends top-level Doubleword reasoning_effort for reasoning-capable models; OCR/embedding models are marked non-reasoning.
  • Converts Doubleword reasoning output into Pi thinking blocks.
  • Supports Responses function-call tool use.
  • Reports usage/cost metadata when returned by the provider.
  • Best-effort cancels async background responses on timeout or user abort.

Development

The repo contains a doubleword-stub provider for local smoke tests. It is enabled only by development entrypoints, not by the published standalone provider package.

From the repo root:

pi -e . --model doubleword-stub/deepseek-v4-flash

Limitations

  • Live use requires a Doubleword API key.
  • Async responses are delivered after polling completes; token streaming before completion is not assumed.