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

qa-deck-backend

v1.0.2

Published

Local backend for the QA Deck Chrome extension — enables Capture and AI test generation

Downloads

37

Readme

QA Deck — Backend API

Local Node.js backend for the QA Deck Chrome extension.

It provides:

  • AI generation endpoints used by the extension
  • disk-backed project storage
  • a Playwright-powered recorder
  • static dashboard pages for projects and recording

The server entry point is server.js.

Start

In a clean checkout, install dependencies first:

npm install
npm start
# or
./start.sh

Server starts on http://localhost:3747.

Endpoints

| Method | Path | Description | |--------|------|-------------| | GET | /api/health | Health check and project count | | POST | /api/generate-tests | Generate test cases from extracted page data | | POST | /api/generate-script | Generate automation scripts | | POST | /api/save-project | Save a project to disk | | GET | /api/projects | List saved projects | | GET | /api/projects/:id | Fetch a specific project | | POST | /api/generate-cicd | Generate CI/CD starter files | | POST | /api/record/start | Start a recorder session | | GET | /api/record/sessions | List recorder sessions | | GET | /api/proxy | Proxy a page into the recorder dashboard |

Request format

POST /api/generate-tests

{
  "pageData": { "...": "From the extension content script" },
  "apiKey": "provider-specific key"
}

POST /api/generate-script

{
  "testCases": [],
  "pageData": {},
  "framework": "selenium-python | selenium-java | playwright-python | playwright-typescript",
  "apiKey": "provider-specific key"
}

Architecture

Extension                     Backend                    Provider API
   |                             |                           |
   |- SCAN_PAGE ---------------> | not involved              |
   |                             |                           |
   |- GENERATE_TESTS ----------> | POST /api/generate-tests  |
   |                             |-------------------------->|
   |                             |<--------------------------|
   |<----------------------------| { testCases: [...] }      |
   |                             |                           |
   |- GENERATE_SCRIPT ---------> | POST /api/generate-script |
   |                             |-------------------------->|
   |                             |<--------------------------|
   |<----------------------------| { scripts: {...} }        |
   |                             |                           |
   |- RECORD / CI-CD ----------> | local-only routes         |

If the backend is offline, the extension falls back to direct browser-side provider calls for test generation, script generation, and local project storage. Recorder features remain backend-only.

Offline / Fallback mode

When the backend is unreachable:

  • generation calls are made directly from the extension service worker
  • projects are saved in chrome.storage.local instead of disk
  • the side panel shows Direct API mode
  • recorder and dashboard features are unavailable

Projects storage

Projects are saved as JSON files in ./projects/:

projects/
  abc123.json
  def456.json

Rate limiting

The current code allows up to 300 requests/minute per non-local IP and skips rate limiting for localhost recorder traffic. If you change that behavior, update this document at the same time.

Port

Default:

PORT=3747 npm start

Override:

PORT=4000 npm start

Notes for contributors

  • package.json includes convenience scripts for start and dev
  • .env.example documents only the environment variables currently used by the server
  • playwright is required for recorder functionality
  • generated project files and node_modules/ should not be treated as source files