Skip to content
PluginStats

@opentiny/tiny-robot-kit weekly downloads statistics

By opentiny · npm · AI SDKs

AI大模型请求与数据处理工具包

View on npm Fresh · Dec 6, 2026

@opentiny/tiny-robot-kit has 2,495 recorded weekly downloads on npm, an increase of 14.3% over the past 30 days, ranking #1815 of 3,247 tracked listings.

Weekly downloads
2,495
Official API · Dec 5, 2026
7-day growth
+39.2%
+703 weekly downloads
30-day growth
+14.3%
+313 weekly downloads
90-day growth
+89.0%
+1.2K weekly downloads
Rank
#1815
▼ 1 in 7 days

About @opentiny/tiny-robot-kit

tiny-robot-kit

@opentiny/tiny-robot-kit 是 TinyRobot 提供的数据层工具包,用于统一处理 AI 大模型调用、消息状态与多会话管理。 它帮助你在任意 UI 上快速实现聊天、流式响应和会话持久化等常见 AI 交互能力。

功能概览

  • 消息管理:useMessage 管理消息状态与模型交互流程。
  • 会话管理:useConversation 在 useMessage 之上提供多会话能力。
  • 工具函数(Utils):处理 SSE、消息格式与响应解析。

完整 API 请参考文档:

安装

pnpm add @opentiny/tiny-robot-kit
# 或
npm install @opentiny/tiny-robot-kit
yarn add @opentiny/tiny-robot-kit

基本用法

useMessage —— 管理 AI 消息

useMessage 管理消息列表、请求/处理状态、流式响应、插件体系以及工具调用逻辑,而真正的 HTTP 请求由你提供的 responseProvider 负责。

import { useMessage } from '@opentiny/tiny-robot-kit'

const message = useMessage({
  // responseProvider 负责调用你的后端 / 模型接口
  async responseProvider(requestBody, abortSignal) {
    const res = await fetch('/api/chat', {
      method: 'POST',
      body: JSON.stringify(requestBody),
      signal: abortSignal,
      headers: { 'Content-Type': 'application/json' },
    })

    return await res.json()
  },
})

更多进阶用法(流式响应、插件、自定义分块(chunk)处理、工具调用等),请查看 https://docs.opentiny.design/tiny-robot/tools/message。

useConversation —— 管理多会话

useConversation 基于 useMessage 之上,提供多会话管理能力,并支持多种存储策略(LocalStorage、IndexedDB、自定义等)。

import { useConversation } from '@opentiny/tiny-robot-kit'

const { conversations, activeConversation, createConversation, switchConversation } = useConversation({
  useMessageOptions: {
    async responseProvider(requestBody, abortSignal) {
      const res = await fetch('/api/chat', {
        method: 'POST',
        body: JSON.stringify(requestBody),
        signal: abortSignal,
        headers: { 'Content-Type': 'application/json' },
      })
      return await res.json()
    },
  },
})

例如 localStorageStrategyFactory 和 indexedDBStorageStrategyFactory 等存储策略的详细用法,请参考 https://docs.opentiny.design/tiny-robot/tools/conversation。

工具函数 Utils —— 处理 SSE 与响应

Utils 模块提供了一些与 useMessage 搭配使用的常用工具函数:

  • sseStreamToGenerator:把 SSE Response 转换为异步生成器。
  • formatMessages:将多种形式的消息统一为 ChatMessage[]。
  • extractTextFromResponse:从大模型响应中提取纯文本内容。
  • handleSSEStream:通过回调方式消费 SSE 流式响应。

详细函数签名与行为说明,请查看 https://docs.opentiny.design/tiny-robot/tools/utils。

Description from the npm listing.

  • vue
  • vue3
  • ai
  • ai-client
  • ai-sdk
  • chat
  • chatbot
  • llm
  • openai
  • assistant
  • streaming
  • composables
  • conversation
  • model-provider
  • tiny-robot
  • opentiny

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

@opentiny/tiny-robot-kit weekly downloads on npm, last 90 days: 2,495 weekly downloads as of Dec 5, 2026, +89.0% over 90 days.@opentiny/tiny-robot-kitWeekly downloads on npm · Last 90 days2,495downloads / week+89.0% over 90 days05001K1.5K2K2.5K3KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@opentiny/tiny-robot-kit weekly downloads on npm, last 90 days: 2,495 weekly downloads as of Dec 5, 2026, +89.0% over 90 days.

7/30/90-day growth

@opentiny/tiny-robot-kit weekly downloads growth on npm: +39.2% over 7 days, +14.3% over 30 days, +89.0% over 90 days.@opentiny/tiny-robot-kitWeekly downloads growth on npm2,495downloads / week now7-day growth+703 weekly downloads+39.2%30-day growth+313 weekly downloads+14.3%90-day growth+1,175 weekly downloads+89.0%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@opentiny/tiny-robot-kit weekly downloads growth on npm: +39.2% over 7 days, +14.3% over 30 days, +89.0% over 90 days.

Ranking history

@opentiny/tiny-robot-kit npm ranking history: currently #1815 (by weekly downloads).@opentiny/tiny-robot-kitnpm ranking · by weekly downloads · Last 90 days#1815current rank#1400#1500#1600#1700#1800#1900Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 43 observations · Updated Dec 5, 2026pluginstats.com
@opentiny/tiny-robot-kit npm ranking history: currently #1815 (by weekly downloads).

Listing placement

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

Listing placement

AI SDKs378 listings · 19 pages · page 9, #6 (overall #166)
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 @opentiny/tiny-robot-kit
Date (UTC)Weekly downloadsChange vs. previous
2,495+400
2,095-499
2,594-128
2,722+149
2,573+49
2,524+718
1,806+14
1,792-3
1,795+350
1,445-40
1,485-140
1,625+162
1,463-69
1,532—

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