技能潮 SkillTide 提交收录
官方说明3 个来源MCP 服务3 天前
s2-streamstore/s2-sdk-typescript

s2-streamstore/s2-sdk-typescript

TypeScript SDK for S2, the durable streams API
在 GitHub 查看 ↗直链 · 无中转页
来源明细
收录自 abordage/awesome-mcp 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
收录与活跃
收录于 2026-10-14 · 最近见到 2026-10-16 · 共见到 4 次 · 被 3 个来源列出
评分构成
综合分 303 · 3 个来源 · mcp
常见问题(答案都来自我们的记录)
怎么安装?
我们【没有】从该仓库取到安装命令(我们的 install 覆盖率只有约 4%)。请看它的 README 或 releases 页。
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
我们收录于 2026-10-14;最近见到 2026-10-16。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
第三方质量标记

TypeScript SDK for S2

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

This repo contains the official TypeScript SDK for S2, a serverless data store for streams, built on the service's REST API.
S2 is a managed service that provides unlimited, durable streams.
Streams can be appended to, with all new records added to the tail of the stream. You can read from any portion of a stream – indexing by record sequence number, or timestamp – and follow updates live.
See it in action on the playground.
**Quick links:**
- Runnable examples directory
- Patterns package
- SDK documentation
- S2 REST API documentation
> **Note:** The repository for releases prior to 0.16.x can be found at this link.
Install
Quick start
Want to get up and running? Head to the S2 dashboard to sign-up and grab an access key, and create a new "basin" from the UI.
Then define the following environment variables respectively:
From there, you can run the following snippet (or any of the other examples).
Development
Run examples:
Run tests:
The SDK also ships with a basic browser example, to experiment with using the SDK directly from the web.
Using S2
S2 SDKs, including this TypeScript one, provide high-level abstractions and conveniences over the core REST API.
Account and basin operations
The account and basin APIs allow for CRUD ops on basins (namespaces of streams), streams, granular access tokens, and more.
Data plane (stream) operations
The core SDK verbs are around appending data to streams, reading data from them.
See the examples and documentation for more details.
Below are some high level notes on how to interact with the data plane.
Appends
The atomic unit of append is an AppendInput, which contains a batch of AppendRecords and some optional additional parameters.
Records contain a body and optional headers. After an append completes, each record will be assigned a sequence number (and a timestamp).
Append sessions (ordered, stateful appends)
Use an AppendSession when you want higher throughput and ordering guarantees:
- It is stateful and enforces that the order you submit batches becomes the order on the stream.
- It supports pipelining submissions while still preserving ordering (especially with the s2s transport).
Producer
Streams can support up to 200 appended batches per second (per single stream), but tens of MiB/second.
For throughput, you typically want fewer, but larger batches.
The Producer API simplifies this by connecting an appendSession with an auto-batcher (via BatchTransform), which lingers and accumulates records for a configurable amount of time. This is the recommended path for most high-throughput writers.
Read sessions
Read operations, similarly, can be done via individual read calls, or via a readSession.
Use a session whenever you want:
- to read more than a single response batch (responses larger than 1 MiB),
- to keep a session open and tail for new data (omit stop criteria).
Client configuration
Retries and append retry policy
- appendRetryPolicy: "noSideEffects" only retries appends that are naturally idempotent via matchSeqNum.
来源
awesome · https://github.com/s2-streamstore/s2-sdk-typescript
按领域浏览
MCP 服务
收录于
昨天

更多MCP 服务

查看MCP 服务全部 5,525 条 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引