{"library":"playbackdb","title":"PlaybackDB","description":"PlaybackDB provides PostgreSQL database schemas and utilities for the Playback health platform. Version 1.4.27 is the latest stable release. It includes schema definitions, migration tooling, and type-safe query builders. Unlike generic ORMs, it is tightly coupled to Playback's domain model and internal conventions. The package is released on an ad-hoc cadence alongside Playback application updates. Key differentiators include built-in support for Playback's multi-tenant architecture and automatic audit logging. It requires Node.js 14+ and pg (node-postgres) as a peer dependency.","language":"javascript","status":"active","last_verified":"Sat May 09","install":{"commands":["npm install playbackdb"],"cli":null},"imports":["import { installSchema } from 'playbackdb'","import { getMigrationPath } from 'playbackdb'","import type { SchemaVersion } from 'playbackdb'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { installSchema } from 'playbackdb';\nimport { Pool } from 'pg';\n\nconst pool = new Pool({\n  connectionString: process.env.DATABASE_URL ?? 'postgres://localhost:5432/playback',\n});\n\nasync function setup() {\n  try {\n    const result = await installSchema(pool, { version: 'latest' });\n    console.log('Schema installed:', result.version);\n  } catch (err) {\n    console.error('Install failed:', err);\n  } finally {\n    await pool.end();\n  }\n}\n\nsetup();","lang":"typescript","description":"Connects to a PostgreSQL database using pg Pool and installs the latest Playback schema via installSchema.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}