# @logtide/types

> Shared type definitions for the LogTide SDK ecosystem

Latest version **0.13.0** (published 2026-08-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @logtide/types
pnpm add @logtide/types
yarn add @logtide/types
bun add @logtide/types
```

## Health

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

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

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.13.0 |
| Published | 2026-08-22 |
| First published | 2026-02-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 14 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Polliog |
| Maintainers | polliog |

## Links

- npm: https://www.npmjs.com/package/@logtide/types
- Repository: https://github.com/logtide-dev/logtide-javascript
- Homepage: https://github.com/logtide-dev/logtide-javascript#readme
- Issues: https://github.com/logtide-dev/logtide-javascript/issues
- npm.io page: https://npm.io/package/@logtide/types

## Recent versions

- 0.13.0 (latest) — 2026-08-22
- 0.12.0 — 2026-08-06
- 0.11.0 — 2026-06-30
- 0.10.0 — 2026-06-28
- 0.9.0 — 2026-06-22
- 0.8.0 — 2026-06-11
- 0.7.2 — 2026-04-07
- 0.7.1 — 2026-04-07
- 0.7.0 — 2026-03-09
- 0.6.1 — 2026-02-28
- 0.6.0 — 2026-02-28
- 0.5.6 — 2026-02-08
- 0.5.5 — 2026-02-07

## README

<p align="center">
  <img src="https://raw.githubusercontent.com/logtide-dev/logtide/main/docs/images/logo.png" alt="LogTide Logo" width="400">
</p>

<h1 align="center">@logtide/types</h1>

<p align="center">
  <a href="https://www.npmjs.com/package/@logtide/types"><img src="https://img.shields.io/npm/v/@logtide/types?color=blue" alt="npm"></a>
  <a href="../../LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License"></a>
  <a href="https://github.com/logtide-dev/logtide-javascript/releases"><img src="https://img.shields.io/github/v/release/logtide-dev/logtide-javascript" alt="Release"></a>
</p>

<p align="center">
  Shared TypeScript type definitions for the <a href="https://logtide.dev">LogTide</a> JavaScript SDK ecosystem.
</p>

---

## Installation

```bash
npm install @logtide/types
# or
pnpm add @logtide/types
# or
yarn add @logtide/types
```

> **Note:** You typically don't need to install this package directly. It's automatically included as a dependency of `@logtide/core` and all framework packages.

---

## Exported Types

### Log Types

```typescript
import type { LogLevel, LogEntry, InternalLogEntry } from '@logtide/types';
```

| Type | Description |
|------|-------------|
| `LogLevel` | `'debug' \| 'info' \| 'warn' \| 'error' \| 'critical'` |
| `LogEntry` | Log entry with service, level, message, metadata, trace/span IDs |
| `InternalLogEntry` | `LogEntry` with required `time` field (used internally) |

### Span Types

```typescript
import type { Span, SpanStatus, SpanAttributes } from '@logtide/types';
```

| Type | Description |
|------|-------------|
| `Span` | Distributed trace span with traceId, spanId, name, status, timing |
| `SpanStatus` | `'ok' \| 'error' \| 'unset'` |
| `SpanAttributes` | `Record<string, string \| number \| boolean \| undefined>` |

### Breadcrumb Types

```typescript
import type { Breadcrumb, BreadcrumbType } from '@logtide/types';
```

| Type | Description |
|------|-------------|
| `BreadcrumbType` | `'http' \| 'navigation' \| 'ui' \| 'console' \| 'error' \| 'query' \| 'custom'` |
| `Breadcrumb` | Breadcrumb with type, category, message, level, timestamp, data |

### Transport & Integration

```typescript
import type { Transport, Integration, Client } from '@logtide/types';
```

| Type | Description |
|------|-------------|
| `Transport` | Interface for sending logs and spans (`sendLogs`, `sendSpans`, `flush`) |
| `Integration` | Plugin interface with `setup(client)` and optional `teardown()` |
| `Client` | Minimal client interface for integrations |

### Configuration

```typescript
import type { ClientOptions, DSN } from '@logtide/types';
```

| Type | Description |
|------|-------------|
| `ClientOptions` | Full configuration: DSN (or `apiUrl` + `apiKey`), service, batching, retry, circuit breaker, etc. |
| `DSN` | Parsed DSN with `apiUrl`, `apiKey` |

---

## License

MIT License - see [LICENSE](../../LICENSE) for details.

## Links

- [LogTide Website](https://logtide.dev)
- [Documentation](https://logtide.dev/docs)
- [GitHub](https://github.com/logtide-dev/logtide-javascript)

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