Database connection utilities for Esposter — server environment only. Provides composables for Drizzle ORM (PostgreSQL), Azure Table Storage, Azure Blob Storage, Azure AI Search, and Azure WebPubSub.
We highly recommend you take a look at the documentation to level up.
| Composable / Service | Description |
|---|---|
| Drizzle (PostgreSQL) | drizzle-orm client wired to the DATABASE_URL connection string |
| Azure Table Storage | useTableClient — creates a typed TableClient for a given table name |
| Azure Blob Storage | useBlobServiceClient — creates a BlobServiceClient |
| Azure AI Search | useSearchIndexClient — creates a typed SearchIndexClient |
| Azure WebPubSub | useWebPubSubServiceClient — creates a WebPubSubServiceClient |
| Link preview | getLinkPreview — fetches Open Graph metadata from a URL |
@esposter/db-schema for Drizzle relation and schema definitions.Run from packages/db/:
pnpm build # compile to dist/
pnpm test # vitest watch mode (coverage is run from the repo root)
pnpm lint:fix # auto-fix lint
pnpm typecheck # type check
This project is licensed under the Apache-2.0 license.