Skip to content
PluginStats

@easbot/local-model-sdk weekly downloads statistics

By easbot (3 listings) · npm · AI SDKs

Complete local model SDK for EASBot - Transformers.js + ONNX implementation supporting both Language Model (text generation) and Embedding (text embedding) with full AI SDK v3 compatibility

View on npm Fresh · Dec 6, 2026

@easbot/local-model-sdk has 1,174 recorded weekly downloads on npm, an increase of 662% over the past 30 days, ranking #2035 of 3,247 tracked listings.

Weekly downloads
1,174
Official API · Dec 5, 2026
7-day growth
-35.6%
-649 weekly downloads
30-day growth
+662%
+1K weekly downloads
90-day growth
+297%
+878 weekly downloads
Rank
#2035
▼ 223 in 7 days

About @easbot/local-model-sdk

English | 中文

Local Model SDK

基于 Transformers.js + ONNX 的本地模型 SDK,支持 Language Model(文本生成)和 Embedding(文本嵌入)功能,完全兼容 AI SDK 规范。

版本

v0.3.50

特性

  • ✅ Language Model 支持:基于 Transformers.js 的文本生成能力
  • ✅ Embedding 支持:高质量的文本嵌入向量生成
  • ✅ 流式生成:支持实时流式文本输出
  • ✅ 批量处理:高效的批量嵌入处理
  • ✅ 模型缓存:自动管理模型文件缓存
  • ✅ AI SDK 兼容:完全兼容 AI SDK v3 规范
  • ✅ TypeScript:完整的类型定义支持
  • ✅ 离线运行:无需网络连接,完全本地化

安装

pnpm add @easbot/local-model-sdk

快速开始

Language Model - 文本生成
import { LocalModelProvider } from '@easbot/local-model-sdk';
import { generateText } from 'ai';

// 创建 Provider
const provider = new LocalModelProvider({
  cacheDir: '.cache/models',
});

// 创建 Language Model
const model = provider.languageModel('qwen2.5-0.5b-instruct');

// 生成文本
const result = await generateText({
  model,
  prompt: 'What is the capital of France?',
});

console.log(result.text);
Language Model - 流式生成
import { streamText } from 'ai';

const result = streamText({
  model,
  prompt: 'Write a short story about a robot.',
});

for await (const chunk of result.textStream) {
  process.stdout.write(chunk);
}
Embedding - 文本嵌入
import { embed, embedMany } from 'ai';

const result = await embed({
  model: provider.embeddingModel('bge-small-zh-v1.5'),
  value: 'Hello world',
});

console.log(result.embedding);

const batchResult = await embedMany({
  model: provider.embeddingModel('bge-small-zh-v1.5'),
  values: ['Text 1', 'Text 2', 'Text 3'],
});

console.log(batchResult.embeddings);

支持的模型

Language Models
模型 ID描述参数量
qwen3-0.6bQwen3 0.6B 基础模型0.6B
qwen2.5-0.5b-instructQwen2.5 0.5B 指令模型0.5B
qwen2.5-1.5b-instructQwen2.5 1.5B 指令模型1.5B
qwen2.5-3b-instructQwen2.5 3B 指令模型3B
Embedding Models
模型 ID描述维度
bge-small-zh-v1.5BGE Small 中文模型512
bge-base-zh-v1.5BGE Base 中文模型768
bge-large-zh-v1.5BGE Large 中文模型1024

2026-09-23 PR-2 同步:embedding model 运行时依赖说明

@huggingface/transformers 的本地推理需要 onnxruntime-common 作为 native runtime。

  • 症状:status / probeEmbeddingDims 时报 Cannot find package 'onnxruntime-common' imported from @huggingface/transformers
  • 影响:probe 失败但 service fallback 到 config 中的 dim(如 768),搜索功能仍可用;仅是告警级别不阻塞
  • 修复:
    • 全量安装:pnpm add -w onnxruntime-common(推到 monorepo root,被所有包共享)
    • 或临时:跳过 probe(status 命令暂不主动探测)
    • 或用 remote embedding(OpenAI / 通义千问 / Ollama)替代本地 embedding
  • 长期:@easbot/local-model-sdk 的 package.json 应加 onnxruntime-common 为 optionalDependencies 让 pnpm 自动安装

开发

# 安装依赖
pnpm install

# 构建
pnpm build

# 测试
pnpm test

# 类型检查
pnpm type-check

许可证

MIT

Description from the npm listing.

  • easbot
  • local-model
  • language-model
  • embedding
  • transformers
  • onnx
  • qwen
  • bge
  • ai-sdk
  • text-generation
  • text-embedding
  • chinese-nlp
  • offline-ai
  • privacy-first

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

@easbot/local-model-sdk weekly downloads on npm, last 90 days: 1,174 weekly downloads as of Dec 5, 2026, +297% over 90 days.@easbot/local-model-sdkWeekly downloads on npm · Last 90 days1,174downloads / week+297% over 90 days05001K1.5K2KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@easbot/local-model-sdk weekly downloads on npm, last 90 days: 1,174 weekly downloads as of Dec 5, 2026, +297% over 90 days.

7/30/90-day growth

@easbot/local-model-sdk weekly downloads growth on npm: -35.6% over 7 days, +662% over 30 days, +297% over 90 days.@easbot/local-model-sdkWeekly downloads growth on npm1,174downloads / week now7-day growth-649 weekly downloads-35.6%30-day growth+1,020 weekly downloads+662%90-day growth+878 weekly downloads+297%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@easbot/local-model-sdk weekly downloads growth on npm: -35.6% over 7 days, +662% over 30 days, +297% over 90 days.

Ranking history

@easbot/local-model-sdk npm ranking history: currently #2035 (by weekly downloads).@easbot/local-model-sdknpm ranking · by weekly downloads · Last 90 days#2035current rank#1400#1600#1800#2000#2200#2400#2600Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 28 observations · Updated Dec 5, 2026pluginstats.com
@easbot/local-model-sdk npm ranking history: currently #2035 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 102, #15 (overall #2,035)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs378 listings · 19 pages · page 11, #16 (overall #216)
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 @easbot/local-model-sdk
Date (UTC)Weekly downloadsChange vs. previous
1,174+185
989-295
1,284-510
1,794+163
1,631+193
1,438-126
1,564-259
1,823-28
1,851+274
1,577+297
1,280-195
1,475-85
1,560-9
1,569—

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