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

passji

v0.0.2

Published

Passji - Auth for the AI era

Readme

passji

Your emoji is your identity. passji.com

Add "Continue with Passji" to your app. Users pick 3-7 emoji, authenticate with Face ID / fingerprint, done.

  • No passwords — Passkeys only (Face ID, fingerprint, YubiKey)
  • No email required — Pseudonymous by default
  • Standard OIDC — Works with any OAuth library
  • AI-native — API keys for agents, delegated tokens for human+agent flows

Install

npm install passji

Next.js / Auth.js

import NextAuth from "next-auth";
import Passji from "passji/nextauth";

export default NextAuth({
  providers: [
    Passji({
      clientId: process.env.PASSJI_CLIENT_ID!,
      clientSecret: process.env.PASSJI_CLIENT_SECRET!,
    }),
  ],
});

Better Auth

import { betterAuth } from "better-auth";
import { passji } from "passji/better-auth";

export const auth = betterAuth({
  socialProviders: {
    passji: passji({
      clientId: process.env.PASSJI_CLIENT_ID!,
      clientSecret: process.env.PASSJI_CLIENT_SECRET!,
    }),
  },
});

React

import { PassjiProvider, usePassji } from "passji/react";

function LoginButton() {
  const { signIn, user } = usePassji();
  if (user) return <span>{user.emojiId}</span>;
  return <button onClick={signIn}>Sign in</button>;
}

// Token validated by your API (which has the secret)
<PassjiProvider
  clientId="your_client_id"
  onToken={(token) =>
    fetch("/api/auth", {
      method: "POST",
      body: JSON.stringify({ token }),
    })
  }
>
  <LoginButton />
</PassjiProvider>;

Server-side (Express, etc.)

import { createClient } from "passji/client";
import { createServer } from "passji/server";

// Client: generate auth URL with PKCE
const client = createClient({
  clientId: "your_client_id",
  redirectUri: "https://yourapp.com/callback",
});
const { url, codeVerifier } = await client.createAuthorizationURL();

// Server: exchange code for tokens
const server = createServer({
  clientId: "your_client_id",
  clientSecret: "your_client_secret",
  redirectUri: "https://yourapp.com/callback",
});
const tokens = await server.exchangeCode(code, codeVerifier);
const user = await server.verifyIdToken(tokens.idToken);

All Exports

| Export | Description | | -------------------- | ------------------------- | | passji | Core types | | passji/client | Browser/client-side SDK | | passji/server | Server-side SDK | | passji/react | React hooks & components | | passji/nextauth | NextAuth/Auth.js provider | | passji/better-auth | Better Auth helper | | passji/passport | Passport.js config |

Links