Skip to main content

App

The Subscriberbot app shell is a cross-platform application built on the Burdenoff microfrontend architecture. It composes the Subscriberbot microfrontend (@burdenoff/microfe-subscriberbot) with shared platform microfrontends (auth, billing, workspaces, tags, files, etc.) into a single cohesive experience.

Platforms

PlatformHow to runDefault URL
Webbun run dev (port 5237) or visit app.subscriberbot.comhttps://app.subscriberbot.com
Desktop (Electron)bun run electron:dev or bun run electron:run:prodPackaged app
Androidbun run android:runAPK via Capacitor
iOSbun run ios:runXcode via Capacitor

Architecture

The app follows the 4-layer microfrontend architecture:

  • Layer 0: Shared foundation from @burdenoff/fe-libs/shared
  • Layer 1: Primitive components from @burdenoff/fe-libs
  • Layer 2: Feature microfrontends from @burdenoff/micro-fe
  • Layer 3: This host shell (composition and orchestration)

Development

git clone https://github.com/algoshred/subscriberbot-app.git
cd subscriberbot-app
bun install
bun run dev # Web dev server on port 5237
bun run build # Production build
bun run sanity # Lint + format + type-check + test + build

Cross-platform builds

# Android
bun run android:build
bun run android:run

# iOS
bun run ios:build
bun run ios:run

# Electron
bun run electron:run:prod
bun run electron:pack:prod
bun run electron:release:prod

Configuration

Copy .env.example to .env.local and configure gateway base URLs:

VariableDefault (local)Production
VITE_WSPACE_GATEWAY_URLhttp://localhost:4003https://graphqlworkspaces.burdenoff.com
VITE_GLOBAL_GATEWAY_URLhttp://localhost:4000https://graphql.burdenoff.com

Gateway URLs should be base URLs only (no path). The GraphQL client appends:

  • /workspaces/graphql for the workspace gateway
  • /global/graphql for the global gateway
Environment selection

The app shell targets production by default. To build for alpha or local, set BURDENOFF_ENV before building:

# Alpha
BURDENOFF_ENV=alpha bun run build

# Local (default)
BURDENOFF_ENV=local bun run build

See Environment Selection for endpoint details.