@smosm/agenticpulse
v0.1.0
Published
AgenticPulse behavior intelligence SDK for tracking friction, feedback, and product signals.
Maintainers
Readme
@smosm/agenticpulse
AgenticPulse behavior intelligence SDK for browser-based tracking, friction detection, and smart feedback collection.
Install
npm install @smosm/agenticpulseUsage
import AgenticPulse from "@smosm/agenticpulse";
AgenticPulse.init({
projectId: "YOUR_PROJECT_ID",
userId: "optional_user",
autoTrack: true,
});API
init(config)
AgenticPulse.init({
projectId: "YOUR_PROJECT_ID",
userId: "optional_user",
autoTrack: true,
batchInterval: 5000,
endpointBase: "https://your-api.com/api",
});track(eventName, data)
AgenticPulse.track("checkout_clicked", {
step: "pricing",
plan: "pro",
});feedback(payload)
AgenticPulse.feedback({
message: "Checkout did not complete",
intent: "purchase",
severity: "high",
});flush()
AgenticPulse.flush();Browser-only
This package is intended for browser execution. If you use Next.js, initialize it from a client component or inside a browser-only effect.
Syncing from the app repo
This package mirrors the hosted SDK in public/agenticpulse.js.
From the repo root:
npm run sdk:sync