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

@ascencia/id-rbac

v0.1.0-rc.1

Published

Moteur de résolution des rôles et permissions d'Ascencia ID — isomorphe, zéro dépendance.

Downloads

102

Readme

@ascencia/id-rbac

Le moteur de permissions d'Ascencia ID : résolution des rôles, héritage, refus explicites, et portées.

bun add @ascencia/id-rbac

C'est une bibliothèque pure — aucune entrée/sortie, aucune dépendance. On lui donne un état (compte, zone, application, rôles détenus), elle rend un contexte effectif : ce que la personne a le droit de faire, et par quel rôle.

import { resolve } from '@ascencia/id-rbac';

const context = resolve({ account, realm, application, roles, assignments });

context.allowed;                  // la politique d'accès laisse-t-elle entrer ?
context.reason;                   // sinon, pourquoi — `app_access_denied`, …
context.permissions;              // les permissions effectives
context.trace;                    // d'où vient chacune

Trois choses à savoir

Un deny explicite gagne toujours, quel que soit le rôle qui l'accorde par ailleurs. C'est ce qui permet de retirer un droit à quelqu'un sans démonter sa hiérarchie de rôles.

Les permissions sont partitionnées par portée — plateforme, zone, application. Un * accordé sur une application ne fuit jamais vers une autre.

La trace n'est pas du confort de développement. Elle alimente le simulateur de la console : « pourquoi cette personne a-t-elle ce droit ? » est la question qu'on se pose six mois plus tard, et une réponse binaire n'y suffit pas.

Vous n'avez normalement pas à installer ce paquet directement : @ascencia/id-core et @ascencia/id-server en dépendent.

MIT