Oouhammmourachid /
Public
ouhammmourachid / waitlist
PublicA production-ready PocketBase waitlist collection for collecting emails, assigning queue positions, tracking invitation status, and recording signup sources.
- Auth
- 0 deploys
- 1 fork
Waitlist
A PocketBase waitlist for product launches: collect emails, assign queue positions, track invitations and signup sources, and send a branded confirmation email.
Features
- Public signup form endpoint, with duplicate emails blocked
- Queue position assigned automatically (
#1,#2,#3...) - Status flow:
pending→invited→converted - Confirmation email with the visitor's position, branded with your app name
- Signup source tracking (
landing_page,twitter,producthunt...) - Visitors can't read the list or set their own status or position
Fields
| Field | Type | Description |
|---|---|---|
email | Unique, stored lowercase | |
name | Text | Optional, used in the confirmation email |
phone | Text | Optional |
status | Select | pending, invited, converted |
position | Number | Queue position, set by a hook |
invited_at | Date | When you sent the invitation |
source | Text | Where the signup came from |
created | Autodate | Creation date |
updated | Autodate | Last update date |
Rules
| Rule | Value | Meaning |
|---|---|---|
| List | null | Superusers only |
| View | null | Superusers only |
| Create | "" | Anyone can join |
| Update | null | Superusers only (you, from the dashboard) |
| Delete | null | Superusers only |
Setup
- Settings > Application: set the app name and URL. The email uses both.
- Settings > Mail settings: configure SMTP. Without SMTP, signups still work and no email is sent.
Usage
import PocketBase from "pocketbase"
const pb = new PocketBase("https://YOUR-INSTANCE.pocketshub.com")
const entry = await pb.collection("waitlist").create({
email: "user@example.com",
name: "Sam",
source: "landing_page",
})
console.log(`You're #${entry.position} in line`)
Invite people from the dashboard by setting status to invited and invited_at to now.
Use cases
- SaaS launches
- Beta programs and early access
- Product Hunt launches
- Private invitations
License
MIT
1 collection, 0 relations