Repository avatar
AI Tools
v0.1.6
active

stillworks

io.github.valmirjunior2109-spec/stillworks

Checks your web app still works after AI edits: real browser, zero setup, fix-ready report.

Documentation

stillworks

Your AI writes the code. This checks it still works.

npm license: MIT CI

Claude Code, Cursor and Codex write code fast. The code compiles, passes lint and tests, and signup is still broken, often in a file the agent wasn't supposed to touch.

stillworks runs the journeys your users actually click through (signup, login, checkout) in a real browser. When one breaks, it writes a report your coding agent can act on: the step that failed, the console errors, the failed requests with the server's response, and a screenshot.

  • Zero setup: npx stillworks check http://localhost:3000 opens your app and its key pages and tells you what's broken, in about 30 seconds.
  • Your real flows: signup, login and checkout as plain Playwright steps, or ask your agent to write them.
  • Your agent can run it: npx stillworks mcp is an MCP server for Claude Code, Cursor and any MCP client.
  • Free and open source, MIT, no telemetry.

stillworks running three journeys in the terminal: signup fails at step 4 with POST /api/signup returning 500, login and checkout pass

Want it to run by itself on every PR, with regression diffs? Join Publishub early access → (free waitlist, coming soon)

Quickstart

First look, zero setup (30 seconds):

npx stillworks install                        # one time: downloads Chromium
npx stillworks check http://localhost:3000    # or your deployed URL

check opens your app and its key pages (signup, login, pricing, dashboard first) in a real browser and fails when a page doesn't load, shows a "not found" screen, crashes with a JavaScript error or gets a 5xx from your API. It's read-only: it never fills a form, clicks a button or opens links like "log out", so it's safe on any URL.

Then check the flows behind those pages:

npx stillworks init                              # creates journeys.config.ts, adds stillworks, installs Chromium
# edit the journeys so they match your app, or ask your agent to (init prints a prompt you can paste)
npx stillworks run --url http://localhost:3000   # runs every journey in a real browser

Both exit with code 1 when something breaks. Open verify-report/REPORT.md and paste it into your agent.

No terminal? If you build with Lovable, Bolt or v0, check your deployed app online, free: same idea, in your browser, no install.

Works on macOS, Linux and Windows with Node.js 20 or newer.

  • Checking a site you don't own? Keep it to read-only journeys (open pages, look for text). The example journeys sign up and pay, so stillworks refuses to run them against anything but localhost.
  • Windows PowerShell says "running scripts is disabled"? Use npx.cmd instead of npx (for example npx.cmd stillworks init), or run the commands from Command Prompt.
  • init adds stillworks to your devDependencies so journeys.config.ts gets types and autocomplete in your editor. --skip-install skips that and the Chromium download.

What your agent gets

Here's the real report from the demo app. Its signup API was "refactored" to read emailAddress while the form still sends email. TypeScript can't see it, the unit tests pass, and the user sees a button that does nothing.

## The `signup` journey failed at step 4 of 4: "See the welcome screen"

Steps that passed before it: 1. Open the signup page · 2. Fill in email and password · 3. Submit the form

Error:

```
locator.waitFor: Timeout 10000ms exceeded.
- waiting for getByText(/welcome/i).first() to be visible
```

Page URL when it failed: http://localhost:3000/signup

Console errors:

- Create your account failed: 500 {"error":"TypeError: Cannot read properties of undefined (reading 'toLowerCase')"} (at /signup:23)

Failed requests:

- POST /api/signup → 500 Internal Server Error
  Response: `{"error":"TypeError: Cannot read properties of undefined (reading 'toLowerCase')"}`

Screenshot: verify-report/screenshots/signup-04-see-the-welcome-screen.png

Fix this without changing unrelated files. Find the root cause (start from the failed requests and console errors above); don't change the journey or weaken the check to make it pass. These journeys still pass, keep them passing: `login`, `checkout`.

When you're done, run `npx stillworks run --url http://localhost:3000` and confirm every journey passes.

The full file is in examples/REPORT.example.md. Every run also writes verify-report/report.json for scripts and a screenshot of every step.

Writing journeys

A journey is a list of named steps. Each step is plain Playwright, so anything Playwright can do, a step can do.

// journeys.config.ts
import { defineConfig } from "stillworks";

export default defineConfig({
  baseURL: "http://localhost:3000", // --url overrides this
  journeys: [
    {
      name: "signup",
      steps: [
        { name: "Open the signup page", run: ({ page }) => page.goto("/signup") },
        {
          name: "Fill in email and password",
          run: async ({ page }) => {
            await page.getByLabel("Email").fill(`test+${Date.now()}@example.com`);
            await page.getByLabel("Password").fill("correct-horse-battery-staple");
          },
        },
        { name: "Submit the form", run: ({ page }) => page.getByRole("button", { name: "Create account" }).click() },
        { name: "See the welcome screen", run: ({ page }) => page.getByText("Welcome").waitFor() },
      ],
    },
  ],
});

Tips:

  • Name steps the way you'd describe them to a person. The names end up in the prompt your agent reads.
  • Prefer getByRole and getByLabel over CSS selectors. They survive refactors, and they break when accessibility does.
  • Every journey starts with fresh cookies. Use a test account for login and test mode for payments, never real ones. Read its password with env("TEST_PASSWORD") (exported by stillworks) instead of writing it in the file.
  • Ask your agent to write them. init prints a prompt you can paste, or try: "Read journeys.config.ts and add a journey for inviting a teammate."
OptionDefaultWhat it does
baseURL—The app to check. --url and STILLWORKS_URL override it.
timeout10000Max time for each action or wait, in ms.
failOnConsoleErrorsfalseFail a journey when the page logs an error, even if every step passed.
ignoreConsole[]Console errors to ignore (strings or RegExps).
ignoreRequests[]Request URLs to leave out of "failed requests".
headers{}Headers sent only to your app's origin, e.g. a preview protection bypass.
viewport1280×800Browser size.

Recipes

Ready-made journeys for the bugs that slip past a green build, each tested against the demo app:

  • Read the data back: catches a form that says "Saved!" while nothing was saved, like a Supabase insert blocked by row-level security (RLS) whose error the code never checks.
  • Log in with a test account: credentials from environment variables, never written in the file.

More in recipes/.

Use it with your agent

Claude Code

  • npx stillworks init --claude adds a /verify command: Claude runs the journeys, reads the report, fixes the bug and runs them again.
  • To check automatically every time Claude finishes, add the Stop hook. It skips turns where no file changed and never blocks Claude when the app isn't running.

As an MCP server (Claude Code, Cursor, Windsurf, any MCP client): your agent gets two tools, check_app (zero setup, read-only) and run_journeys (your journeys.config.ts), and calls them itself after a change.

  • Claude Code: claude mcp add stillworks -- npx -y stillworks mcp

  • Cursor: add to .cursor/mcp.json:

    { "mcpServers": { "stillworks": { "command": "npx", "args": ["-y", "stillworks", "mcp"] } } }
    

Run npx stillworks install once first, so the browser is there.

Cursor: npx stillworks init --cursor adds a rule that tells the agent to verify after every change.

Codex, GitHub Copilot, Windsurf: paste this section into your AGENTS.md.

GitHub Actions + Vercel previews: npx stillworks init --github adds a workflow. It runs your journeys against every successful preview deploy and puts the report in the run summary. Deployment Protection is supported.

Or use the action in a workflow you already have:

- uses: valmirjunior2109-spec/stillworks@v0.1.3
  with:
    url: ${{ github.event.deployment_status.environment_url }}
    # optional: config, journeys ("signup login"), headers ("x-vercel-protection-bypass: ..."), working-directory

It installs Chromium, runs the journeys, fails the job when one breaks, adds REPORT.md to the run summary and uploads the screenshots. Outputs: result (passed or failed) and report.

Show it in your README

When every journey passes, REPORT.md includes this badge to paste into your README:

tested with stillworks

[![tested with stillworks](https://img.shields.io/badge/tested%20with-stillworks-9147ff)](https://github.com/valmirjunior2109-spec/stillworks)

It's a static image: it says your app is tested with stillworks, not that the last run passed. --no-promo leaves it out of the report.

When a journey fails but the app looks fine

If a step times out and the page logged no errors and no request failed, the journey's selector probably doesn't match the page (different text, a button instead of a link, content that loads later). The terminal and REPORT.md say so, and tell your agent to check the screenshot before changing the app.

Want this automatic on every change?

stillworks runs your journeys and writes the report on your machine, when you ask. That part is free and open source, for good.

Publishub is building the version that runs by itself. It's coming soon, and nothing below is available yet:

stillworks (open source)Publishub (coming soon)
Run journeys in a real browser✅planned
Screenshots, console errors, failed requests✅planned
Report written as a prompt for your agent✅planned
Runs on your machine and in your CI✅—
Compares with your last working version (regression diffs)—planned
History of every run—planned
Hosted runs on every change and every PR—planned
Bug reports sent straight to your agent—planned

Two ways in:

  • Join the free waitlist → Product updates and an email when it launches. No payment.
  • Become a Founding Customer → $0 today, then $19/month only once Publishub launches. You lock in the founding price, get early and priority access, and help decide what Publishub checks. You get at least 7 days' notice before the first charge, you can cancel any time before it, and the first payment is refundable within 14 days.

CLI

npx stillworks check <url> [--out <dir>] [--header "name: value"]... [--timeout <ms>] [--channel chrome|msedge] [--headed] [--no-promo]
npx stillworks init [--claude] [--cursor] [--github] [--skip-install] [--force]
npx stillworks run [--url <url>] [--config <file>] [--out <dir>] [--journey <name>]...
                   [--header "name: value"]... [--timeout <ms>] [--channel chrome|msedge]
                   [--headed] [--no-promo]
npx stillworks install [--with-deps]
npx stillworks hook claude-code
npx stillworks mcp
  • Exit codes: 0 every journey (or page) passed · 1 one failed · 2 setup problem (no config, app not reachable, unknown journey).
  • check needs no config. It opens the URL plus up to 6 pages linked from it, and runs four read-only steps on each: open the page, see it isn't an error screen, no JavaScript crash, no 5xx from your app.
  • --channel uses a Chrome or Edge you already have instead of downloading Chromium.
  • --header sends a header to your app's origin only, never to third parties. Use it for things like x-vercel-protection-bypass.

Privacy and the one promo line

  • No telemetry. stillworks collects nothing and sends nothing anywhere. The only network requests it makes are to the URL you check. Chromium is downloaded by Playwright when you run install.
  • At the end of run, it prints one line about Publishub: Want this on every AI change, with regression diffs? → https://getpublishub.com/?utm_source=gh_cli. init prints a similar line once, at the end of setup.
    • Turn it off with --no-promo or NO_PUBLISHUB_PROMO=1.
    • The Claude Code hook never prints it.
    • REPORT.md ends with a one-line footer linking to Publishub.

Try it on the demo app

git clone https://github.com/valmirjunior2109-spec/stillworks && cd stillworks
npm install && npm run build && node dist/cli.js install
npm run demo:broken                                # in one terminal
node dist/cli.js run --url http://127.0.0.1:4173 --config templates/journeys.config.ts

Signup fails at step 4 and login and checkout pass. Stop the app, run npm run demo instead, and all three pass.

To see check catch a missing page, a JavaScript crash and a 500 with no setup: node examples/demo-app/server.mjs --break=pages, then node dist/cli.js check http://127.0.0.1:4173.

Contributing

Bug reports, journey templates for common stacks (Next.js + Supabase auth, Clerk, Stripe Checkout…) and integrations for more agents are all welcome. See CONTRIBUTING.md. Want a journey you don't know how to write? Open a journey request.

If stillworks caught a bug for you, a ⭐ on the repo helps other people building with AI find it.

License

MIT. Made by the team building Publishub.

NPM
stillworks
Install Command
npm install stillworks
Runtime: npx