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

@bananapus/project-handles-v6

v1.1.0

Published

`@bananapus/project-handles-v6` is a permissionless ENS handle registry for Juicebox projects. It stores ENS name parts by `(chainId, projectId, setter)` and only returns a handle when the ENS text record points back to that same project.

Readme

Project Handles V6

@bananapus/project-handles-v6 is a permissionless ENS handle registry for Juicebox projects. It stores ENS name parts by (chainId, projectId, setter) and only returns a handle when the ENS text record points back to that same project.

Documentation

Overview

This package solves one narrow problem: letting wallets, frontends, and crawlers discover a project's claimed ENS handle without trusting a central registry.

Its trust model is simple:

  • anyone can store ENS name parts for any project
  • each record is scoped by the caller, so one setter cannot overwrite another setter's record
  • handleOf only returns a handle when the ENS juicebox text record resolves back to chainId:projectId

Use this repo when the question is "what ENS handle does this project claim?" Do not use it for project ownership, permissions, or protocol accounting.

Key contract

| Contract | Role | | --- | --- | | JBProjectHandles | Stores ENS name parts per (chainId, projectId, setter) and verifies them against ENS text records before returning a handle. |

Mental model

The contract does two jobs:

  1. store which ENS name parts a setter claims for a project
  2. verify at read time that the ENS name's juicebox text record points back to that same project

So this repo is not a source of canonical truth. It is a source of verifiable claims.

Read these files first

  1. src/JBProjectHandles.sol
  2. src/interfaces/IJBProjectHandles.sol

Integration traps

  • callers must supply the setter they want to trust; there is no built-in canonical setter
  • a stored handle can exist onchain and still fail verification if the ENS text record drifts
  • callers should store ENS-normalized labels; non-canonical labels can store successfully but fail verification later
  • display surfaces should normalize and render handles consistently offchain; the contract verifies ENS text records but does not protect users from look-alike Unicode labels in UI
  • mainnet deployment does not mean mainnet-only data; the chainId parameter can point at projects on other EVM chains
  • L2 or non-Ethereum records should be labeled with their project chain, not presented as Ethereum-canonical project names
  • ENS liveness and resolver behavior stay outside this repo

Where state lives

  • stored ENS name parts live in JBProjectHandles
  • project ownership still lives in nana-core-v6
  • final verification depends on live ENS text records

High-signal tests

  1. test/JBProjectHandles.t.sol

Install

npm install @bananapus/project-handles-v6

Development

npm install
forge build --deny notes --skip "*/test/**" --skip "*/script/**"
forge test --deny notes

Useful scripts:

  • npm run test:fork
  • npm run deploy:mainnets
  • npm run deploy:testnets

Deployment notes

The production deployment target is Ethereum mainnet through script/Deploy.s.sol. The contract can still manage handles for many chains because chainId is part of the stored and verified data.

Repository layout

src/
  JBProjectHandles.sol
  interfaces/
test/
  handle verification and edge-case coverage
script/
  Deploy.s.sol
  helpers/

Risks and notes

  • frontends that want an owner-endorsed handle will usually choose the current project owner as the trusted setter, but that policy is offchain
  • if a project changes owners, older setter records remain stored and should not automatically be treated as canonical
  • there is no delete path; changing a handle means overwriting the stored name parts for that setter
  • malformed or non-normalized ENS labels can be stored and still never verify
  • ENS outages or resolver bugs can make a stored handle unreadable or unverifiable

For AI agents

  • Describe this repo as a verifiable naming layer, not as a canonical ownership registry.
  • Be explicit that the caller chooses which setter to trust.