---
title: Browser SDK
description: Call Pulseforge through a typed client in browser or server JavaScript.
url: https://pr-1-801e0a17d1af.thally.app/components
---

# Browser SDK

Call Pulseforge through a typed client in browser or server JavaScript.

The browser SDK mirrors the HTTP API while preserving Pulseforge request and
response types.

## Create a client

```ts
import { createPulseforgeClient } from "@pulseforge/events/sdk";

const pulseforge = createPulseforgeClient({
  baseUrl: "https://status.example.com",
  token: process.env.PULSEFORGE_TOKEN,
});
```

Omit `token` for calls that only read public status.

## Status and incidents

- `getStatus()` reads public service status.
- `createIncident(input)` opens an incident.
- `addIncidentUpdate(id, input)` extends its timeline.
- `resolveIncident(id)` marks it resolved.

## Alert rules

Alert rules route incident events to email or webhook destinations. See
[Alert rules](/alert-rules) for full details and examples.

- `listAlertRules()` returns all configured rules.
- `getAlertRule(id)` fetches a single rule.
- `createAlertRule(input)` creates a new rule.
- `updateAlertRule(id, input)` modifies a rule.
- `deleteAlertRule(id)` removes a rule.
- `testAlertRule(id)` sends a synthetic event to verify the destination.
- `listAlertDeliveries(id)` shows recent delivery attempts.