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

@super-oar/authz

v0.0.4

Published

Track A FERPA/COPPA application-layer authorization resolver (PDP+PEP): principal resolution, capability merge (deny-precedence), scope+filter resolution, requireX/assertX guards, object-level BOLA guard, consent classification. ESM, pure-JS, DB-optional.

Readme

timeback-authz (monorepo)

This repository houses both implementations of the Track A authorization policy plus the shared parity suite:

| Path | What it is | | --- | --- | | repo root (src/, test/, package.json) | @super-oar/authz — the TypeScript package (source of truth). Published to GitHub Packages via .github/workflows/publish.yml on v* tag push. Unchanged location/name/paths — existing consumers and the publish flow are unaffected. | | python/ | superbuilders-authz — the Python port (import superbuilders_authz) for the Python tier. Same gate order, same verdicts, same reasons. | | conformance/ | Shared cross-language conformance vectors (vectors.json). Both engines load the same file: test/conformance.test.ts (TS) and python/tests/test_conformance.py (Python). |

Parity gate: CI (.github/workflows/ci.yml) runs both suites — including the conformance vectors — on every PR. Any decision-policy change must update conformance/vectors.json and pass both suites (see CONTRIBUTING.md). A vector passing in one language and failing in the other is a port-drift bug.

Versioning (lockstep convention): the TS package versions independently (npm version + tag → publish). The Python package tracks the TS minor line — when TS bumps its minor, bump the Python minor in python/pyproject.toml in the same PR so both engines' policy surface stays in lockstep.


@super-oar/authz

Track A (FERPA/COPPA) application-layer authorization resolver — the shared PDP+PEP every TimeBack TS app installs. Implements TA-PEP-03 / TA-PEP-10.

  • ESM-only, pure-JS, no native deps, DB-optional → runs in Node, AWS Lambda, and Cloudflare Workers.
  • Application-layer first. decide() returns a decision + a filter spec and works with no database — because most consumers read student data over REST / MySQL / DynamoDB, not a Postgres the package can attach to. RLS/GUC enforcement is a later phase and is intentionally not in this package.
  • Decision core is swappable (ADR-11): SQL capability merge now → Cedar/OpenFGA later, same surface.

API

  • decide(input, deps) → { verdict, reason, filter?, maskFields? } — the core. Ordered gates (tenant → role active+window → read-only → capability+scope → sensitivity → consent → elevation); first-fail-denies; dual_read/shadow downgrade to would_* (deploying denies nobody). Omit resource for a list read → returns a filter (allowed org/user/class ids) to constrain your query.
  • Guards (throw AuthzError(403) in enforce, return would_* in shadow): authorize, assertParentChildAccess, assertTeacherClassAccess, assertSchoolAccess, assertCanRead (object-level BOLA), requireAdmin / requireTeacherOrAdmin / requireParentOrGuardian.
  • Capability merge: mergeCapabilities (role_capabilities ⊕ user_capability_grants, deny-precedence, NULL tier → most-restrictive, M2M client_app keys).
  • Consent: classifyConsentBoundary, methodSatisfiesBasis / isVpc (COPPA under-13 VPC split).
  • Shadow: shadowCompare (run decide() beside your existing check, log-only, never blocks; optionally inject a real consentOk / resolveScope and set env.sink to a consent-gated sink so consent can produce a would_deny); shadowConsentCompare (consent-gate-only shadow for ingest sinks — e.g. "would this Caliper event be dropped for lack of behavioral_analytics consent?"). The [authz-shadow] log line is unchanged.

You inject your store + identity (the per-app glue)

const deps: DecideDeps = {
  resolveScope: (scope, subject) => /* your enrollments / guardianship_links / orgs query → ScopeResult */,
  consentOk:    (child, purpose, tenant) => /* your consent_records lookup → boolean */,
}
  • Build Principal from your already-verified identity (Cognito JWT / Clerk / Supabase / AppSync OIDC). Never trust an IdP group/claim/metadata for capabilities — resolve them from the authoritative store. Use system: true for non-HTTP workers (BullMQ/cron), readOnly: true for read-only service accounts.

Test / build

export PATH=/opt/homebrew/opt/node@20/bin:$PATH
npm install
npm test          # vitest: capability merge + RC fail-closed regressions + guards
npm run typecheck
npm run build     # tsup → dist/ (ESM + d.ts)

Consume (other repos)

.npmrc:

@superbuilders:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}

then npm i @super-oar/authz (yarn-berry: npmScopes in .yarnrc.yml; pnpm catalog repos: add a catalog entry).

Release

npm version <patch|minor|major> on a clean maingit push --follow-tags.github/workflows/publish.yml publishes to GitHub Packages (mirrors @super-oar/timeback-tracelog).

Not covered (separate deliverable)

bridge's Python tier can't consume a JS package → a separate @super-oar/authz-python sibling (parallel to timeback-tracelog-python), built later.