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

@haneinfo/delegation

v0.2.15

Published

Time-bounded one-hop delegation and human-only management.

Readme

@haneinfo/delegation

Human-managed, time-bounded, one-hop delegation for Assignment. The implementation follows approved decision 202610-6b1f. Register delegation() in the plugin inventory, use configRef delegation, and migrate prisma/delegation.prisma plus Assignment's two new nullable task columns before loading the updated packages. The initial package version is 0.0.0 with a minor changeset for its first 0.1.0 release.

DelegationModule.register({ maxDurationDays: 90, appName: 'app' }) exports DelegationService, DelegationMcpTools and the plugin-api DELEGATION_RESOLVER token. Identity-store is required; RBAC and notification-inbox are optional. Without notifications, delivery is skipped, following Assignment's existing degradation policy. Without RBAC, users can only manage their own records.

The Delegation table owns id, delegatorId, delegateId, startsAt, endsAt, status, assignmentCodes, reason, createdBy, revokedAt, revokedBy and createdAt. It uses snake_case table/column names and indexes on (delegatorId, status), (delegateId, status), and (startsAt, endsAt). Status is ACTIVE or REVOKED. Expiry never changes status: effective means ACTIVE and startsAt <= now < endsAt.

See agent-guide.md for rules, routes, MCP, errors and integration limitations.

Instance access lists

Implemented against approved decision 202610-c8e3.

Delegated tasks now receive permanent DELEGATED READ entries through Assignment. Their source is separate from original ASSIGNED readers and from revocable GRANTED access. Ending delegation still leaves the permanent entry. There are no new delegation management routes or MCP tools.

Upgrade the affected mechanisms together after applying the App migration. The maintained model, HTTP routes, read-only list_instance_access MCP tool, errors and permission contract are documented in @haneinfo/state-machine/agent-guide.md. Its prisma/instance-access.sql migrates the existing reader table to USER/ROLE, READ/WRITE and ASSIGNED/DELEGATED/GRANTED rows while retaining timestamps. The maintainer selected (instanceId, principalType, principalId, source) uniqueness. Manual grants are limited to 100 by default; permanent READ entries survive manual removal. See the package repository validation/equipment-loan/instance-access/report.md for SQL, tests and App restoration evidence.