‹ 返回总目录
工具 最近更新08-02

adr-skill

| 2026-08-01 收录

☆ 收藏
🛒 📚 AI提效实战指南 · 图解Skill🛒 📱 大流量手机卡 · 低月租📣 加入推广 · 佣金80-300/张 ›

🛍️ 更多精选好物 ›

📊 公开数据一览

📦 榜单安装量1.7K
⭐ GitHub Stars25,961(fork 4896)
🗓️ 最近推送2026-08-02
🌱 项目创建2023-05-23
💻 语言 / LicenseTypeScript · NOASSERTION
🐛 开放Issue1715

📝 工具简介

基于Next.js的AI SDK,免费开源,用于构建AI应用和代理。

📖 怎么用

先确保本地有 Node.js 22+ 和 npm,然后跑 `npm install ai` 装核心包,再用 `npx skills add vercel/ai` 把技能加进项目。想用具体模型商,再跑 `npm install @ai-sdk/openai @ai-sdk/anthropic @ai-sdk/google`。代码里直接 `import { anthropic } from '@ai-sdk/anthropic'`,然后调 `generateText({ model: anthropic('claude-opus-4-6'), prompt: 'Hello!' })` 就能生成文本。README未说明初始化步骤。

📋 迷你测评

基于Next.js的AI SDK,免费开源,用于构建AI应用和代理。亮点是直接嵌进Next.js生态,省去额外框架。适合已经用Next.js做前端的团队快速加AI层。

📄 README 要点

这是Vercel出的AI SDK,一个跟具体厂商无关的TypeScript工具包,让你用Next.js、React、Svelte这些前端框架快速搭AI应用和智能体。它有个统一接口,能连OpenAI、Anthropic、Google这些模型提供商,默认走Vercel AI Gateway,传个模型字符串就能用。安装需要Node.js 22以上和npm,装好后还能给Claude Code或Cursor这类编码代理加个技能,让它们直接用AI SDK。适合想在前端项目里快速集成AI功能的开发者,省去对接各家API的麻烦。

查看英文原文
AI SDK The AI SDK is a provider agnostic TypeScript toolkit designed to help you build AI powered applications and agents using popular UI frameworks like Next.js, React, Svelte, Vue, Angular, and runtimes like Node.js. To learn more about how to use the AI SDK, check out our API Reference and Documentation. Installation You will need Node.js 22+ and npm (or another package manager) installed on your local development machine. [安装/使用命令见下方] Skill for Coding Agents If you use coding agents such as Claude Code or Cursor, we highly recommend adding the AI SDK skill to your repository: [安装/使用命令见下方] Unified Provider Architecture The AI SDK provides a unified API to interact with model providers like OpenAI, Anthropic, Google, and more. By default, the AI SDK uses the Vercel AI Gateway to give you access to all major providers out of the box. Just pass a model string for any supported model: [安装/使用命令见下方] You can also connect to providers directly using their SDK packages: [安装/使用命令见下方] [安装/使用命令见下方] Usage Generating Text [安装/使用命令见下方] Generating Structured Data [安装/使用命令见下方] Agents [安装/使用命令见下方] UI Integration The AI SDK UI module provides a set of hooks that help you build chatbots and generative user interfaces. These hooks are framework agnostic, so they can be used in Next.js, React, Svelte, and Vue. You need to install the package for your framework, e.g.: [安装/使用命令见下方] Agent @/agent/image generation agent.ts [安装/使用命令见下方] Route (Next.js App Router) @/app/api/chat/route.ts [安装/使用命令见下方] UI Component for Tool @/component/image generation view.tsx [安装/使用命令见下方] Page @/app/page.tsx [安装/使用命令见下方] Templates We've built templates that include AI SDK integrations for different use cases, providers, and frameworks. You can use these templates to get started with your AI powered application. Community The AI SDK community can be found on the Vercel Community where you can ask questions, voice ideas, and share your projects with other people. Contributing Contributions to the AI SDK are

💬 评论(0)

交流使用体验、避坑建议;违规内容将被删除

💬 意见反馈 / 联系客服

数据来源:skills.sh 榜单 + GitHub 公开数据,非人工实测,仅供参考