npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

form-tester

v0.12.0

Published

AI-powered form testing skill for /skjemautfyller forms using Playwright CLI. Works with Claude Code and GitHub Copilot.

Readme

Form Tester

AI-powered testing skill for /skjemautfyller forms using Playwright CLI. Works with Claude Code and GitHub Copilot.

Install

npm install -g form-tester

Then in your project:

form-tester install            # project-level (commits to repo)
form-tester install --global   # personal (~/.claude/skills/)

This installs:

  • .claude/skills/form-tester/ — Claude Code skill
  • .claude/skills/playwright-cli/ — Playwright CLI skill
  • .github/copilot-instructions.md — GitHub Copilot instructions
  • form-tester.config.example.json — Config template
  • playwright-cli globally (if not already installed)

Configuration

cp form-tester.config.example.json form-tester.config.json

Edit form-tester.config.json and set your pnr.

Usage

Test modes

# AI mode (default) — no prompts, uses defaults:
form-tester test <url> --auto
form-tester test <url> --auto --pnr 12345 --persona ung-mann --scenario "test validation"

# Human mode — prompts for persona, scenario, person selection:
form-tester test <url> --human

# Full interactive CLI:
form-tester

Persona IDs: ung-mann, gravid-kvinne, eldre-kvinne, kronisk-syk-mann

Recording & Replay

Every test run records all commands to recording.json. Use form-tester exec instead of playwright-cli to ensure all commands are recorded:

form-tester exec fill e1 "value"
form-tester exec click e3
form-tester exec screenshot --filename "page.png" --full-page
form-tester exec close           # finalizes recording

Replay a previous run:

form-tester replay output/form-id/timestamp/recording.json

Interactive CLI

Full interactive CLI with all commands:

form-tester

Commands: /setup, /update, /version, /people, /test {url}, /save {label}, /clear, /quit

Claude Code

After form-tester install, the skill is automatically detected. Use the /form-tester skill or just ask Claude to test a form.

If the skill isn't showing up:

  1. Make sure .claude/skills/form-tester/ exists in your project (run form-tester install)
  2. Restart Claude Code or start a new conversation

GitHub Copilot

After form-tester install, Copilot reads .github/copilot-instructions.md and .claude/skills/ automatically.

If Copilot doesn't recognize the skill:

  1. Make sure .claude/skills/form-tester/ exists in your project (run form-tester install)
  2. Run /skills in the Copilot CLI to reload skills, or restart the session

Skip permission prompts

By default, AI agents will ask permission for every shell command. To run without interruptions, pre-allow the relevant tools.

Claude Code

Add to your project's .claude/settings.local.json (or global ~/.claude/settings.json):

{
  "permissions": {
    "allow": [
      "Skill(form-tester)",
      "Bash(form-tester:*)",
      "Bash(playwright-cli:*)"
    ]
  }
}

Or use the Claude Code CLI:

claude config add permissions.allow "Skill(form-tester)"
claude config add permissions.allow "Bash(form-tester:*)"
claude config add permissions.allow "Bash(playwright-cli:*)"

GitHub Copilot

In Copilot CLI, use auto-approve mode:

copilot --auto-approve

Or approve the tool categories when first prompted and select "Always allow".

Test Output

Test runs are saved to output/{form-id}/{timestamp}/ with:

  • Snapshots (YAML)
  • Screenshots (PNG, full-page)
  • test_results.txt

Dokumenter verification

After form submission, some forms store a copy in Dokumenter. The document type determines how to capture it:

  • PDF documents — download the file directly (playwright-cli pdf or via browser download)
  • HTML documents — take a full-page screenshot of the entire document (playwright-cli screenshot --filename "..." --full-page). HTML documents cannot be downloaded as-is, so the screenshot is the primary artifact.

Update

npm update -g form-tester

Development

npm test

License

MIT