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

netsi-signature

v0.1.0

Published

A modern vanilla JavaScript signature custom element with image export, form participation, i18n, and container-query based UI.

Downloads

144

Readme

netsi-signature

A modern vanilla JavaScript signature custom element.

Vibecoded by Netsi1964 using ChatGPT 5.5.

Install

npm install netsi-signature
import 'netsi-signature';

With JSR / Deno:

import '@netsi1964/netsi-signature';

Or explicitly:

import 'jsr:@netsi1964/netsi-signature';

Use

<form method="post">
  <label>
    Full name
    <input name="fullName" autocomplete="name" required>
  </label>

  <netsi-signature name="signature" required show-base64></netsi-signature>

  <button>Submit</button>
</form>
import 'netsi-signature';

const signature = document.querySelector('netsi-signature');

signature.addEventListener('signature:end', (event) => {
  console.log(event.detail.dataUrl);
  console.log(event.detail.base64);
  console.log(event.detail.blob);
  console.log(event.detail.imageData);
  console.log(event.detail.timeline);
});

Event detail

Events include:

  1. signature:start
  2. signature:draw
  3. signature:end
  4. signature:clear

The event payload contains:

{
  blob: Blob | null,
  file: File | null,
  imageData: ImageData | null,
  dataUrl: string,
  base64: string,
  timeline: Array<{
    time: number,
    coordinate: { x: number, y: number },
    tryk: number | null
  }>,
  strokes: Array<Array<TimelinePoint>>,
  mimeType: string,
  timestamp: string,
  isEmpty: boolean,
  width: number,
  height: number
}

tryk is based on PointerEvent pressure when supported by the browser and input device.

Run the Deno demo app

deno task demo

Then open:

http://localhost:8000

The demo submits to /submit, which renders a receipt route showing metadata and the signature image.

Deno Deploy EA

Deploy the Deno demo app:

deno deploy create

or from the repo root:

deno task deploy

The app exposes:

  1. GET / — demo form
  2. POST /submit — HTML receipt for normal form submits
  3. POST /api/signatures — JSON endpoint for CodePen/fetch demos
  4. GET /netsi-signature.js — local module for the demo

The demo backend returns permissive CORS headers for examples and CodePen usage. Tighten this for production.

Publish

npm

Recommended: configure npm Trusted Publishing for this GitHub repository, then publish from GitHub Actions.

Local fallback:

npm publish --provenance --access public

JSR

Create the package on JSR as:

@netsi1964/netsi-signature

Then publish:

deno publish --dry-run
deno publish

For tokenless GitHub Actions publishing, link the JSR package to this GitHub repository in the package settings.

Buy me a coffee

Replace this URL if needed:

https://www.buymeacoffee.com/Netsi1964

License

MIT