Add the Getting Started onboarding checklist to this project. Two edits, no package, no wrapper component.
1. Load the widget once, just before </body> in the app's main layout:
<script src="https://gettingstarted.marthaia.com/sdk/v1/gs.min.js" defer></script>
2. Render it once, in the layout that signed-in users see:
<getting-started
endpoint="https://gettingstarted.marthaia.com"
project-key="pk_REPLACE_WITH_MY_KEY"
user-id="REPLACE_WITH_MY_USER_ID"
locale="en"></getting-started>
Rules: user-id must be my app's stable id for the signed-in user, because that is what progress is stored against; if nobody is signed in yet, omit user-id and the widget keeps progress per browser. locale should follow the user's language. Do not restyle the widget with CSS — it renders inside a shadow root and takes its colours from the project theme.
Embeddable onboarding checklist
Stop paying to acquire users who never activate.
Most signups quit before their first win. One <script> tag adds a
checklist that guides each new user to the action that matters, and remembers where
they stopped on any device. Free. 12 KB gzipped.
No card, no billing. One script tag, live this afternoon.
<script
src="https://gettingstarted.marthaia.com/sdk/v1/gs.min.js"
defer></script>
<getting-started
endpoint="https://gettingstarted.marthaia.com"
project-key="pk_your_publishable_key"
user-id="{{ current_user.id }}"></getting-started>
12 KB gzipped Zero runtime dependencies Runs on your own server
This is the widget, running live
The real bundle, mounted in a mock app. Configured from a draft payload — no key, no network, nothing leaves your browser.
How it works
-
Describe the checklist
In the console you add steps, write their texts in as many locales as you support, pick the colours, and choose which edge the panel docks to. Each step has a stable
key— that key is what progress is recorded against. -
Drop in one tag
The snippet above is the whole integration. The element reads its config, generates a visitor id for anonymous users, and renders. Pass your own
user-idwhenever you know who is looking. -
Report progress when it happens
The widget reports clicks itself, but the interesting moments are usually server-side — a payment settled, an integration connected. Say so from your backend with a secret key:
From your backendcurl -X POST https://gettingstarted.marthaia.com/api/gs/v1/server/complete \ -H "X-GS-Secret: sk_your_secret_key" \ -H "Content-Type: application/json" \ -d '{"userId":"u_1234","stepKey":"first_payment"}'
Or let your assistant do it
Point a coding assistant at this — it names the endpoint, the file to edit and the two attributes, so the answer comes back as a diff instead of a guess. Copy the one that matches your stack and replace the key with your own from the console.
Wire the Getting Started checklist into this Next.js app (App Router).
1. Load the script once, in app/layout.tsx:
import Script from 'next/script'
<Script src="https://gettingstarted.marthaia.com/sdk/v1/gs.min.js" strategy="afterInteractive" />
2. Render the widget in the authenticated layout only, e.g. app/(app)/layout.tsx:
<getting-started
endpoint="https://gettingstarted.marthaia.com"
project-key="pk_REPLACE_WITH_MY_KEY"
user-id={session.user.id}
locale={locale} />
3. It is a custom element, so declare it once for TypeScript:
declare global {
namespace JSX {
interface IntrinsicElements {
'getting-started': { endpoint?: string; 'project-key'?: string; 'user-id'?: string; locale?: string }
}
}
}
Do not write a React wrapper or a context provider: the element fetches its own config and keeps its own state.
Mark a checklist step complete from my backend when the user actually does the thing, instead of waiting for them to click it.
POST https://gettingstarted.marthaia.com/api/gs/v1/server/complete
X-GS-Secret: sk_REPLACE_WITH_MY_SECRET_KEY
Content-Type: application/json
{"userId":"REPLACE_WITH_MY_USER_ID","stepKey":"REPLACE_WITH_MY_STEP_KEY"}
Call this after the transaction that performs the action commits. Treat a non-2xx as a logged warning, never as a reason to fail the user's action. Keep the secret key on the server — it must never reach the browser. The widget shows the change on its next state fetch.
Replace pk_… and sk_… with your own keys from the
console — and the step key with one of the steps you
configured there. Nothing in these prompts is tied to a framework version, and
none of them asks an assistant to invent an API: every endpoint they name is
documented in full in the reference.
What you get
- Progress per end-user
- Anonymous visitors are tracked by a generated id. Hand over a
user-idand the anonymous history is merged into it once, so someone who started before signing up keeps what they finished. - Per-step translations
- Label, description, done text and button text, per locale. The subtitle is plural-aware, so “2 actions left” is a sentence you write once.
- Theming that stays yours
- Colours, radius, font, panel width and stacking order come from the project config. The widget renders in a shadow root, so its styles and yours cannot collide — and custom CSS is there when you need it.
- Events, not polling
- Step clicked, step completed, everything completed, dismissed, and errors — each a DOM event you can hand to your analytics. An SSE stream carries changes made on the server.
- Two shapes, one component
- A collapsible panel docked left or right on desktop; a peek bar above the bottom nav that expands into a sheet on mobile. The layout is configuration, not a second integration.
- Nothing to build
- A custom element that runs from a script tag with no bundler and no framework. A thin React wrapper ships in the same repository if you would rather pass props than attributes.
The API
Everything the widget does is a documented HTTP call you can make yourself. Browser calls use the publishable key; backend calls use the secret key, which never leaves your server.
| Endpoint | What it does |
|---|---|
GET /api/gs/v1/config | The assembled project config — steps, texts, theme. Sends an ETag, so a cached copy costs a 304. |
GET /api/gs/v1/state | Progress for one subject: completed steps, the next step, percentage. |
POST /api/gs/v1/complete | Mark a step done. dismiss and reset sit beside it. |
POST /api/gs/v1/identify | Attach a real user id to a visitor and merge their history. |
GET /api/gs/v1/stream | Server-sent events for state changes, so a step completed in your backend moves the widget too. |
POST /api/gs/v1/server/complete | The same completion, from your backend, with a secret key. |
Where it runs
One binary with the database embedded. One SQLite file on a volume you control — no third-party script on your users' pages, no progress data leaving your infrastructure.
- One process, one container, one file to back up.
GET /api/healthand/api/health/readyfor probes.GET /metricsin Prometheus text format, with no extra agent.- Self-hosting is the only option, on purpose: your users' progress is your data.
Free while it is v1
There is no billing, no plan ladder and no quota to watch. Create an account, make as many projects as you need, and configure them freely. If that ever changes, existing projects keep working.