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

@caliobase/caliobase

v0.7.25

Published

This library was generated with [Nx](https://nx.dev).

Readme

caliobase

This library was generated with Nx.

Running unit tests

Run nx test caliobase to execute the unit tests via Jest.

Running lint

Run nx lint caliobase to execute the lint via ESLint.

Auth rate limiting

Caliobase applies in-memory rate limits to credential-style auth operations by default, including password login, OTP requests/login, password reset, social validation, and machine token exchange. Exceeded limits return HTTP 429.

Override or disable limits with authRateLimit:

await CaliobaseAuthModule.forRootAsync({
  profileEntities,
  authRateLimit: {
    passwordLogin: { limit: 10, windowMs: 15 * 60 * 1000 },
    machineTokenExchange: { limit: 60, windowMs: 60 * 1000 },
    socialValidate: false,
  },
});

Set authRateLimit: false to disable all built-in auth rate limits.

Machine OIDC token exchange

Caliobase can exchange a trusted machine OIDC JWT for a short-lived Caliobase JWT. Configure trusted issuers on CaliobaseAuthModule.forRootAsync:

await CaliobaseAuthModule.forRootAsync({
  profileEntities,
  machineOidcIssuers: [
    {
      name: 'github-actions',
      issuer: 'https://token.actions.githubusercontent.com',
      audience: 'caliobase-machine-auth',
      subjects: [
        {
          subject: 'repo:justicointeractive/nats2015s:environment:staging',
          userId: 'user_machine_octavius',
          organizationId: 'org_nats2015s',
          name: 'nats2015s staging automation',
        },
      ],
    },
  ],
});

Then exchange either a JSON body token or an Authorization bearer token:

POST /machine-auth/oidc/exchange
Authorization: Bearer <trusted-oidc-jwt>

The incoming OIDC JWT must match the configured issuer, audience, and exact subject binding. The response contains a short-lived Caliobase bearer JWT scoped to the configured userId and organizationId.

Public app content access

For public or server-rendered apps that need Caliobase content, keep the Caliobase machine token on the app server. Store it as a server-only secret, exchange it via POST /machine-auth/exchange, then use the returned short-lived Caliobase bearer JWT for content API calls.

Cache the returned bearer JWT server-side and share that cache entry across public-content requests/users. Do not exchange the machine token per browser visitor or per request; reuse the cached JWT until it is close to its expiresIn deadline, refresh it once, and replace the shared cache entry. This avoids turning public traffic into machine-token exchange traffic and hitting exchange rate limits.

Do not ship machine tokens or the cached app-server JWT to the browser or expose them through public client environment variables. Browser code should call the app's own loader/API route or receive rendered content from server code.

Downstream apps should prefer generated OpenAPI clients for Caliobase calls. If controller or entity changes affect the API shape, regenerate the client and commit the generated artifacts rather than maintaining hand-written fetch wrappers.