Quickstart
This guide shows how to send your first event to Lariba Cloud.
1) Get an API Key
Create an API key in your Lariba Cloud dashboard.
You will use this key to authenticate API requests from your application.
Example:
LARIBA_API_KEY=sk_test_1234562) Install the JavaScript SDK
Install the Lariba SDK directly from GitHub:
npm install @laribacloud/lariba-sdk-js@github:laribacloud/lariba-sdk-js3) Send your first event
import { Lariba } from "@laribacloud/lariba-sdk-js"
const lariba = new Lariba({
apiKey: process.env.LARIBA_API_KEY!
})
await lariba.track("user.signup", {
plan: "starter"
})4) Verify the event
Open your Lariba Cloud dashboard → Events.
You should see an event like:
user.signupNext Steps
Continue exploring the Lariba Cloud platform:
- Event ingestion API
- API Keys
- Usage & billing