[Go to site: main page, start]

Skip to content

Introduction ​

Puppetflow is a source-available, self-hostable browser automation platform built for the scenarios that actually break: 2FA walls, email verification, CAPTCHA gates, human approval steps, and anything that requires more than a simple headless script.

Why Puppetflow? ​

Most browser automation tools work until they hit real-world authentication. Puppetflow was designed from the start to handle these cases:

  • TOTP / 2FA - Compute one-time passwords at runtime from stored secrets or, on Pro and above, 1Password vault items.
  • Email verification - Receive emails on custom domains, match them with rules, and extract verification codes directly in your flow.
  • Human approval - Pause a running flow and wait for a team member to approve via Slack, Discord, or Telegram before continuing.
  • Full observability - Live-stream the browser session, record MP4 videos, collect screenshots and downloaded files as artifacts.

How it works ​

You can write flows in JavaScript with Puppeteer and Puppetflow's magic methods ($gotoUrl, $gotoTab, $fillInput, $vars, $waitForEmail, $waitHumanValidation, …).

js
async function run($page, $input) {
  await $gotoUrl('https://app.example.com/login', 'Login');
  await $fillInput('#email', 'foo@example.com');
  await $fillInput('#password', 'my_password');
  await $clickElement('#login-btn');

  // Compute a fresh TOTP code from the stored secret
  await $fillInput('#otp', $vars('variable-id'));

  // Pause until a matching verification email arrives
  const email = await $waitForEmail('watcher-id');

  // Follow the link extracted from the email body
  await $gotoUrl(email.parsed, 'Email link');
  await $screenshot('logged-in');

  return $generateResponseSuccess('Login complete');
}

Flows run inside a sandboxed Puppeteer environment, optionally connected to a remote Chromium instance through Pinokio, the bundled browser gateway. Every run produces structured output, console logs, and artifacts.

You can build flows in two ways:

  • Nodal flows - Visual browser automations built from connected steps.
  • Code flows - JavaScript automations that use Puppeteer and Puppetflow magic methods.

Key concepts ​

ConceptDescription
FlowA code or nodal automation with settings, triggers, and actions.
Nodal flowA visual automation built from connected steps.
Code flowA JavaScript automation with direct browser control.
SnippetA reusable code or nodal function callable from flows and other snippets.
RunA single execution of a flow, with status, output, logs, and artifacts.
VariableA stored value (text, secret, JSON, TOTP, vault) available at runtime.
TriggerA webhook or cron schedule that starts a flow automatically.
ActionA post-run webhook that fires with the run result.
BlueprintA reusable package of flows and snippets from the public blueprints or a private repository.
Private libraryA workspace-scoped Git repository that adds internal blueprints to the blueprints store.
MailboxAn email address on a custom domain that receives emails for your flows.
WatcherA rule set attached to a mailbox that matches incoming emails for a flow.
ChannelA Slack, Discord, or Telegram channel for notifications and human approval.
MCP serverExposes selected flows as tools for AI clients such as Claude, ChatGPT, and Cursor.
WorkspaceA shared space where team members collaborate on flows and resources.
Access controlRoles, teams, ownership, and resource sharing within a workspace.

Next steps ​