@busflow/api-client
Status: Scaffold — not yet implemented
Purpose
Shared API interfaces, DTOs, and fetching logic. Provides cross-app type safety for all backend communication.
Key Modules (planned)
- Supabase client configuration
- Auth token refresh logic
- Typed fetch wrappers
- Shared DTOs and response types
Consumers
All frontend apps.
Public API / Entrypoints
- Planned package entrypoint:
src/index.ts - Keep transport wrappers and DTOs framework-agnostic so Nuxt, Quasar, and services can share them.
Key Commands
- No package-specific commands yet; use root
pnpm lint/pnpm testonce implemented.
Related Docs
Common Pitfalls
- Do not duplicate generated GraphQL types here; import from
@busflow/typeswhen contracts exist. - Do not add app-specific auth or UI state to this package.