Documentation Index
Fetch the complete documentation index at: https://docs.vibefollow.com/llms.txt
Use this file to discover all available pages before exploring further.
Install the SDK
Node 20 or later is required. The SDK also runs on Cloudflare Workers (with
nodejs_compat), Vercel Edge, and Deno. See Edge runtimes for the runtime-specific notes.- npm
- pnpm
- yarn
Grab an API key
API keys are issued in the Vibefollow dashboard under Settings → Developers → API keys. They follow the Stripe-style prefix scheme:
sk_live_…— productionsk_test_…— sandbox (future)
VIBEFOLLOW_API_KEY.Identify a user and emit an event
identify is an upsert — calling it twice with the same userId updates traits in place. Pass any trait keys you want (plan, signupDate, company, role, …); unknown keys flow into the traits JSON column for audience filtering.Try a real lifecycle event
The nine canonical lifecycle events have typed helpers. They’re equivalent to calling See the full list in Lifecycle events.
events.track('user_signed_up', …) but you get autocomplete and protection against name typos.Verify a webhook (optional)
Vibefollow signs every outbound webhook delivery. Verify it with Full payload spec for every event type: Webhook event types.
webhooks.constructEvent() — pass the raw body, the signature header, and your webhook secret:Your first event is now flowing. Calls to
identify and lifecycle helpers return Promise<void> — if they resolve without throwing, the event was accepted (202 Accepted) and is on the ingest queue.Next steps
Authentication
Issue, store, rotate, and revoke API keys the right way.
Events overview
The mental model behind identify + track, and how events drive triggers.
The 9 lifecycle events
First-class helpers for every canonical event Vibefollow knows about.
Custom events
events.track() for anything outside the canonical set, plus batching for backfills.Webhooks overview
Signature verification, retry policy, and the inbound event catalog.
Errors
Typed errors you can
catch — AuthError, RateLimitError, etc.