Open Pet Data Standard

The CloudEvents of pet telemetry. A citable, open standard for activity trackers, smart collars, and veterinary integrations.

Simple, Versioned Event Envelope

Every OPDS event follows a consistent envelope structure with namespaced types, idempotency keys, and clear provenance. Designed for append-only event stores.

  • Globally unique event IDs
  • Versioned event types (e.g., opds.activity.summary.v1)
  • Immutable corrections, not overwrites
  • RFC-0002 consent lifecycle
{
  "event_id": "evt_7b2c3d4e-5f6a-7b8c-9d0e",
  "event_type": "opds.activity.summary.v1",
  "opds_version": "0.2.0",
  "subject": "pet_abc123",
  "event_time": "2025-12-27T14:30:00Z",
  "source": {
    "connector": "fitbark",
    "device_id": "fb_12345"
  },
  "data": {
    "step_count": 4500,
    "active_minutes": 45,
    "rest_quality": "good"
  }
}

Supported Event Types

OPDS v0.2.0 includes schemas for activity tracking, vital signs, data corrections, and consent management.

opds.activity.summary.v1

Daily/hourly activity rollup

opds.vitals.temperature.v1

Temperature reading

opds.vitals.weight.v1

Weight measurement

opds.system.correction.v1

Late-arriving data correction

opds.consent.grant.v1

Consent authorization

opds.consent.revoke.v1

Consent revocation

Quick Start

# Install conformance tests

npm install @opds/conformance

# Validate an event

import { validateEvent } from '@opds/conformance';

const result = validateEvent({
  event_type: 'opds.activity.summary.v1',
  // ... event data
});

console.log(result.valid); // true