Module Hub & platform extensions
Bridge Payments ships with more than REST payment routes: you can install database modules (plugins), and optionally expose hosted UI surfaces for checkout and billing.
Module Hub (admin plugins installer)
On each Bridge instance, installable SQL modules are loaded from the application’s modules/ directory (native manifests) and optionally from legacy plugin manifests under database/plugins/. Your deployment includes whatever modules your build ships with; you do not need a separate private documentation URL to use the installer.
Discover what is available on a running instance:
GET /bridge-payment/admin/plugins/status— hub tables present?GET /bridge-payment/admin/plugins— modules discovered from disk plus registry summary.
Full installer contract (methods, paths, bodies, responses, operationId values): API Reference → group Admin - Module Hub (OpenAPI-driven operation pages).
The Module Hub follows the same pattern as Flowless: SQL described in manifests installs into module_hub_registry / module_hub_events.
| What | Description |
|---|---|
| Purpose | Bootstrap tables, then install or upgrade SQL components per module |
| Manifests | modules/<module_id>/manifest.json (native) or database/plugins/<plugin_id>/plugin.json (legacy) |
| Dialects | SQL paths can use {dialect} for postgresql, mysql, sqlite |
| API prefix | /bridge-payment/admin/plugins (requires admin session) |
| Docs | API Reference — Admin - Module Hub |
Typical flow:
GET /bridge-payment/admin/plugins/status— confirm hub tables exist (or bootstrap first).POST /bridge-payment/admin/plugins/run— create hub tables when needed.GET /bridge-payment/admin/plugins— list modules discovered on disk.POST /bridge-payment/admin/plugins/:module_id/dry-runthen.../run— apply SQL.
Managed deployments
On Pubflow-managed instances, module installation is usually operated by your team or support; the API exists for parity with Flowless-style workflows.
Bridge Pages (/pages/*)
Server-rendered HTML flows (pay links, billing dashboard, account areas) are mounted at /pages/* on your Bridge host when enabled (not under /bridge-payment).
| Flag | Effect |
|---|---|
PAGES_ENABLED | When true, mounts hosted pages. |
Use this when you want shareable URLs or minimal frontend work while still using Flowless sessions.
Bridge Embeds (/embed/*)
Embeddable widgets are mounted at /embed/* when enabled.
| Flag | Effect |
|---|---|
EMBED_ENABLED | When true, mounts embed routes independently of pages. |
Independent toggles
PAGES_ENABLED and EMBED_ENABLED are separate. You can enable only pages, only embeds, both, or neither.
Other optional feature routes
When the corresponding environment flags are on, Bridge exposes additional JSON routes (prefix /bridge-payment/ unless noted). Configure flags in Environment Setup.
| Area | Mount prefix (when enabled) | On this site |
|---|---|---|
| Projects | /bridge-payment/projects | Public invite lookup GET .../invites/:token is rate-limited. Related: Organizations guide. |
| Memberships | /bridge-payment/memberships and /bridge-payment/admin/memberships | Memberships API |
| Cost tracking | /bridge-payment/cost-tracking | Environment Setup (COST_TRACKING_ENABLED) |
| Billing schedules | /bridge-payment/billing-schedules | Environment Setup (BILLING_SCHEDULES_ENABLED) |
| Receipts | /bridge-payment/receipts | Environment Setup (INVOICES_RECEIPTS_ENABLED) |
| Invoices | /bridge-payment/invoices | Same flag as receipts |
API Reference
Each HTTP route above is also documented as an OpenAPI operation (its own page under API Reference), grouped by tag—for example Bridge Pages, Bridge Embeds, Projects, Memberships, Cost Tracking, Billing Schedules, Invoices, and Receipts—the same pattern as Admin - Module Hub.
Where this fits in architecture
Modules extend the database layer (schema, registry, events). Pages and embeds are HTTP UI surfaces on the same Bridge instance as the JSON API—they reuse the same auth and provider stack described in Architecture.
Next steps
- Environment Setup — feature flags and URLs
- Architecture — components diagram
- API Reference — OpenAPI operations including Module Hub