

























Built-in AI, the right way
Building blocks for the Web's Built-in AI APIs. Composable, no runtime deps, just lifecycle, streaming, and AbortSignals. Vanilla TypeScript by default, with optional React hooks.
See the same task: 15 lines with the SDK vs 37 with the raw APIs →
runs100% on-device typesTypeScript native streamAsyncIterable licenseMIT deps0
Versions reflect when the underlying platform API became available. Wrapper exports stay stable across all browsers. OT = origin trial.
On Edge, only the Summarizer ships in stable. Prompt, Translator, Language Detector, and WebMCP are Canary/Dev-only or flag-gated at the versions shown.
05 · ship it
One install, all eight blocks. Or pick the individual @web-ai-sdk/* packages. Ships ESM, CJS, and types. Tree-shakable.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。