内容
# 非常前沿代码
[](https://www.npmjs.com/package/veryfront)
[](https://socket.dev/npm/package/veryfront)
[](./LICENSE)
**让您的代理开始工作。**
非常前沿代码(Veryfront Code)是一个全栈框架,用于使用TypeScript和React构建人工智能驱动的应用程序和代理。
它为您提供了代理、工具、工作流程和完整的React渲染栈,全部集成在一个框架中。非常前沿代码可以在Node.js、Deno和Bun上运行,并且可以部署在任何地方,或通过非常前沿平台(Veryfront platform)进行部署,该平台提供内置的预览环境和生产托管。
<p align="center">
<img src="./assets/banner.svg" alt="非常前沿" width="100%">
</p>
## 开始使用
创建新的非常前沿代码应用:
```bash
npm create veryfront
```
<details>
<summary>使用其他包管理器</summary>
```bash
pnpm create veryfront
yarn create veryfront
bun create veryfront
deno init --npm veryfront
```
</details>
直接从模板开始:
```bash
npx veryfront init <项目名称> --template <模板>
```
可用启动器:`ai-agent`、`minimal`、`agentic-workflow`。
安装 `veryfront` 二进制文件用于本地开发命令和 TUI:
```bash
curl -fsSL https://veryfront.com/install.sh | sh
# 或
brew install veryfront/tap/veryfront
```
遵循[快速入门指南](https://veryfront.com/docs/code/getting-started/quickstart)以构建您的第一个应用程序。有关项目设置选项和模板详细信息,请参阅[创建项目](https://veryfront.com/docs/code/getting-started/create-a-project)。有关完整文档,请访问 [veryfront.com/docs/code](https://veryfront.com/docs/code)。
## 为什么选择非常前沿代码?
专为TypeScript和React设计,非常前沿代码为您提供了构建智能全栈应用程序所需的一切,开箱即用。
- [**代理**](https://veryfront.com/docs/code/guides/agents) - 构建能够推理和行动的AI代理。给予他们指令、模型、工具、技能、记忆和持久的主机执行。
- [**技能**](https://veryfront.com/docs/code/guides/skills) - 使用 `SKILL.md` 文件为项目级代理功能添加能力。技能包包含指令、允许的工具和脚本。
- [**工具**](https://veryfront.com/docs/code/guides/tools) - 定义Zod验证的函数,代理可以调用。工具从文件中发现,因此您无需手动注册。
- [**提示**](https://veryfront.com/docs/code/concepts/prompt) - 在代理、工具、MCP服务器和应用程序代码中重用命名提示模板。
- [**知识**](https://veryfront.com/docs/code/guides/cli-knowledge-ingestion) - 将源文档转换为项目知识文件,代理可以将其用作上下文。
- [**记忆和流媒体**](https://veryfront.com/docs/code/guides/memory-and-streaming) - 为代理提供对话历史、流式响应和React聊天UI组件,并支持AG-UI。
- [**多代理系统**](https://veryfront.com/docs/code/guides/multi-agent) - 编写协调工作的编排器和子代理,作为工具相互委托。
- [**任务**](https://veryfront.com/docs/code/guides/tasks) - 定义文件型后台作业,非常前沿代码发现并运行它们作为任务执行。
- [**工作流程**](https://veryfront.com/docs/code/guides/workflows) - 使用分支、并行步骤、审批门和持久Redis检查点编排多步骤AI管道。
- [**运行**](https://veryfront.com/docs/code/guides/runs) - 通过项目范围的运行记录执行持久任务、工作流和代理工作。
- [**MCP服务器**](https://veryfront.com/docs/code/guides/mcp-server) - 通过MCP公开工具、提示和资源,支持SSE传输、会话和诱导。
- [**沙盒**](https://veryfront.com/docs/code/guides/sandbox) - 在临时计算环境中运行隔离代码,支持shell工具和代理服务集成。
- [**集成**](https://veryfront.com/docs/code/guides/integrations) - 使用OAuth、远程工具和服务元数据的连接器添加第三方服务。
- [**页面和路由**](https://veryfront.com/docs/code/guides/pages-and-routing) - 使用文件、React服务器组件、布局和服务器端渲染构建应用程序路由。
- [**数据获取和API路由**](https://veryfront.com/docs/code/guides/data-fetching) - 加载服务器数据、定义API处理程序,并使用内置的 [OAuth](https://veryfront.com/docs/code/guides/oauth) 添加 [中间件](https://veryfront.com/docs/code/guides/middleware)。
- [**扩展**](https://veryfront.com/docs/code/guides/extensions) - 使用基于合约的包扩展非常前沿代码,适用于LLM提供商、打包、CSS、跟踪、缓存等。
## 贡献
想贡献吗?我们感谢所有类型的帮助,从编码到测试和功能规范。请阅读 [CONTRIBUTING.md](./CONTRIBUTING.md) 以了解更多关于如何参与的信息。
如果您是开发人员,并希望通过代码贡献,请先打开一个问题讨论,然后再打开拉取请求。
## 支持
我们有一个 [开放社区Discord](https://discord.gg/xWuRjafrtV)。欢迎加入并告诉我们您有任何问题或需要帮助。
如果您在页面顶部 [给项目一个星星](https://github.com/veryfront/veryfront-code),这对我们非常有帮助。
## 安全
我们致力于维护非常前沿代码的安全性。如果您发现安全漏洞,请负责任地向我们披露,发送邮件至 [security@veryfront.com](mailto:security@veryfront.com),我们将在48小时内回应。
## 许可证
Apache-2.0