项目预览
项目数据
项目介绍
Star 增长趋势
本站每日记录该项目 GitHub 星标变化,观测越久曲线越完整
数据来源:GitHub API 逐日快照 · 收录于 2026-09-18 · 当前星标 ★ 906
技术标签
使用教程
环境要求
- Node 18+
- Playwright 浏览器
安装与启动步骤
-
1装包并初始化
Libretto 给编码 Agent 一个真实浏览器与省 token 的 CLI。
npm install libretto npx libretto setup -
2开浏览器
open 指定地址后,Agent 可对页面截图与取无障碍树。
npx libretto open https://example.com -
3跑集成脚本
把你的网页操作写成 TS 脚本,headless 跑通即完成一次集成。
npx libretto run ./integration.ts --headless -
4调试
失败时加 --stay-open-on-success 让页面停在成功现场,方便逐步排查。
如何确认成功
npx libretto status 正常,run 返回成功。
注意事项
- exec 可以直接在打开的页面上下文里执行 Playwright 代码,适合探路。
核心亮点
- 引入 AI 模型理解页面,降低选择器失效导致的脚本崩溃概率
- TypeScript 实现,类型友好,便于集成到现有前端或 Node 工程
- 面向 RPA 与自动化工作流,覆盖浏览器控制到动作编排的完整链路
不足之处
- 早期项目,API 和功能可能频繁变动
- 依赖外部 AI 模型服务,存在调用成本和网络依赖
适用场景
- 批量登录后台系统抓取报表数据
- 自动化执行重复的网页表单填写与提交流程
- 监控网页内容变化并触发后续业务动作
替代项目
Playwright、Puppeteer
同类项目推荐
OpenCLI
开源
不会记命令也没关系,说人话电脑就照做
Make Any Website into CLI & Use your logged-in browser by AI agent.
n8n-playbook
开源
n8n 速查表+示例,快速搭建 AI 工作流
n8n-playbook: cheastsheet, examples
tracecat
开源
拖拽搭建安全自动化流程,让 AI 代理帮你处理告警和响应。
Open-source security automation platform for teams and AI agents
Interceptor
开源
用命令行或AI指令,直接操控浏览器完成一切操作
Browser automation and computer use for AI agents. One CLI and MCP server for your s···
toys
开源
把散乱脚本收成一个可配置命令行工具集
A configurable command line tool for builds and workflow automation
rustwright
开源
用 Playwright 写法直连 Chromium,省掉驱动子进程
Playwright's API on a Rust CDP engine — Chromium browser automation for Python & No···
manifold
开源
组建AI团队,自动搞定复杂长流程工作
Manifold is an experimental platform for enabling long horizon workflow automation u···
trigger.dev
开源
用 TypeScript 快速构建和部署 AI 代理与自动化工作流
Trigger.dev – build and deploy durable AI agents and workflows
n8n-skills
开源
让 AI 助手直接调用 n8n 工作流,自动化一步到位。
Designed specifically for AI assistants, the n8n Workflow Automation Skills Suite.
