# @sketchlog/client

> TypeScript SDK for SketchLog

Latest version **1.2.5** (published 2026-07-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install @sketchlog/client
pnpm add @sketchlog/client
yarn add @sketchlog/client
bun add @sketchlog/client
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.2.5 |
| Published | 2026-07-17 |
| First published | 2026-06-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18.17 |
| Dependencies | 1 |
| Unpacked size | 9.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 6 |
| Author | Bala Vignesh S |
| Maintainers | balavignesh |
| Keywords | sketchlog, observability, metrics, streaming |

## Links

- npm: https://www.npmjs.com/package/@sketchlog/client
- Repository: https://github.com/SBALAVIGNESH123/sketchlog
- Homepage: https://github.com/SBALAVIGNESH123/sketchlog/tree/main/clients/typescript
- Issues: https://github.com/SBALAVIGNESH123/sketchlog/issues
- npm.io page: https://npm.io/package/@sketchlog/client

## Dependencies (1)

- [undici](https://npm.io/package/undici.md) ^6.20.0

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 1.2.5 (latest) — 2026-07-17
- 1.2.4 — 2026-07-08
- 1.2.3 — 2026-06-30

## README

# `@sketchlog/client`

TypeScript HTTP client for SketchLog.

```bash
npm install @sketchlog/client
```

```typescript
import { SketchLogClient } from "@sketchlog/client";

const client = new SketchLogClient({
  endpoint: "https://metrics.example",
  authTokenProvider: async () => obtainRotatedToken(),
  timeoutMs: 5000,
  maxRetries: 3,
});

await client.ingestEvents("api", {
  latencies: [42.5],
  events: { request: 1 },
});

await client.close();
```

Static credentials can be supplied with `authToken`. Authentication is sent in
`X-SketchLog-Auth-Token`, never in the URL.

GET, PUT, and DELETE requests retry transport failures, HTTP 429, and 5xx
responses with bounded exponential backoff and jitter. Ingestion POSTs are not
retried automatically because replay could double-count events.

See the [SDK documentation](https://sbalavignesh123.github.io/sketchlog/sdks/)
for configuration and conformance details.

---
_Source: https://npm.io/package/@sketchlog/client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
