OverviewFilesCommitsIssuesDocsReleasesPeers

favela-host / index.js

15 lines · javascript ref:
// favela-host — whoever holds both halves.
//
// favela-surface/index.js names the role this package fills: "favela-surface must NOT depend on
// favela-peer — the boundary test forbids reaching for storage or a swarm, and importing the daemon
// would drag both in. So the in-process client is built by whoever holds both halves (the worklet),
// never here." On a handset that is the worklet. On a desktop it was nobody, which is why the phone
// could mint a DID and a desktop could not.
//
// What this exports is the neutral core: bring a node up, serve favela-surface over loopback, and
// offer the atproto verbs that neither favela-peer nor favela-surface may import. A shell adds its
// own platform concerns on top — bare-kit IPC and OTA on Android, a unix socket on a desktop.

export { boot, serveSurface, inProcessClient, listenPreferring, signIn, signInOrServe, PORT_FILE } from './lib/host.js'
export { ATPROTO_OPS, atprotoConfigPath, recoveryVaultPath, genesisPath, bootAtproto } from './lib/atproto.js'