Skip to content
PluginStats

@winding-labs/griffin weekly downloads statistics

By winding-labs · npm · AI SDKs

See what every AI call in your app costs, then pay less for it. A drop-in fetch wrapper for OpenRouter, OpenAI, Anthropic, Gemini and more.

View on npm Fresh · Dec 6, 2026

@winding-labs/griffin has 5,182 recorded weekly downloads on npm, a change of +314% over the past 7 days, ranking #1516 of 3,247 tracked listings.

Weekly downloads
5,182
Official API · Dec 5, 2026
7-day growth
+314%
+3.9K weekly downloads
30-day growth
—
Insufficient history
90-day growth
—
Insufficient history
Rank
#1516
Among tracked npm listings

About @winding-labs/griffin

<p align="center"> <img src="assets/griffin.svg" width="240" alt="Griffin: a bald eagle with a white head and amber beak, perched on a stack of green coins"> </p> <h1 align="center">griffin.</h1> <p align="center"><b>Pay 60% less for the same AI.</b><br> Griffin moves a call to the cheaper model only where it passed your own replays.</p>
- fetch: fetch,
+ fetch: griffin({ workload: 'review' }),

Install

npx @winding-labs/griffin

That's the whole setup. The command signs you in (email, Google, Apple or GitHub), gives you a key for the current repo, and teaches your coding agent (Claude Code, Codex, Cursor, Freebuff, OpenCode, Gemini, Windsurf, Copilot, Amp) how to wrap your app's AI calls. Then ask it:

Use the griffin skill to wrap this app's AI calls.

Or skip the command and paste one line into any coding agent (Freebuff, Claude Code, Codex, Cursor):

Set up Griffin in this app: follow https://griffin.app/setup.md

It opens griffin.app in your browser, you approve, and it gets its own key. With no key yet, the wrapper passes every call straight to your provider, so the build, the tests and the app work as before.

Griffin is a drop-in fetch wrapper for the AI routers (OpenRouter, Router.com, Vercel AI Gateway, Cloudflare AI Gateway) and direct APIs (OpenAI, Anthropic, Gemini, Groq, Together, Fireworks, DeepSeek, xAI, Mistral). Zero dependencies. Node 18+, Bun, Deno, Cloudflare Workers, Vercel Edge.

How it works

  1. Install. Your agent wraps each AI call in one line and labels it with a workload. Griffin records each call after it finishes, never in your request path. If Griffin is down, your app doesn't notice.
  2. Watch. A free email every morning: spend by workload, and cheaper models graded on your real calls (Griffin replays them and a judge compares each answer with yours).
  3. Save with Griffin. One click routes only the workloads that passed. Everything else stays on your model, any error falls back to it, and if the edge is unreachable the SDK calls your provider directly.

In our own apps (IonWarp production traffic): 66% cheaper performance reviews, 82% cheaper follow-up turns, 15× cheaper security reviews.

Usage

import { griffin } from '@winding-labs/griffin';

OpenAI SDK (works for OpenRouter via baseURL too)

const openai = new OpenAI({ fetch: griffin({ workload: 'chat' }) });

Anthropic SDK

const anthropic = new Anthropic({ fetch: griffin({ workload: 'code-review' }) });

Vercel AI SDK

const openrouter = createOpenAICompatible({
  name: 'openrouter',
  baseURL: 'https://openrouter.ai/api/v1',
  apiKey: process.env.OPENROUTER_API_KEY,
  fetch: griffin({ workload: 'summarize' }),
});

Raw fetch on Cloudflare Workers (the SDK keeps its report alive with the runtime's own waitUntil; 0.6.2 and older needed waitUntil: ctx.waitUntil.bind(ctx))

const aiFetch = griffin({ key: env.GRIFFIN_KEY, workload: 'review' });
const res = await aiFetch('https://openrouter.ai/api/v1/chat/completions', { method: 'POST', headers, body });

One client, many features. Tag a call with a header (Griffin strips every x-griffin-* header before the provider sees it), or wrap a fetch with griffin.tag:

await openai.chat.completions.create(body, { headers: { 'x-griffin-workload': 'triage' } });
const triageFetch = griffin.tag('triage', griffin());
// a feature whose data must stay private (see Privacy): Griffin gets its cost, never its bodies
await openai.chat.completions.create(body, { headers: { 'x-griffin-workload': 'reply-classify', 'x-griffin-capture': 'metadata' } });
Options
OptionDefault
keyprocess.env.GRIFFIN_KEYYour griffin_sk_… key. No key means plain fetch (the first call logs one line saying so).
workloadShort kebab-case feature name: chat, review, carplay-generation. (useCase, its old name, still works.)
envproduction, staging, development.
repothe key's repoOwner/name.
waitUntilWorkers: the runtime'sKeeps the event post alive after the response. Not needed on Cloudflare Workers; Vercel: waitUntil from @vercel/functions.
capture'full''metadata' never sends request or response bodies: Griffin tests those calls in your app instead. See Privacy.
testtruefalse: never run Griffin's in-app tests on this wrapper's private calls (or tag one call x-griffin-test: off).
routetrue (false under capture: 'metadata')false: never send calls through the Griffin edge, even when the workspace routes. Observe only.
fetchglobal fetchThe fetch to wrap. withGriffin(fetch, opts) is the same thing.
baseUrlhttps://griffin.app

griffin.flush() waits for pending events, at most 2 s (griffin.flush(ms) for longer), for short-lived scripts and serverless handlers without waitUntil. extractUsage and assembleStream are exported for your own logging.

At high volume (more than ~5 calls a second per workspace) Griffin counts every call but sends only a sample in full: the others become counters (calls, errors, tokens, cost, latency) merged per minute and posted every 5 seconds. Totals stay exact; errors and the first calls of each workload per minute are always sent in full.

Guarantees
  • Only calls to known AI hosts are touched. Everything else passes through untouched.
  • No key, or any error inside Griffin: the call goes straight to your provider, unchanged.
  • Your app gets the provider's original Response. For streams, Griffin reads a copy in the background.
  • Your provider key is never captured. Through the routing edge it's forwarded, never stored.
If Griffin is down

Your AI calls keep working. Griffin being down, slow, erroring or misconfigured never breaks a call:…

Description from the npm listing.

  • ai
  • llm
  • openrouter
  • openai
  • anthropic
  • gemini
  • cost
  • observability
  • fetch
  • ai-sdk

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@winding-labs/griffin weekly downloads on npm, last 90 days: 5,182 weekly downloads as of Dec 5, 2026.@winding-labs/griffinWeekly downloads on npm · Last 90 days5,182downloads / week01K2K3K4K5K6KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@winding-labs/griffin weekly downloads on npm, last 90 days: 5,182 weekly downloads as of Dec 5, 2026.

7/30/90-day growth

@winding-labs/griffin weekly downloads growth on npm: +314% over 7 days, 30-day growth unavailable, 90-day growth unavailable.@winding-labs/griffinWeekly downloads growth on npm5,182downloads / week now7-day growth+3,931 weekly downloads+314%30-day growth+5,182 weekly downloadsInsufficient history90-day growth+5,182 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@winding-labs/griffin weekly downloads growth on npm: +314% over 7 days, 30-day growth unavailable, 90-day growth unavailable.

Ranking history

@winding-labs/griffin npm ranking history: currently #1516 (by weekly downloads).@winding-labs/griffinnpm ranking · by weekly downloads · Last 90 days#1516current rank#1360#1380#1400#1420#1440#1460#1480#1500#1520Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankDec 2, 2026 – Dec 6, 2026 · 5 observations · Updated Dec 5, 2026pluginstats.com
@winding-labs/griffin npm ranking history: currently #1516 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 76, #16 (overall #1,516)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs378 listings · 19 pages · page 6, #16 (overall #116)
AI SDKs: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (121)
Recent weekly downloads observations for @winding-labs/griffin
Date (UTC)Weekly downloadsChange vs. previous
5,182+26
5,156+416
4,740+500
4,240+497
3,743+549
3,194+1.1K
2,062+811
1,251+281
970-26
996+343
653+121
532+62
470+62
408—

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@winding-labs/griffin. First seen Dec 2, 2026; last successful collection Dec 6, 2026. See the methodology.