Skip to main content
Glama

hooserguide

Turn a browser workflow into an illustrated user manual. Write a Gherkin scenario with instructions, assertions and the screenshots you want. Playwright runs it against your app; hooserguide exports an offline HTML handbook, a PDF, Markdown and a JSON record of what passed. You can author scenarios yourself or with an agent. No model or API key is required.

The HooTasks demo with lettered references for task title and priority, and a numbered arrow pointing to Create task

Documentation wiki · Live handbook · Example PDF · Offline guide ZIP

Try the demo

With Node.js 22 or newer and npm:

git clone https://github.com/openhoo/hooserguide.git
cd hooserguide
npm ci
npx playwright install chromium
npm run demo

The demo starts HooTasks on localhost, creates a task and saves a notification preference. Open the printed HTML or PDF path. Each run gets its own directory; keep the screenshots next to the HTML and Markdown when opening them offline.

Related MCP server: playwright-e2e-mcp

Document your app

From your application project, install the tool and create a guide:

npm install -D github:openhoo/hooserguide#0.11.0
npx playwright install chromium
npx hooserguide init docs/user-guide --base-url http://localhost:3000 --editor

Start your app at that URL. Edit docs/user-guide/features/get-started.feature to match one task a reader needs to complete. For example, this scenario tells the reader what to do, checks the result after a reload and captures it for the guide:

@manual
Feature: Workspace preferences
  Scenario: Keep email notifications enabled
    Given I open "/"
    And I explain "Enable Email notifications and select Save preferences."
    When I check "label=Email notifications"
    And I click "role=button:Save preferences"
    And I reload the page
    Then "label=Email notifications" is checked
    And I capture "Your saved preference"
      """json
      {
        "marks": [
          { "target": "label=Email notifications", "label": "A", "caption": "Email notifications are enabled." }
        ]
      }
      """

From the same project directory:

npx hooserguide lint --config docs/user-guide/hooserguide.config.json
npx hooserguide run --config docs/user-guide/hooserguide.config.json

lint checks the spec without opening the app. run performs its actions, so use a test account and data you can change. A failed assertion or missing privacy mask prevents a successful export. Configure masks for private fields and review both screenshot variants before sharing. A passing report covers only the scenarios and screen profiles that ran.

Review a generated guide

Run npx hooserguide audit <run-directory> on the directory printed by run. It checks the screenshot hashes, points to unfinished copy or empty legends, and flags PDF cuts that split a marked control or leave an entire figure part without a target. Add --json for machine-readable locations or --strict to fail on warnings. This command is available when running the current source checkout; older installations can use inspect.

Use the locations to open the actual figures. In the offline HTML reader, select Open image, choose Actual size, and press Escape to return. Check the masked original as well as the annotated view, then inspect the exported PDF at reading size. The review guide explains what to look for.

Where to go next

I want to…

Read

Write a chapter, find a step or use the editor

Authoring guide · Steps, selectors and config

Annotate a control, mask a field or crop a screenshot

Move or resize a mark · Lettered arrows · Capture options

Compare desktop, tablet and mobile screenshots

Responsive guides

Change the theme, rebuild a PDF or share an offline ZIP

Customization and delivery · Rebuild from existing evidence

Connect an agent or reuse a Playwright test

MCP, TypeScript API and agent skills

Generate in CI or publish a static handbook

GitLab component · GitHub and GitLab Pages

Add --skills to init to install the author and review instructions alongside your guide. Run npx hooserguide --help for the full command list.

For work on hooserguide itself, see Contributing, Architecture, Review evidence and the Changelog.

Apache-2.0. Vendored pdfcn components retain their MIT attribution.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Converts requirements into traceable, CI-ready Playwright BDD tests connected to business rules, with support for Gherkin generation, rule mapping, and automated test pipelines.
      8 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to run, debug, and inspect Playwright end-to-end tests, returning structured pass/fail stats, failure diagnostics with actionable fix hints, live DOM inspection, selector validation, visual diffs, and flakiness verdicts instead of raw test output.
      11
      MIT
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables coding agents to inspect recorded browser flows—including user actions, network, console, storage, DOM events, and screen recordings—for debugging, bug reporting, regression testing, and Playwright test generation.
      -