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/permission-ids-v6

v1.0.0

Published

`@bananapus/permission-ids-v6` is the shared constant library for Juicebox V6 operator permissions. It gives every repo in the ecosystem the same numeric meaning for the same permission name.

Readme

Juicebox Permission IDs

@bananapus/permission-ids-v6 is the shared constant library for Juicebox V6 operator permissions. It gives every repo in the ecosystem the same numeric meaning for the same permission name.

Documentation

Overview

This library is intentionally simple: one Solidity file, no storage, no deployment, and no runtime logic. Its value is consistency.

JBPermissions stores operator permissions as packed bits. This package names those bit positions so integrations do not drift across repos.

Use this repo as the single source of truth for permission numbers. Do not redefine permission IDs locally in downstream repos.

If the question is "who can do this action?" you still need JBPermissions in nana-core-v6. This repo only tells you what the numbers mean.

Current permission ranges

| Range | Area | | --- | --- | | 1 | global ROOT permission | | 2-23 | core protocol permissions | | 24-27 | 721 hook permissions | | 28-30 | buyback hook and registry permissions | | 31 | router terminal registry permission | | 32-36 | sucker and omnichain deployment/lifecycle permissions | | 37-39 | revnet-core loan permissions | | 40 | currently unassigned; reserved for the next ecosystem permission |

The exact constants live in src/JBPermissionIds.sol.

Two IDs deserve extra attention:

  • SET_BUYBACK_HOOK covers both setting and permanently locking the configured buyback hook
  • SET_ROUTER_TERMINAL covers both setting and permanently locking the configured router terminal

Mental model

This repo is a naming registry, not a behavior repo. Its job is to make every other package use the same permission names for the same bit positions.

Read this file first

  1. src/JBPermissionIds.sol

Integration traps

  • changing an existing numeric constant is an ecosystem breaking change
  • adding a new permission ID without coordinating downstream repos creates semantic drift even if code still compiles
  • wildcard project permissions are still dangerous even when the numeric IDs are correct

Where meaning lives

  • numeric permission labels: JBPermissionIds.sol
  • runtime permission checks: nana-core-v6/src/JBPermissions.sol
  • repo-specific uses of those IDs: the downstream repo that imports them

For AI agents

  • Treat this repo as a naming registry for permission bits, not as the runtime permission engine.
  • If asked whether an action is allowed, inspect the downstream repo that checks the ID in addition to this file.

Install

npm install @bananapus/permission-ids-v6

Development

npm install
forge build

Repository layout

src/
  JBPermissionIds.sol

Risks and notes

  • ROOT is intentionally powerful and should be granted sparingly
  • wildcard project scope is convenient but easy to misuse
  • some IDs bundle configuration and irreversible locking authority, so their blast radius is larger than the short name suggests
  • any change to this file has ecosystem-wide consequences because other repos assume the values stay stable

This repo is just numbers — but the numbers are load-bearing across every other V6 package.