Package exports
This page helps you find the main package-level APIs. It is a routing aid, not a complete export index.
Primary import
Prefer TypeScript + ESM-style named imports in new documentation and new applications:
ts
import { Client } from '@beblurt/dblurt';CommonJS remains supported where compatibility requires it:
js
const { Client } = require('@beblurt/dblurt');Runtime entrypoints
The package metadata defines:
| Field | Purpose |
|---|---|
main | CommonJS/Node runtime entry. |
types / typings | TypeScript declaration entry. |
browser | Browser bundle substitutions. |
files | Package contents published to npm. |
Use package.json as the canonical source for exact package metadata.
Important exported families
| Family | Examples | API details |
|---|---|---|
| Client | Client, ClientOptions | Client, ClientOptions |
| Errors | ValidationError, classifyError | Errors |
| Content builders | buildPostOperation, buildReplyOperation | buildPostOperation |
| Social builders | follow/reblog/community custom JSON builders | API reference |
| Authority validation | posting/account authority helpers | validatePostingAuthority |
| Read models | client.read / ReadModels | ReadModels |
For the complete export list, use the API reference.