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

@forjio/auth-ui

v0.4.2

Published

Shared auth forms (login, signup, forgot-password, reset-password) for the Forjio family of SaaS products. Sister package to @forjio/website-ui and @forjio/portal-ui.

Readme

@forjio/auth-ui

Shared auth forms for the Forjio family. Login, signup, forgot- password, reset-password — all with the same look as every other Forjio product, all wired to the standard @forjio/sdk/auth-handlers backend endpoints (override via endpoints prop if your product mounts them somewhere else).

Sister package to @forjio/website-ui

  • @forjio/portal-ui. Extracted from saas-plugipay on 2026-05-19 as the canonical reference build per TEMPLATE.md Step 4.

Install

npm i @forjio/auth-ui lucide-react

Peer deps: react, react-dom, next (App Router), lucide-react. Tailwind is not a peer dep but the components use shadcn-style utility classes (bg-primary, text-muted-foreground, etc.) so the host product needs a Tailwind config that exposes the shadcn token set.

Usage

// app/(auth)/login/page.tsx
'use client';
import { AuthForm } from '@forjio/auth-ui';

export default function LoginPage() {
  return <AuthForm mode="login" brand="Kalium" />;
}

// app/(auth)/signup/page.tsx
'use client';
import { AuthForm } from '@forjio/auth-ui';

export default function SignupPage() {
  return <AuthForm mode="signup" brand="Kalium" />;
}

// app/(auth)/forgot-password/page.tsx
'use client';
import { ForgotPasswordForm } from '@forjio/auth-ui';

export default function ForgotPasswordPage() {
  return <ForgotPasswordForm />;
}

// app/(auth)/reset-password/page.tsx
'use client';
import { ResetPasswordForm } from '@forjio/auth-ui';

export default function ResetPasswordPage() {
  return <ResetPasswordForm />;
}

Props

AuthForm

| Prop | Default | Notes | |-------------------|----------------------------------|------------------------------------------------------| | mode | required | 'login' or 'signup' | | brand | required | Brand name shown in copy (e.g. 'Kalium') | | endpoints | family defaults | Override paths if backend mounts differ | | providers | null (fail-open shows all) | { google?, apple?, facebook? } bools — host fetches | | defaultReturnTo | /dashboard | Redirect after success; ?return_to= overrides |

ForgotPasswordForm / ResetPasswordForm

| Prop | Default | Notes | |-------------|------------------|------------------------------------| | endpoints | family defaults | Override paths if backend differs |

Endpoint defaults

{
  login:          '/api/v1/auth/login',
  signup:         '/api/v1/auth/signup',
  forgotPassword: '/api/v1/auth/password-reset/request',
  resetPassword:  '/api/v1/auth/password-reset/complete',
  socialStart:    '/api/v1/auth/huudis/start',
}

These match the routes mounted by @forjio/sdk/auth-handlers. New products should mount the same paths and not override the prop.

Social login

AuthForm renders Google, Apple, and Facebook buttons. Each is gated on providers (fail-open — undefined/null shows all three). Each button links to socialStart?provider=<name>&return_to=….

MFA hand-off

The product BFF does not do inline MFA. When a user with MFA enabled signs in, the @forjio/sdk /login route returns 401 with body { error: { code: 'MFA_REQUIRED', … } }. AuthForm detects this and redirects the browser to the Huudis hosted-login flow (socialStart?return_to=…, no provider=), where Huudis performs the two-factor challenge. No TOTP form is rendered product-side.

Why Tailwind classes (not inline styles)?

Auth forms are visually opinionated — inputs, buttons, error states, labels — and every Forjio product uses shadcn-flavored Tailwind. Inline styles would diverge from the host's design system. The shadcn token set (bg-primary, text-muted-foreground, border-border) is stable across all 8 active products. Sister @forjio/portal-ui uses inline styles because its surface is structural chrome where Tailwind would collide with the host.

License

UNLICENSED — private Forjio family package.