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-fable-fusion

v0.1.0

Published

Local Fable Fusion-style multi-model panel and judge for Pi, using already configured Pi providers.

Readme

pi-fable-fusion

Local Fable Fusion-style multi-model pipeline for Pi, using providers already configured in Pi. No OpenRouter account is required.

Inspired by OpenRouter's Fusion announcement: run a panel of models in parallel, have a judge compare them, then stream a synthesis grounded in consensus, contradictions, partial coverage, unique insights, and blind spots. pi-fable-fusion does this locally through Pi's configured providers and credentials.

Install

Drop the directory into ~/.pi/agent/extensions/:

git clone <this-repo> ~/.pi/agent/extensions/pi-fable-fusion

Reload with /reload.

For one-off local development, run Pi with this extension explicitly:

pi -e ./index.ts

The current docs install Pi as @earendil-works/pi-coding-agent:

npm install -g --ignore-scripts @earendil-works/pi-coding-agent

This workspace is currently compatible with the locally installed @mariozechner/[email protected] package.

Typecheck (optional, pi loads via jiti at runtime):

cd ~/.pi/agent/extensions/pi-fable-fusion
npm install
npx tsc --noEmit

Smoke-test the judge parser + preset resolution:

bun test.ts

Prerequisites

pi-fable-fusion can use whatever providers you already configured in Pi. At least one provider must be available:

| Provider | How to log in | |---|---| | Anthropic (Claude Pro/Max) | /login -> "Claude Pro/Max" | | OpenAI (ChatGPT Plus/Pro Codex) | /login -> "ChatGPT Plus/Pro (Codex)" | | Google Gemini | export GEMINI_API_KEY=... or /login | | DeepSeek, Mistral, Groq, xAI, Kimi | respective API keys |

Run /fable-fusion-status to see which providers are wired up.

Usage

As a slash command

/fable-fusion Should I use Postgres or MongoDB for a read-heavy analytics workload?

Streams a synthesis grounded in the panel's structured agreement map.

As a tool the LLM can call

The LLM sees fable_fusion_run and may invoke it for hard questions:

"Compare JWT refresh token rotation strategies in FastAPI"

The LLM calls fable_fusion_run({question: "..."}), gets a structured analysis, writes the final answer.

As a synthetic model

/model pi-fable-fusion/quality

Then ask anything. The stream handler runs the panel+judge and streams the synthesis as if it were a single model.

Presets

| Preset | Panel | Judge | Cost | Use when | |---|---|---|---|---| | budget | Gemini Flash + GPT-5-mini + DeepSeek, filtered to configured providers | Best available configured judge | lower | You want a cheaper diverse panel | | quality (default) | Opus + GPT-5 + Gemini Pro, filtered to configured providers | Best available configured judge | higher | You want the strongest local panel | | configured | Pi's current configured model catalog, ranked for strong text models and provider diversity | Best available configured judge | varies | You want Pi to use whatever providers are already set up | | self | current model × 2 | current model | lowest | You only have one configured provider |

Switch preset with /fable-fusion-preset budget|quality|configured|self.

If a preset has members with no credentials, the runner drops them. If nothing survives, it falls back to self-fusion on the current model, so it works as long as one Pi provider is configured.

What the panel returns

The judge produces a JSON landscape:

{
  "consensus": "Points all or most models agreed on (treated as high-confidence).",
  "contradictions": [{"models": ["a", "b"], "conflict": "...", "resolution": "..."}],
  "partial_coverage": [{"model": "a", "gap": "...", "relevant_for": "..."}],
  "unique_insights": [{"model": "a", "insight": "...", "confidence": "high|medium|low"}],
  "blind_spots": [{"all_models": ["a","b","c"], "blind_spot": "..."}]
}

The outer model uses this as ground truth for the final synthesis. This follows the same contract shape as OpenRouter's Fusion, but runs through local Pi provider configuration.

If the selected outer synthesis model has no cached auth, pi-fable-fusion returns the structured analysis directly. If every judge candidate fails to return parseable JSON, it degrades to a transparent fallback analysis: healthy panel responses are surfaced as low-confidence unique insights, empty responses are marked as non-contributing partial coverage, and the blind spot states that the structured judge did not map contradictions.

Files

  • index.ts - entry. Registers the provider, tool, and commands.
  • commands.ts - tool and slash command registration.
  • provider.ts - synthetic /model pi-fable-fusion/<preset> provider.
  • state.ts - session model/auth cache.
  • synthesis.ts - final grounded synthesis stream.
  • runner.ts - the panel+judge pipeline (runPanel, runJudge, makeFusionRunner).
  • judge.ts - judge system prompt + tolerant JSON parser.
  • presets.ts - budget / quality / configured / self panel configs + availability resolution.

What this is NOT

  • Not a perfect reproduction of OpenRouter's pipeline (no server-side web_search/web_fetch for panel members; the panel is text-only).
  • Not a research benchmark. The preset model choices are local heuristics inspired by the OpenRouter blog, not measurements on your hardware.
  • Not a response_format-based JSON judge; the judge prompt asks for JSON and we parse tolerantly. Trade-off: works across all providers without per-provider schema gymnastics.
  • Not guaranteed to force every configured provider to produce usable text. Empty provider responses are treated as non-contributing panel members.

License

MIT. Use at your own risk. The pipeline calls N+1 models per question, so costs scale accordingly.