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

fleet-waitlist-widget

v0.1.0

Published

Drop-in React waitlist form for Fleet. Posts submissions to your server, which forwards to fleet-waitlist-submit and commits to your vault.

Readme

fleet-waitlist-widget

Drop-in React waitlist form for Fleet. Posts to your server, which calls fleet-waitlist-submit and commits the signup to your vault repo.

Install

npm install fleet-waitlist-widget

Use

import { FleetWaitlist } from 'fleet-waitlist-widget'

<FleetWaitlist
  submitTo="/api/waitlist"
  product="inference"
/>

That's the minimum. The form renders an email input, a submit button, and a hidden honeypot field. On success it swaps to "You're on the list."

What your server needs to do

The widget POSTs { product, email, name?, context?, source, honeypot } to submitTo. Your route should call fleet-waitlist-submit:

// app/api/waitlist/route.ts (Next.js example)
import { submit } from 'fleet-waitlist-submit'

export async function POST(req: Request) {
  const body = await req.json()
  const result = await submit({
    githubToken: process.env.GITHUB_TOKEN!,
    vaultRepo: 'biscaynedev/halsey-vault',
    product: body.product,
    email: body.email,
    name: body.name,
    context: body.context,
    source: body.source,
    honeypot: body.honeypot,
  })
  if (!result.ok) {
    return Response.json({ error: result.error }, { status: 400 })
  }
  return Response.json({ ok: true })
}

Props

| Prop | Type | Default | Notes | | --- | --- | --- | --- | | submitTo | string | — | Your endpoint path. Required. | | product | string | — | Product slug. Required. | | buttonLabel | string | "Join waitlist" | | | placeholder | string | "[email protected]" | | | successMessage | string | "You're on the list." | | | showNameField | boolean | false | | | showContextField | boolean | false | | | source | string | "widget" | Stored in the signup file's frontmatter. | | className | string | — | Applied to form root (and success state if no successClassName). | | inputClassName | string | — | Applied to each input/textarea. | | buttonClassName | string | — | Applied to submit button. | | successClassName | string | — | Applied to the success message div. | | errorClassName | string | — | Applied to the error alert. | | style | CSSProperties | — | Inline style on the form root. | | onSuccess | (email) => void | — | Fires after successful submit. | | onError | (error) => void | — | Fires on validation/network error. |

Styling

The widget ships unstyled by default — it works with any design system. Use the className props to slot in Tailwind, CSS modules, or whatever you have:

<FleetWaitlist
  submitTo="/api/waitlist"
  product="inference"
  className="flex gap-3 items-center"
  inputClassName="flex-1 rounded-lg border border-zinc-700 bg-zinc-900 px-4 py-3 text-zinc-100"
  buttonClassName="rounded-lg bg-gradient-to-r from-cyan-500 to-indigo-500 px-6 py-3 font-semibold text-zinc-900"
  successClassName="rounded-lg border border-emerald-500/30 bg-emerald-500/10 px-5 py-3 text-emerald-300"
  errorClassName="text-rose-400 text-sm mt-2"
/>

Honeypot

The widget includes a hidden website field positioned off-screen and aria-hidden. Bots fill it; humans don't. Your server forwards it to fleet-waitlist-submit as honeypot, which silently drops the submission if it's non-empty.

For higher-stakes forms, layer your own Turnstile/hCaptcha on top in the API route.

Related

License

MIT © Halsey Huth