Scan your whole stack
From OX Research Newsroom
Are you using @alivelabs/sdk?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.6.0
@alivelabs/sdk was last scanned on 1 Dec 2026 at version 0.6.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.6.0 LATEST | 1 Dec 2026 | No rules fired |
| 0.5.0 | 1 Dec 2026 | No rules fired |
| 0.3.0 | 24 Nov 2026 | No rules fired |
| 0.1.0 | 2 Nov 2026 | Not shown |
| 0.0.0-stage | 2 Nov 2026 | Not shown |
Findings for v0.6.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.6.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Tell yourself, or your team, what happened, in one line at the moment it happens: a build failed, a backup finished, a workout is done. What goes in a notification, and when, is your decision; how it reaches people is Alive's: by email, and by push on iOS.
No dependencies. It uses fetch, so it runs on Node 18 and later, Bun, Deno and edge runtimes. It is written in TypeScript and also works from CommonJS.
npm install @alivelabs/sdk
In Alive, open Settings → Sessions → Personal API keys and create a key. Alive shows it once. Keep it in your environment as ALIVE_API_KEY, out of your source code and out of the browser.
import { Alive } from "@alivelabs/sdk"
const alive = new Alive({ key: process.env.ALIVE_API_KEY })
await alive.notify({ title: "Nightly backup done" })
That reaches you, by email and by push on iOS. A personal key acts as you, so there is nothing else to set up. Each person can turn these messages off under Settings → Notifications.
alive.notify(notification) returns { notified, reason? }.
| Field | |
|---|---|
title |
Required, up to 200 characters. |
body |
A few more lines, up to 2000 characters. |
url |
An http or https link, shown as the last line of the message. |
to |
Emails of the people to tell instead of you. See Notify your team. |
id |
Your id for the message. See Repeats and reminders. |
When notified is false, reason says why nobody was told: deduped (that id was already sent), suppressed (everyone it would reach has these messages switched off) or capped (the key's 100 a day are spent).
One curl, with the same key:
curl -X POST https://app.alive.site/api/notifications \
-H "Authorization: Bearer $ALIVE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"title":"Build failed","body":"main, 4 min","url":"https://ci.example/runs/42"}'
The answer is {"notified":true}. On a machine with the Alive CLI, the same call is one line, and it prints who was told or why nobody was:
alive notify "Build failed" --body "main, 4 min" --url https://ci.example/runs/42
The CLI reads ALIVE_API_KEY too, or the account you signed in with.
Name people with to, by the email of their Alive account:
await alive.notify({ title: "Pump 3 is offline", body: "Site 12, since 14:05", to: ["ada@example.com", "grace@example.com"] })
to takes the emails of people who share an organization with you, and nothing else: no ids, no guests, no customers. An email that belongs to no one you share an organization with is refused with a 400 that names it, and nothing is sent to anyone on the list. Naming people replaces you, so add your own email to to to be told as well.
An agent in Alive reaches you with its notification_send ability, in every run. It needs no key and no SDK.
A product that has its own organization uses a key made for it. Open Guests in Alive, choose Product API, and create a key for your product. Alive shows the key once. When you choose a project for it, Alive saves it there as ALIVE_SECRET_KEY, so your chats and your deployed product can read it from the environment. Keep it out of your source code and out of the browser.
const alive = new Alive({ key: process.env.ALIVE_SECRET_KEY })
await alive.notify({ title: "Leg day done", body: "4 of 5 sets, 52 min", url: "https://gym.example/today" })
notify takes the same fields and answers the same way. The difference is who it reaches: a notification with no to reaches the owners of your organization, and to takes the emails of members of your organization, whatever their role. Naming members replaces the owners, so add an owner's email to to to tell them as well. An email that belongs to no member is refused with a 400 that names it. Each person can turn the messages off under Products in Settings → Notifications.
A key belongs to one organization and writes under one product name. Revoke it in the same place and every call that uses it stops.
A product's key also unlocks People and Agents, below. A personal key does not: alive.people throws "People needs your product's key, from Product API in Guests." before it sends anything, and alive.agents does the same.
For a product with customers, your user id is the person's identity in Alive. Send it as external_id, and the first event about a user creates them, under the name you send. There is nothing to create first:
await alive.people.event({
contact: { external_id: user.id, email: user.email, name: user.name },
event_id: `signup:${user.id}`,
label: "Signed up",
detail: "Pro, monthly",
tone: "positive",
notify: { to: ["ada@example.com"] },
})
A person is named the same way everywhere: { external_id, email, name }, with at least one of external_id and email. email and name are optional. Without a name, the person is shown under their email, or else their external_id.
An event records what happened; it does not keep a person's details. Sent about a person Alive already knows by external_id, it never attaches the email it carries (an event takes no phone at all): only upsert adds an email or a phone. A new person is created under its name; for a person Alive knows, the name only fills in a placeholder, someone still shown under the email or external_id an event gave them. To rename someone, use upsert.
The types hold the naming rule: a person with neither external_id nor email, in any of the calls below, or subscribed without the email, does not compile. They also carry each field's limit in their documentation; a value past one is refused with a 400 that names the field.
alive.people.event(event)Adds one event to a person's timeline. Returns { recorded, run? }.
| Field | |
|---|---|
event_id |
Required. Your id for the event. Sending it again is acknowledged and adds nothing, so a retry is safe. |
contact |
Required. { external_id, email, name }, with at least one of the two ids. A person Alive does not know yet is created from them. A person Alive knows takes name only while they are still shown under the email or external_id an event gave them: a name set with upsert or in Guests stays. An email that belongs to a person under another external_id is refused with a 409, and nothing is recorded. |
label |
Required. What happened, in a few words. |
detail, tone |
A sentence of detail (an empty one is left out), and positive, neutral or attention. |
occurred_at |
When it happened: a Date, or an ISO time with its offset. A time still to come is stored as the time the event arrived. |
notify |
true tells your organization's owners. { to: [emails] } tells exactly those members of your organization, whatever their role; an email that belongs to no member refuses the event with a 400 that names it, and nothing is recorded. A repeat of the event tells nobody. |
run |
{ agent_id } starts that agent's run about the person. The agent must belong to your organization and have a connected product as its trigger. A repeat of the event does not start a second run. |
result.run.status says what became of the run: retained when the agent has it, daily_limit or inbox_full when the agent could not take it yet. Send the event again later and Alive tries again.
alive.people.events(events)Adds up to 100 events in one call, one after the other, for a burst or a backlog. Each takes the fields of event. Returns { results }, one item per event, in the order sent:
const { results } = await alive.people.events(
signups.map(user => ({ contact: { external_id: user.id, email: user.email }, event_id: `signup:${user.id}`, label: "Signed up" })),
)
for (const item of results) if (!item.ok) console.error(item.event_id, item.error.code, item.error.message)
An event Alive takes is answered as event answers it, with ok: true and its event_id. An event Alive refuses, such as an email that belongs to another person or an agent that is not yours, is answered { ok: false, event_id, error: { status, code, message } } and records nothing; the others are recorded. An event that breaks the shape (no label, a field past its limit) refuses the whole call with a 400 that names it, and nothing is recorded. A call that fails as a whole is tried again whole, and each event its lost attempt recorded is answered recorded: true. Each event counts on the key's 600 a minute; a call that would go past it is refused whole with an AliveRateLimitError, and records nothing.
A call your user should not wait for need not be awaited. Catch its failure, or Node ends the process on the unhandled rejection:
void alive.people.event(event).catch(error => console.error(error.message))
The message names the call (POST /api/crm/ingest/events: …), and error.eventId and error.externalId say which event and person it was about. A call that is not awaited still retries, so a serverless function that returns at once may be stopped before it is sent: there, await it or hand it to your platform's waitUntil. For a burst, gather the events and send them with people.events: one request instead of many. Each event in it still counts on the key's 600 a minute, as it would on its own.
alive.people.upsert(person)For a product that wants the name and details right. Creates the person, or updates them when their external_id, or their email, is already in Guests. Name them by either id: a person known by external_id who comes with a new email keeps one record, and the email becomes their primary address. Returns { person_id, created }.
await alive.people.upsert({ external_id: user.id, email: user.email, name: user.name, attributes: { plan: "pro" } })
| Field | |
|---|---|
external_id, email |
At least one. Alive looks up external_id first, so a person who changed their email stays one person. An email or external_id that belongs to another person is refused with a 409. |
name |
What the person is shown under. A known person keeps theirs when you leave it out; a new one is shown under their email, or else their external_id. |
phone, title |
Optional. |
attributes |
Up to 50 flat values: text, numbers or true/false. Send null to remove one. For anything nested, send a JSON string. |
subscribed |
With the email it changes. false opts the email out of your organization's mail. true lifts an opt-out your product made, and only that one: an opt-out the person made from a mail, or your organization made, keeps holding. |
alive.people.get({ external_id })Reads a person back as Guests shows them: { person_id, name, email, phone, title, external_id, attributes, created_at, updated_at }, or null when nobody is under that id. Name them by external_id, by email, or both.
const guest = await alive.people.get({ external_id: user.id })
alive.people.delete({ external_id })For an account deletion. Deletes the person and their timeline. Name them by external_id, by email, or both.
await alive.people.delete({ external_id: user.id })
For a product that lets its visitors ask a question: one of your organization's agents answers it. Your server sends the question with your product's key, and the answer comes back while the agent writes it. The key stays on your server, and the browser talks to a route of your own.
const answer = alive.agents.ask({
agent_id: supportAgentId,
conversation_id: chat.id,
message_id: message.id,
visitor_id: visitor.id,
contact: { external_id: user.id, email: user.email, name: user.name },
message: "Is the house on Dorpsstraat still free?",
})
alive.agents.ask(question)Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.