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

waitlist-email-react

v0.3.0

Published

A dead-simple waitlist email collection form/client for self-hosted waitlist-email instances.

Readme

waitlist-email-react

npm version License: MIT

The official React component and client library for self-hosted waitlist-email backends.

Add a simple, reliable email waitlist to your Next.js or React site in seconds.


Quick Start

1. Install

npm i waitlist-email-react

2. Add to your page

import { WaitlistForm } from "waitlist-email-react/react";

export default function App() {
  return (
    <WaitlistForm
      baseUrl="https://your-backend.vercel.app"
      projectId="my-project"
    />
  );
}

That's it! It automatically handles submitting, loading states, validation, and feedback messages.


Customization & Styling (Zero CSS / Tailwind Required)

WaitlistForm comes with responsive built-in inline styles so you don't need to write Tailwind CSS or external CSS files. The input field and button sit cleanly in the same row, with the input automatically expanding to take up more width than the button.

<WaitlistForm
  baseUrl="https://your-backend.vercel.app"
  projectId="my-project"
  maxWidth="500px"
  borderRadius="8px"
  buttonColor="#2563eb"
  buttonTextColor="#ffffff"
/>

When the user clicks (focuses) the email input, the outline color automatically matches buttonColor (e.g. #2563eb).


Props

| Prop | Default | Description | | ------------------ | ------------------- | ------------------------------------------------------------------------------------ | | baseUrl (req) | — | Your self-hosted waitlist backend URL | | projectId (req)| — | Your project ID created on the backend | | placeholder | "[email protected]" | Input placeholder text | | buttonLabel | "Join waitlist" | Button label | | loadingLabel | "Joining..." | Button label while submitting | | successMessage | — | Custom text shown on successful email submission | | width | "100%" | Form width (e.g., "100%", "400px", 400) | | maxWidth | "100%" | Form max width (e.g., "500px", 500) | | borderRadius | "8px" | Border radius for both input box and button (e.g., "8px", 8, "0.5rem") | | buttonColor | "#000000" | Button background color. Automatically becomes input focus outline color when clicked | | buttonTextColor | "#ffffff" | Button text color | | showModal | true | Displays a responsive modal popup for status feedback (success, error, already registered) | | onSuccess | — | Callback: (status: "success" \| "already_exists") => void | | onError | — | Callback: (message: string) => void | | style | — | Extra inline styles for <form> | | className | "" | Extra class name for <form> |


Headless API (Vanilla JS / TypeScript)

If you want to build your own custom form, use joinWaitlist directly:

import { joinWaitlist } from "waitlist-email-react";

const res = await joinWaitlist({
  baseUrl: "https://your-backend.vercel.app",
  projectId: "my-project",
  email: "[email protected]",
});

if (res.ok) {
  console.log(res.message); // "You're on the list!"
} else {
  console.error(res.message); // "Something went wrong."
}

Backend Setup

Need a backend? Deploy your own free copy of waitlist-email

License

MIT