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

@12-apps/onboarding

v2.7.0

Published

Reusable guided onboarding: React provider + GuidedSection and the API-bound OnboardingStore (.), the host-mounted progress surface (./server: createApiOnboarding — GET/PATCH progress with save/dismiss/reset), a Hono adapter (./hono), and the package-owne

Readme

@12-apps/onboarding

Reusable, resumable, per-user×tenant onboarding progress for guided setup flows — one small system any app/page can adopt.

  • Persists exactly which step a user stopped on and an opaque per-feature payload, so a refresh resumes them where they left off (not the start).
  • Persistence-agnostic: the UI + hook talk to an injected OnboardingStore, so you back it with Prisma server actions, tRPC, REST, or anything.
  • Ships a Prisma helper (createOnboardingRepository) for the common case, and a GuidedSection UI that binds the state to @12-apps/ui's SectionOnboarding + stepper.

Both halves ship here (12-23): the screens AND the endpoints they persist through, one factory each. ADOPTING.md is the adoption contract — the config table, the wiring rules that bite, and the Phase B notes for a host that already has the table.

Exports

| Entry | Export | What | |---|---|---| | . | OnboardingProvider / useOnboarding | Client state, mutations through an injected OnboardingStore. | | . | GuidedSection | Landing hero → per-step wizard (stepper) → completed summary, driven by the persisted state. | | . | createOnboardingApiStore / fetchOnboardingState | The store bound to the package's OWN endpoints, so the URL, the body shape and the date revival are stated once instead of in every host. | | . | types | OnboardingStore, OnboardingStateSnapshot, GuidedStep, GuidedNav, … | | ./server | createApiOnboarding({ db }) | The progress surface as framework-neutral route descriptors — GET and PATCH with save / dismiss / reset. | | ./server | createOnboardingRepository(getPrisma) | The Prisma read/write helper under it (data-merge + started/completed stamping). | | ./hono | onboardingRouter({ db, resolveActor }) | The same surface as a mountable Hono router. hono is an OPTIONAL peer. | | prisma/ | onboarding.prisma + its migration | The package OWNS the OnboardingState model — a host syncs it (below) rather than retyping it. |

The data model comes with the package

Do not copy the model into your schema by hand. Use Prisma's multi-file schema folder and sync the package's own partial into it — a byte-for-byte COPY, never a symlink (a symlinked migration is silently skipped by Prisma):

node node_modules/@12-apps/onboarding/scripts/sync-onboarding-schema.mjs prisma/schema

The migration ships in prisma/migrations/, and every statement in it is guarded — so a host that ALREADY has onboarding_states applies it as a no-op, with no prisma migrate resolve dance. See ADOPTING.md.

Wiring

// server: one mount. The host keeps only who is calling, and where data lives.
const onboarding = onboardingRouter({
  db: async () => (await getPrismaClient()) as unknown as OnboardingPrisma,
  featureKeys: ['ai_integration'],
  resolveActor: (c) => resolveActorFor(c), // → { userId, clientId } | null
});
app.route('/api/admin/:tenantSlug', onboarding.router);

// browser: the package's own store, against those endpoints
const store = createOnboardingApiStore({ apiBase, featureKey: 'ai_integration' });
const initial = await fetchOnboardingState({ apiBase, featureKey: 'ai_integration' });

<OnboardingProvider featureKey="ai_integration" store={store} initialState={initial}>
  <GuidedSection steps={steps} title="…" configuredSummary={…} />
</OnboardingProvider>

A host whose persistence is NOT these routes (localStorage, tRPC, server actions) still passes its own OnboardingStore — that seam is unchanged.