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

@atlasauth/elements

v0.11.0

Published

Headless, unstyled, composable React primitives for building a **fully custom** Atlas sign-in / sign-up UI. The Atlas peer of `@clerk/elements`.

Readme

@atlasauth/elements

Headless, unstyled, composable React primitives for building a fully custom Atlas sign-in / sign-up UI. The Atlas peer of @clerk/elements.

Atlas owns the auth state machine — the server returns a status and these primitives render whatever step that status maps to. You own every pixel: each primitive renders a bare DOM element (or merges onto your own element via asChild), with no styles and no class names.

pnpm add @atlasauth/elements @atlasauth/react

It is driven by <AtlasProvider> from @atlasauth/react, which must wrap your app (it holds the publishable key, the session, and the FAPI origin).

Concepts

  • SignIn.Root / SignUp.Root — start the attempt flow and provide its context. Optional afterUrl sends the user on once the flow completes.
  • SignIn.Step name="start | first-factor | second-factor | mfa-enrollment | verifications | reset-password | sso-callback | complete | error" — renders its children only when the server's current status resolves to that step. Exactly one step is live at a time, and the server picks it — never the client.
  • Field name="identifier | password | code | email | …" with Field.Label, Field.Input, Field.Error — a controlled input bound to the flow's collected values, with the attempt's error for that field surfaced inline.
  • SignIn.Action action="submit | resend | navigate" — a bare <button> that fires the right attempt method. submit advances the attempt; resend re-sends an emailed code; navigate routes.
  • SignIn.Strategy name="password | email_code | passkey | oauth_<provider>" — renders its children only when that strategy is available for the current attempt (the server's supported_first_factors, or social / passkey on the start screen).
  • SignIn.Connection provider="google" / SignIn.PasskeyButton — convenience buttons that begin a social or passkey sign-in.

Every primitive also accepts asChild (merge behaviour onto your own element) or a render-prop child, so the markup is entirely yours.

Full example

import { AtlasProvider } from '@atlasauth/react';
import * as SignIn from '@atlasauth/elements/sign-in';
import { Field } from '@atlasauth/elements';

export function CustomSignIn() {
  return (
    <AtlasProvider publishableKey={PK} frontendApi="https://atlasauth.net">
      <SignIn.Root afterUrl="/dashboard">
        {/* 1. identifier + social + passkey */}
        <SignIn.Step name="start">
          <Field name="identifier">
            <Field.Label>Email</Field.Label>
            <Field.Input />
            <Field.Error />
          </Field>
          <SignIn.Action action="submit">Continue</SignIn.Action>

          <SignIn.Connection provider="google">Continue with Google</SignIn.Connection>
          <SignIn.Strategy name="passkey">
            <SignIn.PasskeyButton>Use a passkey</SignIn.PasskeyButton>
          </SignIn.Strategy>
        </SignIn.Step>

        {/* 2. first factor — render the strategy the server offers */}
        <SignIn.Step name="first-factor">
          <SignIn.Strategy name="password">
            <Field name="password">
              <Field.Label>Password</Field.Label>
              <Field.Input />
              <Field.Error />
            </Field>
          </SignIn.Strategy>
          <SignIn.Strategy name="email_code">
            <Field name="code">
              <Field.Label>Emailed code</Field.Label>
              <Field.Input />
              <Field.Error />
            </Field>
            <SignIn.Action action="resend">Resend code</SignIn.Action>
          </SignIn.Strategy>
          <SignIn.Action action="submit">Sign in</SignIn.Action>
        </SignIn.Step>

        {/* 3. second factor */}
        <SignIn.Step name="second-factor">
          <Field name="code">
            <Field.Label>Authentication code</Field.Label>
            <Field.Input />
            <Field.Error />
          </Field>
          <SignIn.Action action="submit">Verify</SignIn.Action>
        </SignIn.Step>

        {/* 4. a status this build doesn't know → an honest fallback, never blank */}
        <SignIn.Step name="error">
          <p role="alert">Please update the app and try again.</p>
        </SignIn.Step>
      </SignIn.Root>
    </AtlasProvider>
  );
}

Sign-up is identical in shape under @atlasauth/elements/sign-up — a start step collecting email + password, then a verifications step for the emailed code.

Building your own primitive

The flow context and the pure state machine are exported, so you can build anything the built-in parts don't cover:

import { useFlowContext, stepMatches, bindField } from '@atlasauth/elements';

License

MIT