CDC & lakehouse sync

Stream every commit to your warehouse or search index.

Signed webhook pings wake your sync workers on commit, and a read-only service key pulls policy-filtered row changes. Cron schedules compact Parquet files without polling loops or superuser setup.

Read the warehouse sync guide
Replaces
  • Debezium / Kafka Connect
  • Fivetran polling connectors
  • Managed CDC slot plumbing
  • Custom backfill & gap scripts

Push-woken CDC

A notify rule wakes your worker on commit.

Create a read-only service key, allowlist your webhook host and subscribe to a schema notify event. Each matching commit sends a signed ping and commit position, so workers never poll the database.

Warehouse sync
Terminal
napalm keys create shop --label warehouse-sync --read-onlynapalm webhooks hosts shop --add hooks.example.comnapalm webhooks add shop https://hooks.example.com/napalm \  --event order_changed

Signed webhook pings

Verify webhook signatures in constant time.

readDelivery verifies Napalm-Signature against the raw request bytes and reads the commit position. Pass that position as reach so your worker sees the triggering write.

app/hooks/napalm/route.ts
import { readDelivery } from 'napalm-client' export async function POST(request: Request) {  const raw = await request.arrayBuffer()  const delivery = await readDelivery(raw, request.headers, secret)  if (delivery.kind === 'ping') await queue.add(delivery.position)  return new Response(null, { status: 204 })}
Notifications and webhooks

Policy-filtered log

Access rules filter the change log too.

GET /changes checks your schema’s select policies for the caller’s key on every row. Restricted rows stay out of bulk sync responses.

dbschema/default.gel
type Order {  required tenant: Org;  required total_cents: int64;   access policy sync_can_read    allow select using (global role ?= 'warehouse');   notify order_changed after insert, update, delete;}
Read-only sync keys

Resumable cursors

Page through committed changes from a saved cursor.

napalm.changes reads forward from your saved cursor to the webhook’s commit position. When a cursor falls behind retention, isGap signals your worker to run a fresh table copy.

Following changes and gaps
src/sync/orders.ts
for await (const page of napalm.changes({  types: ['Order'],  after: cursor,  reach: position,})) {  for (const item of page.items) {    if (isGap(item)) await copyOrders()    else await warehouse.apply(item.rows)  }  if (page.next) cursor = await saveCursor(page.next)}

Scheduled compactions

Cron schedules run rollups and Parquet exports.

Schedule a deployed query in any IANA time zone under a dedicated service key. Hourly jobs compute rollups and nightly jobs compact Parquet files in object storage.

Terminal
napalm schedules add shop compactDailyLedger '5 0 * * *' \  --time-zone UTC --key $WAREHOUSE_KEY_ID
Jobs and schedules

Included log history

Every branch includes 30 days of change history.

Branches retain 30 days of committed changes by default, and optional retention extends up to 7 years. A paused worker resumes from its saved cursor without missing events.

30 daysincluded change-log history on every branch

Pricing and retention