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

@open-neko/plugin-scalekit

v0.2.1

Published

Scalekit SSO provider for OpenNeko. Implements OpenNeko's generic OIDC auth contract over Scalekit's hosted gateway, which fronts Okta, Entra ID, Google Workspace, JumpCloud, and other enterprise IdPs behind one integration. Runs in a microsandbox VM with

Readme

@open-neko/plugin-scalekit

Scalekit SSO provider for OpenNeko. Implements OpenNeko's generic OIDC auth contract over Scalekit's hosted gateway, which fronts Okta, Entra ID, Google Workspace, JumpCloud, Ping, and the rest of the enterprise IdP stack behind one integration.

Install once, get the entire enterprise identity ecosystem.

Install

# From the official OpenNeko marketplace (verified integrity hash):
openneko install @open-neko/plugin-scalekit

# Or, bypassing every marketplace (e.g. while testing a local build):
openneko install @open-neko/plugin-scalekit --unverified

During install the CLI prompts for three values (SCALEKIT_ENVIRONMENT_URL, SCALEKIT_CLIENT_ID, SCALEKIT_CLIENT_SECRET) and stores them in the per-user secrets file at ~/.config/openneko/secrets.json (0600 perms). The worker injects them into the plugin's VM at exec time — the secret never lands in openneko.plugins.json or anywhere else tracked by git.

Rotate any of them later with:

openneko secrets set @open-neko/plugin-scalekit SCALEKIT_CLIENT_SECRET

Scalekit setup

  1. Create a Scalekit account at https://www.scalekit.com. Copy your environment URL from the API config screen — looks like https://your-app.scalekit.com.
  2. Under Applications → New, register OpenNeko as an app. Set the Redirect URI to your OpenNeko deployment's callback: https://<your-openneko-host>/api/auth/callback.
  3. Copy the issued Client ID and Client Secret.
  4. Connect at least one IdP (Okta, Entra, Google Workspace, …) to the application from Scalekit's Connections screen. Scalekit handles the per-IdP wiring.

That's it — every IdP you ever connect in Scalekit lights up in OpenNeko without code changes.

How the auth flow works

OpenNeko's web app and this plugin implement a standard OIDC authorization-code flow:

  1. User clicks Sign in with Scalekit on /signin.
  2. OpenNeko mints a CSRF token, calls begin_auth on the plugin, gets back a Scalekit /oauth/authorize URL, and redirects the browser.
  3. Scalekit routes to the right downstream IdP (Okta / Entra / etc.) using login_hint if supplied.
  4. The IdP authenticates the user and bounces back to /api/auth/callback with a code.
  5. OpenNeko verifies the CSRF token, calls complete_auth, which exchanges the code for tokens at /oauth/token and fetches the user profile from /userinfo.
  6. OpenNeko upserts the user in app_user, sets a session cookie, and redirects to the dashboard.

The plugin only ever sees Scalekit URLs. The plugin never sees OpenNeko's session cookie or app DB.

Capabilities (manifest)

network:
  - "*.scalekit.com"
env:
  - SCALEKIT_ENVIRONMENT_URL   # required, not secret (it's the public env URL)
  - SCALEKIT_CLIENT_ID         # required, not secret
  - SCALEKIT_CLIENT_SECRET     # required, secret
provides_auth: true

The OpenNeko plugin loader translates network into the microsandbox VM's egress policy. Any attempt to reach a non-Scalekit host is blocked at the VM boundary.

Identity mapping

The plugin's complete_auth returns an AuthIdentity object with the following fields, derived from Scalekit's /userinfo claims:

| OpenNeko field | Source claim | Notes | |---|---|---| | sub | sub | Stable IdP subject. Treated as the primary key. | | email | email | Required. If the IdP didn't release email, the plugin errors clearly. | | name | name, else given_name + family_name | null if neither is present. | | orgId | organization_id | Scalekit's tenant id. null for IdPs that don't supply one. | | groups | union of groups + roles | Both are passed through — IdPs differ in which they emit. |

OpenNeko's core decides how (or whether) to map groups to internal roles; the plugin doesn't impose a mapping.

Local development

pnpm install
pnpm test
pnpm build       # → dist/run.js (bundled, single file for the microVM)

# Smoke-test the runner directly:
SCALEKIT_ENVIRONMENT_URL=https://your-app.scalekit.com \
SCALEKIT_CLIENT_ID=… SCALEKIT_CLIENT_SECRET=… \
  node dist/run.js register '{}'

License

Apache-2.0