Skip to main content
Version: Next (Unreleased)

Platform overview

Harbor is an event routing platform for workspaces, events, and outbound webhooks. You emit events from your backend, Harbor persists them, and subscribed HTTPS endpoints receive signed deliveries.

The @harbor/sdk package wraps the REST API for Node.js with typed clients, cursor pagination, and retry handling.

Core resources

ResourcePurpose
WorkspacesIsolation boundary for events, webhooks, and API keys
EventsImmutable records of activity (for example, order.shipped)
WebhooksHTTPS endpoints Harbor calls when matching events occur
API keysSecret or restricted credentials for server-side access

Harbor is intentionally narrow: it routes and delivers events. It is not a database, auth provider, or file store.

How it fits together

Read Event lifecycle and Webhook delivery for the full sequence.

SDK vs REST API

Use the SDK whenUse the REST API when
Building Node.js services with repeated callsWriting scripts in other languages
You need pagination helpers and typed errorsPrototyping with cURL or the dashboard explorer
Multiple teams share error handling patternsInfrastructure probes or one-off admin tasks

REST conventions are documented in REST API overview.

What the SDK includes

  • Secret key auth with automatic host selection (hb_test_ vs hb_live_)
  • Cursor pagination and listAuto for batch exports
  • Retries with backoff for rate limits and transient 5xx responses
  • verifyWebhookSignature() for inbound delivery validation
  • Typed HarborError with stable code values
GoalStart here
Install and first eventInstallationQuickstart
Understand eventsEvent lifecycle
Receive notificationsWebhooks guide
Production credentialsManaging API keys
Upgrade from SDK v1Migrating from v1.0
Debug failuresCommon errors