Skip to main content
@verglas/sdk is a thin, fetch-based client. It does not parse Parquet or commit Iceberg metadata in JavaScript. The Verglas endpoint owns those operations.

Install from the repository

Reference the current workspace package from your application:
package.json

Define a cron worker

The following worker fetches one logical interval of order events and commits the result with a stable idempotency key:
orders-worker.ts
The runtime provides ctx.client, trigger data, configured outputs, environment bindings, structured logging, and an abort signal. Do not call connect inside a worker.

Connect from a standalone application

client.ts

Work with tables

Create a table with an explicit schema when inference cannot express the required types or partitioning:
Use a table handle for the current snapshot, paged scans, deltas, commits, and vector indexes:

Follow commits and rows

Follow notifications when you only need commit metadata:
Follow rows when each commit should drive a bounded delta read:
One edge websocket multiplexes all follow subscriptions on a client. An idle socket does not keep tenant compute awake.

Use queues

Queues deliver at least once. Consumers must make processing idempotent.

Use property graphs

Graphs use ordinary Iceberg node and edge tables plus a snapshot-bound adjacency index.

Search a vector index

The table’s current snapshot must carry the index attachment used by the search.