Waitlist Widget
Drop-in React component for collecting waitlist signups. Works with the Waitlist service API.
Installation
Section titled “Installation”npm install @saas-maker/waitlistimport { WaitlistWidget } from '@saas-maker/waitlist';
function App() { return ( <WaitlistWidget projectId="pk_your_api_key" apiBaseUrl="https://api.sassmaker.com" /> );}The widget calls these endpoints:
| Method | Endpoint | Description |
|---|---|---|
| POST | /v1/waitlist | Sign up (email required) |
| GET | /v1/waitlist/count | Get total signups |
SDK Alternative
Section titled “SDK Alternative”import { SaaSMakerClient } from '@saas-maker/sdk';
const client = new SaaSMakerClient({ apiKey: 'pk_your_api_key' });
// Add to waitlistawait client.waitlist.join({ email: 'user@example.com' });
// Get countconst { count } = await client.waitlist.getCount();fnd waitlist listfnd waitlist countfnd waitlist delete <id>