← Back to Leaderboard
Lcashew-labs

cashew-labs/libretto

A daemon-backed browser CLI for agent-authored workflows and live debugging

Engineering Health (Methodology)
A · 81/100
Maintenance Activity
● Updated 19d ago
Latest Release
v0.6.45
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance31/35
Fork Adoption13/25
Release Cadence17/20
License Clarity20/20
CLI
Total Stars
★ 914
24h Growth
+0
7d Growth
+2
Forks
71

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

cashew-labs/libretto Star History (2026-03-10 - 2026-12-03) ALL-TIME STAR HISTORY (2026-03 – 2026-12) +913 in 268d · avg +3/day 965 483 0 2026-03-10: ★ 12026-03-28: ★ 262026-04-18: ★ 4792026-05-09: ★ 5872026-05-30: ★ 6302026-06-20: ★ 7272026-07-11: ★ 7532026-08-01: ★ 8412026-08-22: ★ 8702026-09-12: ★ 8862026-10-03: ★ 9002026-10-24: ★ 9052026-11-10: ★ 9082026-12-03: ★ 914 ★ 914 2026-03 2026-07 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Libretto is a TypeScript monorepo built around a CLI and a daemon-backed browser session. Both open and run create sessions that can be inspected through the same commands, and --session <name> selects the target. The browser runtime uses Chromium, and exec evaluates Playwright TypeScript against the open page.

packages/libretto/src/cli/ contains the command layer, src/runtime/ handles browser networking, recovery, and downloads, and src/shared/ houses configuration, logging, and state utilities. Project configuration, sessions, and profiles live under .libretto/. The coding-agent interface is concretely a skill plus CLI; no MCP transport or tool schema is established here.

Key Capabilities & Differentiators

The strongest workflow is to demonstrate a task in a live browser, use the recorded actions to author a script, and inspect the same browser when the script breaks. snapshot returns a screenshot and a compact accessibility tree, while exec lets an engineer test Playwright code on the open page. Browser network capture adds request-level visibility when diagnosing an authorized integration.

run --headless supports unattended execution without a visible browser window. Failed or paused workflows retain the browser for inspection. Successful runs close it by default, but --stay-open-on-success preserves the final state for commands such as pages, snapshot, and exec. This is particularly useful when the fault depends on a logged-in session or a specific navigation sequence.

Trade-offs & Limitations

Compared with direct Playwright, Libretto adds a shared session lifecycle for the agent and engineer, so both can inspect the exact failure state instead of trying to recreate it in a fresh browser. That benefit comes with another CLI, daemon-managed browser state, and a pre-1.0 API surface. Pin versions in production. For a small, stable script, direct Playwright is simpler; when a supported API covers the task, it avoids selector maintenance altogether.

Treat profiles, screenshots, and network captures as potentially sensitive, especially for authenticated or healthcare workflows. The CLI telemetry payload excludes URLs, command arguments, session cookies, and API keys, and telemetry can be disabled. That narrow payload does not remove the need to control access to local browser artifacts or to review hosted workflows separately.

Hardware & Deployment Guide

For local use, install Node.js and npm, then run npm install libretto, npx libretto setup, and npx libretto status. Setup creates .libretto/, installs skills, and downloads Chromium unless --skip-browsers is passed. Skipping the download does not remove the need for a usable browser. Source development uses pnpm for the build, type checks, and tests.

Size CPU and memory against representative pages and concurrent Chromium sessions; headless mode still runs a browser. Cloud is a distinct deployment path: v0.6.43 added dedicated Open and Hosted workflows API documentation, v0.6.44 added claimSmsOtp for provisioned Cloud inboxes, and v0.6.45 fixed hosted runtime auth forwarding. These changes establish hosted capabilities, not a self-hostable Cloud stack.

Agent integration: The coding-agent skill drives a CLI that selects named browser sessions with --session <name>.
Live inspection: snapshot captures a screenshot and compact accessibility tree; exec evaluates Playwright TypeScript against the open page.
Failure recovery: Failed or paused runs leave the browser open; successful runs close it unless --stay-open-on-success is set.
Workflow authoring: Human browser actions can be recorded as the basis for scripts, alongside network capture for authorized integration diagnostics.
Workspace setup: setup creates .libretto/, installs agent skills, and downloads Chromium unless --skip-browsers is passed.
Telemetry controls: Set LIBRETTO_TELEMETRY_DISABLED=1 or DO_NOT_TRACK=1, or disable telemetry in ~/.libretto/telemetry.json.
Best For

Teams maintaining authorized browser integrations that need to turn human demonstrations into scripts and debug failures in the original browser session.

Skip If

A supported API already covers the task, direct Playwright meets your needs, or you require a verified MCP endpoint or a self-hostable Cloud stack.

Reviewed on 2026-12-03 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

CLI
# Add Libretto to your project. Requires Node.js and npm.
npm install libretto

# First-time onboarding: install skills and download Chromium
npx libretto setup

# Check workspace readiness at any time
npx libretto status

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
libretto ★914+2TypeScriptMITA daemon-backed browser CLI for agent-authored workflows and live debugging
chrome-devtools-mcp60.4k+760TypeScriptApache-2.0Chrome DevTools via MCP and CLI for live browser debugging and performance analy
agent-browser55.4k+1kRustApache-2.0Rust CLI and stdio MCP for agents that read and act on live web pages
graphify156.8k+2.4kPythonApache-2.0Local AST graphs for dependency tracing, with CLI and MCP access.

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/cashew-labs/libretto.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

cashew-labs/libretto Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about libretto

How does a coding agent connect, and is this a drop-in MCP server?

The concrete integration path is a coding-agent skill plus the libretto CLI. The CLI targets named browser sessions with --session <name>, and the same inspection commands work for sessions created by open or run. Do not assume the package exposes an MCP transport or tool schema; verify that separately if your agent requires MCP.

What should I budget for hardware and runtime overhead?

The local path requires Node.js, npm, and Chromium. No dedicated GPU or VRAM requirement is specified. Size CPU and RAM using representative pages and the number of concurrent browser sessions you plan to keep open, including sessions retained after failures. Headless operation still runs Chromium.

Can we use it commercially and keep sensitive workflows local?

The MIT license permits commercial use and redistribution subject to preserving the copyright and license notices. Local CLI execution is available, but the license does not establish that the Cloud service can be self-hosted or that a deployment meets healthcare compliance requirements. Review access to browser profiles and captured artifacts, and assess Cloud data handling separately if you use hosted features.

When should we choose Libretto over direct Playwright or a supported API?

Choose Libretto when an agent needs to turn a browser demonstration into a script or inspect the actual page left by a failed run. Choose direct Playwright when the team already owns its scripts and debugging workflow and does not need another session layer. Prefer a supported API when it covers the required operation; it removes dependence on page selectors.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining cashew-labs/libretto? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature cashew-labs/libretto on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare