Quickstart
1. Install the CLI
Section titled “1. Install the CLI”npm install -g @saas-maker/cli2. Log in
Section titled “2. Log in”fnd loginOpens your browser for Google OAuth. Your session token is saved to ~/.foundry/config.json.
3. Create a project
Section titled “3. Create a project”fnd projects create --name "My App"This creates a project and prints its id, slug, and project_key (starts with pk_). Treat the pk_ key as your public-facing API key — the SDK and widgets use it. Drop --name to be prompted interactively.
4. Link your app directory
Section titled “4. Link your app directory”cd ~/my-appfnd initfnd init lists your projects, lets you pick one, and writes a foundry.json in the current directory linking the repo to the project.
5. Check your setup
Section titled “5. Check your setup”fnd whoami # show your session user and linked projectfnd keys # print the linked project keyfnd doctor # quick health + drift check6. Integrate the SDK
Section titled “6. Integrate the SDK”npm install @saas-maker/sdkimport { SaaSMakerClient } from '@saas-maker/sdk';
const client = new SaaSMakerClient({ apiKey: 'pk_your_api_key', baseUrl: 'https://api.sassmaker.com',});
await client.feedback.submit({ title: 'Add dark mode', description: 'Would love a dark mode option', type: 'feature', submitter_email: 'user@example.com',});Or use curl directly:
curl -X POST https://api.sassmaker.com/v1/feedback \ -H "Content-Type: application/json" \ -H "X-Project-Key: pk_your_api_key" \ -d '{ "title": "Add dark mode", "description": "Would love a dark mode option", "type": "feature", "submitter_email": "user@example.com" }'Next steps
Section titled “Next steps”- CLI reference — all CLI commands
- Authentication — when to use the API key vs. session token
- API overview — base URL, error envelope, pagination, status codes
- Integration guide — Next.js / Vite wiring
- Feedback, Roadmap, Testimonials — per-service references