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

@mentingo/competencies-sdk

v0.1.0

Published

Server-side client and contracts for the Mentingo competencies plugin.

Readme

@mentingo/competencies-sdk

Server-side client and contracts for the competencies plugin. Requires Node.js 22.15 or newer. Keep the API key and trusted actor scope on the server.

import { createCompetenciesClient } from "@mentingo/competencies-sdk";

const client = createCompetenciesClient({
  baseURL: process.env.COMPETENCIES_BASE_URL!,
  apiKey: process.env.COMPETENCIES_API_KEY!,
  tenantId: tenant.id,
});

const configuration = await client.configuration();
if (configuration.capabilities.competencies.enabled) {
  const workspace = await client.workspace(actorContext);
}

Build actorContext from the current authenticated user, permissions and managed subjects on each request. Never copy it from browser input. The plugin additionally checks its own verifier lists. Bind every client to the matching tenant and key scope.

workspace(actor, subjectId?, profileId?, teamOnly?) supports selected-profile comparisons. teamOnly restricts subjects to the actor's current managed-subject IDs.

The SDK sends bearer authentication and x-tenant-id, refuses redirects and applies a 15-second deadline. Failed responses throw CompetenciesApiError with a status and without the response body. Download methods return a stream; pipe it to the authorized response. fetch can be supplied for deterministic transport tests.

Commands use version/revision checks and stable request IDs for repeatable evidence and assignment work. Learning facts use stable identities and monotonic revisions; complete reconciliation snapshots are distinct from incremental delivery.

Levels require all conditions at that level and below it. Employees submit their own evidence; designated condition verifiers review it. Managers read their current subjects, while administrators manage the tenant catalog and job profiles. Import contracts without the client using @mentingo/competencies-sdk/types.

Build and verify with pnpm build, pnpm typecheck and pnpm test. Package publication is a separate release operation.

MIT. See LICENSE.