Skip to content

Quickstart

Terminal window
npm install -g @saas-maker/cli
Terminal window
fnd login

Opens your browser for Google OAuth. Your session token is saved to ~/.foundry/config.json.

Terminal window
fnd projects create

Follow the prompt to name your project. This generates a unique API key (starts with pk_).

Terminal window
cd ~/my-app
fnd init

Select your project from the list. This creates a foundry.json config in your project root.

Terminal window
fnd keys # show your API key
fnd status # show project stats
Terminal window
npm install @saas-maker/sdk
import { 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:

Terminal window
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"
}'