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

@mostajs/auth-ui

v0.4.0

Published

Vues d'authentification & d'inscription (HTML-string, zéro dépendance) : modale de connexion magic-link et mot de passe, formulaire d'inscription double opt-in, accusés, et le RENDU des écrans décrits par @mostajs/auth-lite/views (oubli, réinitialisation,

Readme

@mostajs/auth-ui

Auteur : Dr Hamid MADANI [email protected]

Vues d'authentification & d'inscription en HTML-string, zéro dépendance (membre de mosta-ui-html-stack), plus des gabarits d'email réutilisables entre applications. Vue pure : un view-model → du HTML ; toute la logique (magic-link, session, double opt-in) reste dans @mostajs/auth et le câblage de l'app.

Installation

"dependencies": { "@mostajs/auth-ui": "file:../mosta-auth-ui" }

Aperçu

import { loginModal, registerForm, magicLinkEmailHtml } from '@mostajs/auth-ui';

// page de connexion
res.end(page({ body: loginModal({ state: 'form' }), theme: AUTH_CSS }));

// page d'inscription publique (double opt-in)
res.end(page({ body: registerForm({ sectors: ['IT', 'agritech'] }), theme: AUTH_CSS }));

// email envoyé par le transport (mailer) de l'app
await mailer.send({ to, subject: 'Connexion', html: magicLinkEmailHtml({ magicUrl, expiresAt, fromName: 'Hadhinat' }) });

// 0.3 — connexion par mot de passe : @mostajs/auth-lite DÉCRIT l'écran, auth-ui le REND
import { resetView } from '@mostajs/auth-lite/views';
res.end(page({ body: authView(resetView({ token })), theme: AUTH_CSS }));

Le contrat. authView ne connaît aucun nom de champ : il pose ceux du modèle. Une épreuve le confronte aux vrais modèles d'auth-lite, pour que l'écran et la route ne puissent pas diverger — la panne muette identifier/email de LabTrax (juillet 2026) était exactement cela.

Parcours d'inscription (double opt-in anti-bot)

  1. anonyme remplit registerForm → l'app crée un candidat + envoie registrationVerifyEmailHtml → registrationSent.
  2. clic sur l'email → l'app confirme l'adresse (aucune session ouverte) → registrationConfirmed.
  3. admin/manager accepte → l'app envoie accountAcceptedEmailHtml → le candidat se connecte (loginModal).

API

Voir llms.txt pour la liste complète des exports et leurs paramètres.

Tests

npm test   # @mostajs/mjs-unit — 13 tests, dont l'épreuve de contrat avec @mostajs/auth-lite

Licence

AGPL-3.0-or-later · © Dr Hamid MADANI