Busflow Docs

Internal documentation portal

Skip to content

@busflow/services

Status: Scaffold — not yet implemented

Purpose

Parent directory for isolated domain service packages. Each service is its own package with an independent package.json.

Principle: Runtime vs. Capability

A service package contains the capability (logic, templates, calculations). An app provides the runtime (HTTP endpoint, UI). The logic stays portable across consumers.

Services

ServicePathConsumers
@busflow/services-walletwallet/booking-widget, passenger
@busflow/services-notificationsnotifications/workspace, driver, passenger
@busflow/services-pricingpricing/booking-widget, workspace
@busflow/services-compliancecompliance/workspace, driver
@busflow/services-pdf-parserpdf-parser/workspace
@busflow/services-accountingaccounting/workspace
@busflow/services-routingrouting/driver, workspace

See App Structure & Services for details.

Public API / Entrypoints

  • Each child service owns its own package.json and public entrypoint.
  • Parent directory is an index of service capabilities, not an importable runtime package.

Key Commands

  • Run commands against the concrete child service package once implemented.

Common Pitfalls

  • Do not couple service logic to a single app runtime.
  • Keep templates, calculations, and adapters portable across web, worker, and CLI consumers.

Internal documentation — Busflow