@opentiny/tiny-robot-kit has 324 recorded weekly downloads on npm, a decrease of 62.6% over the past 30 days.
It ranks #1546 of 2,256 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by -65.6%.
PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.
About @opentiny/tiny-robot-kit
tiny-robot-kit
@opentiny/tiny-robot-kit 是 TinyRobot 提供的数据层工具包,用于统一处理 AI 大模型调用、消息状态与多会话管理。 它帮助你在任意 UI 上快速实现聊天、流式响应和会话持久化等常见 AI 交互能力。
功能概览
• 消息管理:useMessage 管理消息状态与模型交互流程。 • 会话管理:useConversation 在 useMessage 之上提供多会话能力。 • 工具函数(Utils):处理 SSE、消息格式与响应解析。
完整 API 请参考文档:
• useMessage: • useConversation: • 工具函数:
安装
基本用法
useMessage —— 管理 AI 消息
useMessage 管理消息列表、请求/处理状态、流式响应、插件体系以及工具调用逻辑,而真正的 HTTP 请求由你提供的 responseProvider 负责。
更多进阶用法(流式响应、插件、自定义分块(chunk)处理、工具调用等),请查看 。
useConversation —— 管理多会话
useConversation 基于 useMessage 之上,提供多会话管理能力,并支持多种存储策略(LocalStorage、IndexedDB、自定义等)。
例如 localStorageStrategyFactory 和 indexedDBStorageStrategyFactory 等存储策略的详细用法,请参考 。
工具函数 Utils —— 处理 SSE 与响应
Utils 模块提供了一些与 useMessage 搭配使用的常用工具函数:
• sseStreamToGenerator:把 SSE Response 转换为异步生成器。 • formatMessages:将多种形式的消息统一为 ChatMessage[]。 • extractTextFromResponse:从大模型响应中提取纯文本内容。 • handleSSEStream:通过回调方式消费 SSE 流式响应。
详细函数签名与行为说明,请查看 。
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
Where @opentiny/tiny-robot-kit sits in the listing
Each band is one page of 20. Weekly downloads on a log 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.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
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.
Recent observations
Full history (121)Similar npm AI SDKs plugins
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 Oct 19, 2026. See the methodology.