Install
Install
Durable email submission and recipient delivery tracking
For a published npm release:
npm install @fungi.computer/carrierpnpm, Yarn and Bun work the same way.
Entrypoints
Section titled “Entrypoints”@fungi.computer/carrier@fungi.computer/carrier/email@fungi.computer/carrier/cloudflare@fungi.computer/carrier/inspection@fungi.computer/carrier/post@fungi.computer/carrier/post-d1@fungi.computer/carrier/post-postgres@fungi.computer/carrier/testing
What comes with it
Section titled “What comes with it”Installing @fungi.computer/carrier also installs @cloudflare/workers-types, @fungi.computer/almanac, @fungi.computer/cairn, @fungi.computer/watchdog, effect, pg, @types/pg.
Install or set up
Section titled “Install or set up”npm install @fungi.computer/carrier @fungi.computer/watchdogThe Node SQLite quick start imports Watchdog’s adapter directly.
Carrier is ESM-only. It depends on @fungi.computer/watchdog, effect, pg
and @cloudflare/workers-types, which npm installs for you. The portable Email
owner and SQLite Post run on any synchronous SQLite handle, such as Durable
Object storage or node:sqlite in Node 24. The D1 and PostgreSQL Post adapters
need a migrated database.
Entrypoints:
@fungi.computer/carrierand@fungi.computer/carrier/email: the Email API,createCarrierand its types.@fungi.computer/carrier/cloudflare:createCloudflareCarrierfor a Durable Object, andcloudflareEmailTransport.@fungi.computer/carrier/inspection: read-only operator inspection.@fungi.computer/carrier/post: Post over Durable Object SQLite.@fungi.computer/carrier/post-d1and@fungi.computer/carrier/post-postgres: Post over shared D1 or PostgreSQL.