Reference overview
- Modules — every module mounted in
app/src/modules.ts, one line of purpose each, sourced from each module’s own published-interface header comment. - Tenant-facing API — the routes reachable with an
fdk_-prefixed tenant credential: self-serve store management, the merchant API, checkout, and the public storefront catalog. This is the seed of the future headless API reference — described from the real route handlers, not a hand-written OpenAPI spec.
Modules in depth
Per-module reference for the capabilities added in the recent waves — each
grounded in the module’s own src/index.ts header, its routes, its
module.yaml events, and the storefront manifest gates that expose it.
- Subscriptions — recurring-billing engine: schedule, exactly-once renewal sweep, dunning off a vaulted MIT credential.
- Fraud — velocity log, operator blocklist, and the pure AVS/CVV decisioning checkout runs before money moves.
- Marketing — drip/campaign runner, audience enrollment, abandoned-cart detection, and bounce ingestion.
- Media — the write side of the media pipeline: presigned upload -> pending asset -> finalize-to-ready.
- Gift cards — purchasable/redeemable bearer
codes with a liability outbox, mirroring the
cashmodule. - Collections & faceted search — the commerce catalog discovery surfaces (facets + merchandised collections).
- Fulfillment depth — POs/receiving, physical locations, fulfillment nodes/modes, dropship vendor costs, COGS.
- Seam closures — the
tax:collectedliability leg, ordership_to, subscribe-and-save at checkout, wishlist.