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

prest-code

v1.0.12

Published

AI-powered security scanner, web crawler, and Playwright test generator for GitHub PRs

Readme

PrestCode

AI-powered security scanner, web crawler, and Playwright test generator for GitHub PRs.

prest secure https://mysite.com
prest crawl https://mysite.com "find the pricing page"
prest report https://mysite.com
prest generate https://github.com/owner/repo/pull/42

Install

npm install -g prest-code

Prerequisites

1. Ollama (local LLM — free, no API key needed)

# macOS
brew install ollama
ollama serve

# Pull the default model
ollama pull qwen2.5:7b

2. Playwright Chromium (for XSS/SQLi probing and browser-based test execution)

npx playwright install chromium

3. GitHub Token (only required for generate, analyze, and report with a PR URL)

  • Go to github.com/settings/tokens
  • Create a token with repo scope
  • Export it: export GITHUB_TOKEN=your_token_here

Setup

Create a .env file in your working directory:

# LLM — Ollama (default, free, local)
OLLAMA_BASE_URL=http://localhost:11434
OLLAMA_MODEL=qwen2.5:7b

# GitHub (required for PR commands)
GITHUB_TOKEN=your_github_token

# Optional — credentials for authenticated scans
[email protected]
TEST_PASSWORD=yourpassword

Commands

prest secure <url>

8-phase security scan: input discovery → tech fingerprinting → security headers → XSS → SQLi → exposed secrets → admin route enumeration.

prest secure https://mysite.com
prest secure https://mysite.com --email [email protected] --password secret

Exit codes: 0 = clean · 1 = scan error · 2 = critical/high vulnerabilities found


prest crawl <url> "<goal>"

Goal-driven web crawler — LLM navigates pages until the goal is met or max steps reached.

prest crawl https://mysite.com "find the pricing page"
prest crawl https://mysite.com "locate the contact form"

prest report <site-url>

Run all phases (security + crawl) and generate a consolidated HTML dashboard, auto-opened in your browser.

prest report https://mysite.com
prest report https://mysite.com --goal "explore all navigation links"
prest report https://github.com/owner/repo/pull/42 https://mysite.com

prest analyze <pr-url>

Map GitHub PR file changes to test coverage using TypeScript AST (ts-morph).

prest analyze https://github.com/owner/repo/pull/42

prest generate <pr-url>

Auto-generate a Playwright test for a GitHub PR and open it as a PR in your test repo.

prest generate https://github.com/owner/repo/pull/42
prest generate https://github.com/owner/repo/pull/42 --dry-run

prest rot-check

Scan existing Playwright spec files for broken selectors and auto-heal them via a GitHub PR.

prest rot-check --spec-dir e2e/tests --url https://mysite.com

prest webhook

Start a GitHub webhook server that auto-triggers generate on every PR event.

prest webhook --port 3000

Configuration

Place a .pr-agent.json in your project root:

{
  "baseUrl": "https://mysite.com",
  "outputDirectory": "e2e/tests",
  "targetRepo": {
    "owner": "your-github-username",
    "name": "your-test-repo"
  },
  "authStrategy": "none",
  "ticketPatterns": [
    { "pattern": "([A-Z]+-\\d+)", "type": "jira" }
  ],
  "featureMappings": [
    {
      "id": "auth",
      "name": "Authentication",
      "patterns": ["src/auth/.*", "pages/login.*"],
      "entryUrl": "/login"
    }
  ]
}

Environment Variables

| Variable | Default | Description | |----------|---------|-------------| | OLLAMA_BASE_URL | http://localhost:11434 | Ollama server URL | | OLLAMA_MODEL | qwen2.5:7b | Ollama model to use | | GITHUB_TOKEN | — | GitHub personal access token | | TEST_EMAIL | — | Email for authenticated scans | | TEST_PASSWORD | — | Password for authenticated scans | | TEST_REPO_OWNER | — | Override targetRepo.owner | | TEST_REPO_NAME | — | Override targetRepo.name | | MCP_BROWSER_HEADLESS | true | Set false to watch the browser | | MCP_VERBOSE | false | Set true for MCP connection logs |


License

MIT — Thiru S