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

turing-test-near-you

v0.1.0

Published

A reusable Turing test overlay custom element for websites and browser extensions.

Readme

Reusable Turing test mini-game overlay for websites and as browser extensions.

<turing-test> is a custom element that tracks pointer movement, typing, scrolling, and clicking to estimate whether interaction looks human or automated, come find out who are the bots around us...or within us?

The current implemtnation is rather barebone. Open to contributions! Whether that is more complex detection logic, input source, achievements, UI, or anything that you think fit :)

Install

npm install turing-test

If the unscoped package name is unavailable on npm, publish it under your scope instead, for example @yourname/turing-test.

Use In A Site

<script type="module" src="./turing-test.js"></script>
<turing-test></turing-test>

Default palette comes from the original site implementation:

  • human: rgba(23, 184, 106, 0.95)
  • robot: rgba(255, 48, 48, 0.98)

Override state colors with attributes:

<turing-test
  human-color="rgba(23, 184, 106, 0.95)"
  robot-color="rgba(255, 48, 48, 0.98)"
></turing-test>

Attributes:

  • achievements: shows achievement toast notifications
  • human-color: overrides the human-state accent color
  • robot-color: overrides the robot-state accent color

Optional achievements UI:

<turing-test achievements></turing-test>

Live State API

<turing-test> exposes live state as properties and a DOM event.

Properties:

  • snapshot
  • state
  • colorState
  • humanConfidence
  • robotConfidence

Event:

  • turing-test:update

Example:

const overlay = document.querySelector("turing-test");

overlay.addEventListener("turing-test:update", (event) => {
  console.log(event.detail.state);
  console.log(event.detail.colorState);
  console.log(event.detail.humanConfidence);
});

Debug Component

Use the separate reusable debug component to inspect the current scoring breakdown.

<turing-test id="demoOverlay"></turing-test>
<turing-test-debug for="demoOverlay"></turing-test-debug>

The for attribute points at the id of the overlay element to observe.

Use From npm

import "turing-test";

Then mount the element in your HTML:

<turing-test></turing-test>

Demo

This repo includes a demo page in index.html.

<script src="dist/turing-test.js"></script>
<turing-test id="demoOverlay"></turing-test>
<turing-test-debug for="demoOverlay"></turing-test-debug>

Build

npm run build

Build output:

  • dist/turing-test.js: standalone browser bundle
  • dist/package/*: npm-oriented package output
  • dist/extension/chrome/*: Chrome extension files
  • dist/extension/firefox/*: Firefox extension files

GitHub Actions

  • build.yml: builds package and extension artifacts on push and pull request
  • release.yml: publishes to npm and attaches extension zip files to a GitHub release

To publish from GitHub Actions, set NPM_TOKEN in repository secrets.

License

MIT