Send Your First Event
Get up and running in under 2 minutes. Install the SDK, grab your API key, and fire your first logit.now() call.
Prerequisites
- A LogIt.Now() account — sign up free.
- Node.js 18+ (or any runtime for the REST API path).
Install
bash
npm install logit
# or
pnpm add logit
# or
yarn add logit
Initialize
ts
import { init } from "logit";
const logit = init({
token: process.env.LOGIT_API_KEY!,
});
Tip: Store your API key in an environment variable. Never hardcode it in source code.
Send an event
ts
await logit.now("signups", {
event: "New user signed up",
description: "alex@example.com just created an account",
icon: "👤",
notify: true,
tags: { plan: "pro", source: "landing-page" },
metadata: {
userId: "user_abc123",
email: "alex@example.com",
},
});
Same component as the inbox — click the card to expand metadata. Hover the timestamp for the full time.
👤
👤
👤
New user signed up
alex@example.com just created an account
Open your dashboard — the event appears in the signups channel within seconds.
Next steps
- Read the full JavaScript / TypeScript SDK reference.
- Try the API Playground to fire test events interactively.
- Browse the Guides for real-world recipes.