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

@sawala/akuna-react

v0.3.0

Published

Drop-in membership UI for your website — bring your own Clerk app, add sign-up/sign-in and a synced member directory with one Sawala API key and no backend.

Readme

@sawala/akuna-react

Drop-in membership UI for your website. Bring your own Clerk application, add <MembershipProvider> + Clerk's sign-up/sign-in components with one Sawala project API key, and every member who registers is mirrored into a Sawala member directory — no backend to write or host.

The customer never hardcodes a Clerk key in their site. <MembershipProvider> fetches the connection's public config (publishable key + appearance) from the Sawala gateway using only the API key, then boots Clerk.

Install

npm install @sawala/akuna-react @clerk/clerk-react react react-dom

@clerk/clerk-react, react, and react-dom are peer dependencies.

Usage

import {
  MembershipProvider,
  SignedIn,
  SignedOut,
  SignIn,
  UserButton,
  useMember,
} from '@sawala/akuna-react'

export default function App() {
  return (
    <MembershipProvider apiKey="pk_live_…">
      <SignedOut>
        <SignIn routing="hash" />
      </SignedOut>
      <SignedIn>
        <UserButton />
        <Profile />
      </SignedIn>
    </MembershipProvider>
  )
}

function Profile() {
  const { member, isLoaded } = useMember()
  if (!isLoaded) return null
  return <p>Signed in as {member?.email}</p>
}

apiKey is a Sawala project-scoped public key (pk_live_… / pk_test_…) scoped for the akuna product — mint it in the Sawala dashboard under Settings → API keys.

Options

<MembershipProvider> props:

  • apiKey (required) — the Sawala project API key.
  • baseUrl — override the gateway base. Defaults to https://api.sawala.cloud/public/akuna.
  • loadingFallback — rendered while the config is fetched.
  • errorFallback(error) => ReactNode, rendered if the config fetch fails.

Exports

MembershipProvider, useMembershipConfig, useMember, and the re-exported Clerk components SignIn, SignUp, UserButton, SignedIn, SignedOut, RedirectToSignIn.

Example

See example/ for a minimal Vite app that mounts <MembershipProvider> + <SignUp> and completes a real registration against a Clerk dev instance using only an API key.