Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/flo-bit/contrail. atproto backend in a bottle flo-bit.dev/contrail
Something went wrong. Try again.
123456789101112131415161718192021222324252627import { Contrail, getStatusOverview } from "@atmo-dev/contrail";import { getAlluviumBootstrapState } from "@atmo-dev/contrail/alluvium";import { config } from "./contrail.config";import { databasePath, openDatabase } from "./database";
const db = openDatabase();const contrail = new Contrail({ ...config, db });await contrail.init();
const bootstrap = await getAlluviumBootstrapState(db);console.log( JSON.stringify( { database: databasePath, ...(await getStatusOverview(db, contrail.config)), bootstrap: bootstrap && { phase: bootstrap.phase, endpoint: bootstrap.endpoint, liveCursorUs: bootstrap.liveCursorUs, after: bootstrap.after, }, }, null, 2, ),);