SDK Overview
The EnterestOS SDK for React and Next.js.
Problem: You have a custom React or Next.js app and need to add tracking — but the app talks about Submissions while the SDK talks about Responses.
Solution: The SDK is the simplest way to add tracking to any React or Next.js app — install it, create a client, call trackResponse() after form submit, and you are done.
Terminology
In the EnterestOS app you work with Submissions. In the SDK and API that same event is called a Response. Every successful website submission becomes a Response through trackResponse().
The Entire SDK Surface
createEnterestOS(config) // create a client bound to a project
trackResponse(input) // send a response to EnterestOS
testConnection() // verify your project key worksWhen to Use the SDK
- —You have a custom React or Next.js app
- —You want to add tracking to an existing form without using an AI tool
- —You need full control over when tracking happens
- —You want error handling built in
When to Use a Platform Guide Instead
- —You built with Lovable — use the Lovable platform guide
- —You built with Bolt — use the Bolt platform guide
- —You built with Cursor — use the Cursor platform guide
- —You want zero manual code changes — use any platform guide and paste the prompt
Result: You now know whether the SDK or a platform guide is right for your situation.
Common Questions
Should I use the SDK or a platform guide?
Use a platform guide if you built with Lovable, Bolt, Cursor, or another AI tool — paste a prompt and the integration is done. Use the SDK if you have custom React or Next.js code.
Does the EnterestOS SDK work with Next.js App Router?
Yes. Add 'use client' at the top of your form component, import createEnterestOS, and call trackResponse() inside your submit handler. The SDK is a client-side library.
Next
Installation →