Skip to content

HTTP Package (@vup/http)

@vup/http is VUP's shared request foundation for app templates.

What It Solves

  • Unifies HTTP client behavior across apps
  • Centralizes interceptor and error handling strategy
  • Reduces duplicated request setup in each project

Typical Scenarios

  • Multi-app monorepo with consistent request rules
  • Shared auth/token behavior in request pipelines
  • Unified response/error normalization for frontend teams
  1. packages/http: shared base capabilities
  2. apps/*/src/api/request.ts: app-level adapter
  3. modules/*/api/*: business-level API modules