Skip to content
PluginStats

@codeworksh/aikit weekly downloads statistics

By codeworksh (3 listings) · npm · AI SDKs

TypeScript SDK that provides a unified API for working with multiple LLM providers, automatic model discovery, and more.

View on npm Fresh · Dec 6, 2026

@codeworksh/aikit has 4,142 recorded weekly downloads on npm, a decrease of 33.5% over the past 30 days, ranking #1599 of 3,247 tracked listings.

Weekly downloads
4,142
Official API · Dec 5, 2026
7-day growth
+77.0%
+1.8K weekly downloads
30-day growth
-33.5%
-2.1K weekly downloads
90-day growth
+1211%
+3.8K weekly downloads
Rank
#1599
▲ 143 in 7 days

About @codeworksh/aikit

@codeworksh/aikit

aikit is the model layer of CodeWork: one message and event shape over many LLM providers, a model catalog with pricing, and cost tracking per message. The CodeWork harness makes every model call through it, and you can use it on its own when you want streaming primitives and to run the loop yourself.

pnpm add @codeworksh/aikit

Node 22 or later is required.

Quick Start

import { llm, Message, stream } from "@codeworksh/aikit";

const model = await llm("anthropic", "claude-haiku-4-5");
if (!model) throw new Error("Model not in the catalog");

const context: Message.Context = {
	systemPrompt: "You are a helpful coding assistant.",
	messages: [
		Message.createUserMessage({
			role: "user",
			time: { created: Date.now() },
			parts: [{ type: "text", text: "Write a loop in TypeScript." }],
		}),
	],
};

// The key is read from ANTHROPIC_API_KEY unless you pass { apiKey }.
const s = stream(model, context);
for await (const event of s) {
	if (event.type === "text.delta") process.stdout.write(event.delta);
}

const message = await s.result();
console.log(message.stopReason, message.usage.cost.total);

A failed request does not throw. The stream ends with an error event, and the final message has stopReason: "error" and an errorMessage. stream.complete(model, context) skips the events and resolves the final message.

What It Owns

aikit owns the wire shape (Message, Event), the provider adapters, the catalog format, error normalization and cost. Protocols: anthropic, openai, openai-codex, github-copilot, openrouter, google, google-vertex, google-vertex-anthropic, xai and openai-compatible. The transport underneath is the AI SDK.

It depends on no other CodeWork package and does not use Effect. The harness depends on it, never the reverse, so aikit stays a plain library anyone can embed. Where credentials live, how fresh the catalog is, and retries belong to the embedder.

A session can switch models between turns. aikit replays signatures and reasoning only to the provider that produced them, so one vendor's opaque state never reaches another.

The Model Catalog

llm(provider, model) looks a model up in ./models.gen.json, or the file CODEWORK_MODELS_FILE names. A bundled baseline covers anthropic, openai and openrouter, so a first run works with no file at all. llm.providers() and llm.models(provider) list what the catalog has.

The package ships an aikit binary:

aikit modelgen [path]               # build the catalog from models.dev and OpenRouter's listing
aikit auth --openai-codex           # OAuth login; --device for a device code, --status, --refresh, --logout
aikit auth --github-copilot         # device flow; --enterprise <domain> for GitHub Enterprise

Code Map

Working Locally

From packages/aikit:

pnpm test        # unit tests
pnpm test:e2e    # also runs test/e2e, which calls live providers
pnpm typecheck
pnpm build       # vp pack
pnpm cli modelgen

For the rules on credentials, catalog publishing and adding a protocol, see docs/internals/03_models.md.

Description from the npm listing.

  • agent
  • ai
  • ai-sdk
  • anthropic
  • grok
  • harness
  • llm
  • node
  • openai

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

@codeworksh/aikit weekly downloads on npm, last 90 days: 4,142 weekly downloads as of Dec 5, 2026, +1211% over 90 days.@codeworksh/aikitWeekly downloads on npm · Last 90 days4,142downloads / week+1211% over 90 days02K4K6K8KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@codeworksh/aikit weekly downloads on npm, last 90 days: 4,142 weekly downloads as of Dec 5, 2026, +1211% over 90 days.

7/30/90-day growth

@codeworksh/aikit weekly downloads growth on npm: +77.0% over 7 days, -33.5% over 30 days, +1211% over 90 days.@codeworksh/aikitWeekly downloads growth on npm4,142downloads / week now7-day growth+1,802 weekly downloads+77.0%30-day growth-2,089 weekly downloads-33.5%90-day growth+3,826 weekly downloads+1211%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@codeworksh/aikit weekly downloads growth on npm: +77.0% over 7 days, -33.5% over 30 days, +1211% over 90 days.

Ranking history

@codeworksh/aikit npm ranking history: currently #1599 (by weekly downloads).@codeworksh/aikitnpm ranking · by weekly downloads · Last 90 days#1599current rank#1200#1400#1600#1800#2000#2200Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 42 observations · Updated Dec 5, 2026pluginstats.com
@codeworksh/aikit npm ranking history: currently #1599 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 80, #19 (overall #1,599)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs378 listings · 19 pages · page 7, #9 (overall #129)
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 (170)
Recent weekly downloads observations for @codeworksh/aikit
Date (UTC)Weekly downloadsChange vs. previous
4,142+413
3,729-391
4,120+7
4,113+796
3,317+302
3,015+66
2,949+609
2,340+291
2,049+457
1,592+196
1,396+326
1,070+200
870+77
793—

Similar npm AI SDKs plugins

All 20 @codeworksh/aikit alternatives

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/@codeworksh/aikit. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.