webkubor

AI Sse Kit — AI skill for Claude Code

AI community

AI 流式接收工具包:SSE 分帧、协议适配(OpenAI / Anthropic / 自定义)、消息不可变 patch 与取消生命周期.

How to install AI Sse Kit

This entry records only its repository, not the path inside it, so there is no exact command to give. Open webkubor/ai-sse-kit and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What AI Sse Kit does

AI 流式接收工具包:SSE 分帧、协议适配(OpenAI / Anthropic / 自定义)、消息不可变 patch 与取消生命周期。· Framework-agnostic AI streaming toolkit: SSE framing, protocol adapters, immutable patches.

Alternatives in AI

  • WindsurfAPI — Turn Windsurf / Devin Desktop's 100+ AI models (Claude, GPT, Gemini, DeepSeek, Kimi, GLM, SWE) into OpenAI-, A 3k ★
  • Vllm Mlx — High-performance OpenAI and Anthropic compatible LLM inference server for Apple Silicon 1.5k ★
  • Claude To ChatGPT — This project converts the API of Anthropic's Claude model to the OpenAI Chat API format 1.3k ★

README

English | 中文

🔌 ai-sse-kit

版本 下载 License CI npm npm 下载

**给「后端在自己手里」的项目做 AI 流式接收。** SSE 分帧、协议适配、消息不可变 patch、 取消生命周期——四件事,框架无关,React / Vue 各一个薄绑定。

**不做** provider 抽象、不做 agent / tool calling、不做消息状态托管、不绑部署平台。

npm install ai-sse-kit

先判断要不要用它

这个包只覆盖「**你的后端已经在吐 SSE,前端要把它变成界面**」这一段。

你的情况 用什么
前端直连 OpenAI / Anthropic / DeepSeek 等厂商 Vercel AI SDK(provider 抽象、AI Gateway 都是现成的)
要 agent 循环、tool calling、RAG 编排 Vercel AI SDK / TanStack AI / LangChain.js
想要一个 useChat 直接出聊天界面 Vercel AI SDK 的 useChat
后端是自己的网关,只需要前端可靠地收流、拼消息、能取消 这个包
只想要一个 SSE 解析器,别的都不要 eventsource-parser

差别在于:**你的后端已经决定了协议和鉴权**,前端不需要再套一层 provider 抽象——套了反而 要为自家网关写 custom provider。这个包假设那一层归你,只把 fetch → 分帧 → patch → 取