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

@intisy-ai/core-auth

v1.1.0

Published

Provider account, OAuth, and quota library for the intisy-ai AI-proxy ecosystem.

Readme

core-auth

The provider library every account-backed plugin builds on. It owns everything a provider needs that is not its own upstream wire format: the account store, the OAuth and in-browser login flows, the shared provider settings surface, rate-limit and quota bookkeeping, and the front-door seam that lets a provider stay handleIr-only.

Compiled from the submodule and bundled into each provider, and published as @intisy-ai/core-auth so a provider installed from npm resolves it as a dependency instead of inlining a copy.

Under-the-Hood Architecture

flowchart TD
    PROVIDER["provider plugin (antigravity-auth, claude-code-auth, ...)"] -->|imports| CA["core-auth (this repo)"]
    CA --> ACC["accounts: the config/accounts.json store"]
    CA --> LOGIN["login / oauth: loginFlow, browser, paste-code"]
    CA --> MGR["manager: account selection + ensureAccess"]
    CA --> RL["ratelimit / quota-health: cooldowns, quota pools"]
    CA --> SET["provider settings: the def.settings editor surface"]
    CA --> FD["frontdoor: the injected AppFrontDoor seam"]
    FD -->|app wire <-> IR| APP["whichever app-proxy is resolved at runtime"]
    PROVIDER -->|handleIr only| FD

The front-door is deliberately injected rather than imported: core-auth stays app-agnostic, so it never names an app or an app-proxy. A provider implements handleIr(IrRequest, ctx) and never sees the app's wire format.

Structure

  • src/accounts.ts, src/live-store.ts — the account store and the live Store threaded through HandlerCtx (never construct a second one)
  • src/login.ts, src/oauth.ts, src/oauth-login.ts, src/browser.ts — the unified login flow, including paste-a-redirect-URL for container use
  • src/manager.ts, src/controller.ts — account selection and ensureAccess
  • src/ratelimit.ts, src/quota-health.ts, src/leaderboard.ts — cooldowns, quota pools, and per-provider quota reporting
  • src/provider.ts, src/provider-common.ts, src/provider-plugin.ts — the provider definition surface and its plugin runtime
  • src/frontdoor.ts — the injected AppFrontDoor seam (names no app)
  • src/errors.ts — the typed HandleIrError the front-door duck-types by name
  • java/ — the TeaVM single-source Java side, built by npm run build:teavm
  • dist/ — compiled output (generated; not committed)

Installation

As a submodule, for a provider built in this ecosystem:

git submodule add https://github.com/intisy-ai/core-auth core-auth

Or as an npm dependency, for a provider that carries no submodules:

npm install @intisy-ai/core-auth

Configuration

core-auth reads its own settings from config/auth.json in the active app's config dir, and keeps accounts in config/accounts.json. No config file is created until a value is actually set.

Logging

Logs are tagged [core-auth] and written to <configDir>/logs/YYYY-MM-DD/core-auth-HH-MM-SS.log. Console mirroring follows the ecosystem-wide logConsole setting in config/settings.json.

License

MIT