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

@braedonsaunders/appkit-iam

v3.0.0

Published

Modular tenant IAM with roles, scoped assignments, permission overrides, audit, adapters, and production React administration.

Readme

@braedonsaunders/appkit-iam

Tenant identity and access management that can be adopted independently of an authentication provider.

The dependency-light root defines permission catalogues, hierarchical wildcard coverage, read-tier cascading, deny-wins overrides, tenant roles, memberships, scoped assignments, lifecycle state, bulk assignment operations, invitation rotation, audit events, actor-aware mutation capabilities, and the complete IamAdminService boundary.

Entry points

  • @braedonsaunders/appkit-iam — contracts and permission evaluation
  • @braedonsaunders/appkit-iam/react — paged role, member, scope, override, activity, and audit administration
  • @braedonsaunders/appkit-iam/drizzle — driver-neutral tenant Postgres/RLS service with atomic audit and application lifecycle hooks
  • @braedonsaunders/appkit-iam/memory — deterministic browser, local-first, and test adapter
  • @braedonsaunders/appkit-iam/http — authenticated framework-neutral handler and full-contract client
  • @braedonsaunders/appkit-iam/schema — canonical identity and audit schema re-exports

Applications supply their permission catalogue and any domain scope choices. The package never embeds product permissions, organization hierarchy, or an identity provider. Invitation delivery is injected through afterInvitePersisted, so Better Auth, Auth0, Clerk, WorkOS, a job queue, or a custom provider can own credential issuance without changing the IAM UI.

The React administration keeps filtering, sorting, facets, and pagination on the service boundary, so a large tenant is never truncated to a client-side sample. Roles include source-compatible type filters, key and description columns, grouped permission editing, protected built-ins, duplicate/delete, per-role member management, bulk add/replace/remove, scoped assignment, and record activity. Members include status counts, separate sortable name/email columns, responsive cards, invitations and resend, lifecycle controls, multi-role scopes, deny-wins overrides, activity, and protected self/super-admin behavior. Destructive operations use the shared confirmDialog system.

detailTabs and memberActions are typed extension seams for application-owned identity panels and actions. Drizzle hooks run referential guards and projection reconciliation inside the IAM transaction. Adapter capabilities are both exposed to the UI and re-checked at mutation time; hiding a button is never the security boundary.

import { RolesAdmin } from '@braedonsaunders/appkit-iam/react'
import { createDrizzleIamService } from '@braedonsaunders/appkit-iam/drizzle'

const iam = createDrizzleIamService({
  db: requestContext.db,
  tenantId: requestContext.tenantId,
  actor: { userId: requestContext.user.id, isSuperAdmin: requestContext.isSuperAdmin },
  currentMembershipId: requestContext.membership.id,
  permissionCatalogue: permissionGroups.flatMap(group => group.permissions.map(permission => permission.key)),
  afterInvitePersisted: deliverIdentityInvitation,
  hooks: {
    afterMembershipAccessChanged: reconcileAccessProjections,
  },
})

<RolesAdmin service={iam} permissionGroups={permissionGroups} />

Role and member mutations enforce built-in, current-user, and super-admin protections in the adapter as well as the UI. Re-selecting an existing member/role pair updates its scope instead of widening access with a duplicate assignment. @braedonsaunders/appkit-iam/drizzle accepts both Drizzle node-postgres and postgres-js databases without an application cast.