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

@asteby/metacore-setup-wizard

v0.1.1

Published

Generic resumable step wizard with live polling verification, plus the domain setup wizard, DNS record rows and live status badge

Downloads

258

Readme

@asteby/metacore-setup-wizard

Generic step wizard plus the pieces to verify a domain's DNS. Reusable by any addon: a step is { id, title, run, poll?, render? }.

pnpm add @asteby/metacore-setup-wizard lucide-react
@source "../node_modules/@asteby/metacore-setup-wizard/dist/**/*.{js,mjs}";

| Export | Purpose | | --- | --- | | StepWizard / useStepWizard | Steps with status pending / running / ok / error, diagnostics, retry, resume (persistKey + persistence), auto-advance. | | pollUntil / usePolling | Polling with constant, backoff-array or function intervals, max attempts, abort, pause while the tab is hidden. | | LiveStatusBadge | idle / checking / ok / error / missing / wrong_value / propagating. | | DnsRecordRow | Type, name, value with copy, per-record status, found value and diagnostic. | | DomainSetupWizard | Method (copy/paste or automatic) -> live per-record verification -> done. | | SetupWizardProvider | locale (es, en) and labels overrides. |

A step with poll re-runs run while it answers { status: 'pending' } and ends as ok, error, or error with exhaustedMessage when attempts run out.

<DomainSetupWizard
  domain="acme.com"
  records={[{ id: 'spf', type: 'TXT', name: 'acme.com', value: 'v=spf1 ...', purpose: 'SPF' }]}
  checkRecords={async (domain, signal) => api.checkDns(domain, { signal })} // { [id]: { status, found?, diagnostic? } }
  methods={[{ id: 'cloudflare', title: 'Cloudflare', onApply: ({ domain }) => api.applyCloudflare(domain) }]}
  pollInterval={[3000, 6000, 12000, 30000]}
  persistKey="onboarding"
  onComplete={() => navigate('/mail')}
/>

Decisión pendiente: dos implementaciones paralelas (I10)

Existe un asistente por pasos en este paquete (StepWizard / useStepWizard) y otro en @asteby/metacore-runtime-react (setup). Hoy conviven con máquinas de estado, persistencia y etiquetas separadas. Unificarlas (una sola fuente en SDK, la otra como adaptador) queda como decisión pendiente del equipo; este PR no la resuelve. Hasta decidir, no copies funciones entre ambas.

Notas de seguridad / operación

  • Los pasos dinámicos (steps/methods que llegan tras el montaje) se sincronizan solos; los pasos nuevos arrancan en pending.
  • createLocalWizardPersistence guarda estado en localStorage: usa un prefijo por usuario/tenant y límpialo al cerrar sesión.