@pepys/ingest
v0.4.0
Published
pepys ingest: the receive routes, the fact log and the blob store
Readme
pepys ingest, for Bun: it receives each source's deliveries and appends them to the fact log.
A deployment serves one receive route for each receive path of its sources. Each route checks its delivery, and appends the facts it reads to the fact log.
Install
bun add @pepys/ingestServe a deployment's routes from an entry file, with the S2 settings and each secret its routes name:
// serve-ingest.ts
import { serveIngest } from '@pepys/ingest';
import { deployment } from './deployment.ts';
await serveIngest({ deployment, environment: process.env });export PEPYS_S2_ACCESS_TOKEN # the S2 access token, set in your shell beforehand
PEPYS_S2_ENDPOINT=http://127.0.0.1:8090 PEPYS_S2_BASIN=pepys bun serve-ingest.tsFeatures
serveIngestandcreateIngest: the receive routes of a deployment.- The sender proof port, with the adapter that verifies a worker machine's identity token through
@impz/client/identity. - The fact log port, with its S2 and memory adapters.
- The blob store port, with its Garage and local folder adapters.
Documentation
The pepys docs hold the design of ingest and the log.
