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

@petidentity/widget

v0.1.1

Published

Embeddable PetID widget for pet shops, vets and groomers — let customers mint ENS pet identities at your price and earn the margin on-chain.

Downloads

20

Readme

@petidentity/widget

Embeddable PetID widget for pet shops, vets and groomers.

Your customers mint an ENS identity for their pet (max.dogid.eth / luna.catid.eth) with a permanent IPFS profile page and a QR collar tag — at your price, set in dollars. You keep everything above the wholesale price, settled on-chain by the PetIDRegistrarV4 contract. No invoices, no revenue share paperwork; withdraw your earnings anytime.

1. Become a partner

Reseller access is approved per wallet, so there are two steps:

  1. Open petid.eth.link/partner, connect the wallet that should receive earnings, and send us the request shown there.
  2. Once approved, come back and set your business name and customer price. You're live.

Prices are held in US dollars, so your margin doesn't drift when the ETH rate moves. Set your price to 0 at any time to pause your listing.

2. Add the widget to your site

Script tag (easiest)

<script src="https://unpkg.com/@petidentity/widget" data-partner="0xYOUR_WALLET"></script>

Renders a "Create your pet's PetID" button where the script tag is placed. Options:

| attribute | default | notes | |---|---|---| | data-partner | — | required, your partner wallet | | data-label | Create your pet's PetID | button text | | data-theme | light | light or dark | | data-mode | button | inline renders the full registration flow in an iframe | | data-target | script location | CSS selector to mount into |

JavaScript API

<script src="https://unpkg.com/@petidentity/widget"></script>
<script>
  PetIDWidget.mount(document.getElementById("petid"), {
    partner: "0xYOUR_WALLET",
    mode: "inline", // or "button"
  });
</script>

No JavaScript at all

Link anywhere: https://petid.eth.link/register/?partner=0xYOUR_WALLET

How the money flows

  1. Customer pays your price in one transaction, in ETH or USDC. The dollar price is converted at the live rate, and any excess ETH is refunded in the same transaction.
  2. The registrar mints the ENS subname straight to the customer's wallet with the IPFS profile attached.
  3. Your margin — everything above wholesale — accrues to your address inside the registrar contract. Withdraw anytime from the partner dashboard; only your wallet can claim it.

Attribution is on-chain and unfakeable: the registration transaction itself carries your partner address.

License

MIT