A production-ready waitlist API built with Node.js, Express, and MongoDB.
Designed for startups, landing pages, and SaaS products that need a simple and secure way to collect early users.
Almost every product needs a waitlist, yet most examples online are either incomplete or unsafe for production.
This project provides a clean, minimal backend that you can deploy immediately and extend as your product grows.
- Add users to a waitlist
- Prevent duplicate email signups
- Input validation and sanitization
- Public rate limiting to prevent abuse
- Secure admin-only endpoints
- Export waitlist data as CSV
- Health check endpoint for monitoring
- Node.js
- Express
- MongoDB with Mongoose
- Helmet for security headers
- Express Rate Limit
- dotenv for configuration
git clone https://github.com/ibrahimpelumi6142/waitlist-api-starter.git
cd waitlist-api-starternpm installCreate a .env file from the example:
cp .env.example .envUpdate the values inside .env as needed.
npm run devThe API will be available at:
http://localhost:3001
POST /api/waitlist
{
"email": "user@example.com",
"firstName": "Ibrahim",
"incomeRange": "£1k-£3k",
"interestedFeatures": ["Job alerts", "CV builder"]
}GET /api/waitlist/health
Returns a simple status response to confirm the API is running.
GET /api/waitlist/admin/list?limit=50&skip=0
Header required:
x-admin-key: YOUR_ADMIN_API_KEY
GET /api/waitlist/admin/export.csv
Header required:
x-admin-key: YOUR_ADMIN_API_KEY
Downloads the full waitlist as a CSV file, ready for Excel or Google Sheets.
- Public endpoints are rate limited
- Admin endpoints are protected with an API key
- Duplicate emails are blocked at database level
- Inputs are sanitized before saving
This API can be deployed on:
- VPS with Nginx (old or new)
- Render
- Fly.io
- Railway
- Any Node.js compatible hosting
Use a managed MongoDB service or your own MongoDB instance.
- Startup waitlists
- Product launch signups
- Beta access forms
- SaaS onboarding
- Marketing landing pages
MIT
Ibrahim Lasisi
Built for real-world use by developers who value clean, practical backend systems.