Skip to content

getmendra/librarian

Repository files navigation

Librarian logo Librarian

Librarian screenshot

Read-only Iceberg catalog explorer for Cloudflare R2 Data Catalog. Deploys as a Cloudflare Worker.

Features

  • Browse namespaces and tables
  • Inspect schemas, partitions, snapshots, and table properties
  • Record and file counts computed from Iceberg manifests fetched directly from R2

Setup

Install dependencies and inspect the Varlock schema:

pnpm install
pnpm exec varlock load

Configuration is defined in .env.schema and loaded from a 1Password Environment via Varlock. Create a 1Password Environment for this deployment with these variables:

  • CATALOG_URI
  • CATALOG_WAREHOUSE
  • NAMESPACE_SUFFIX_ORDER
  • CF_ACCESS_TEAM
  • POLICY_AUD
  • CATALOG_TOKEN

For local development, Varlock uses the 1Password desktop app/CLI integration:

pnpm exec varlock load
pnpm dev

For Cloudflare Workers Builds, set these build-time variables in the dashboard:

  • APP_ENV=production
  • OP_SERVICE_ACCOUNT_TOKEN=<1Password service account token>

Optional namespace ordering:

  • Set NAMESPACE_SUFFIX_ORDER=bronze,silver,gold to prioritize known suffixes on the final namespace segment, e.g. tenant_bronze, tenant_silver, tenant_gold.
  • Leave it unset to keep the default generic lexicographic namespace ordering.

Development

pnpm install
pnpm dev

CF Access auth is bypassed in dev mode.

If you want to run the built Worker locally, use:

pnpm preview

About

Read-only Iceberg catalog explorer

Topics

Resources

License

Stars

Watchers

Forks

Contributors