How qixing-jk/all-api-hub works
All API Hub is a browser extension for managing AI relay accounts and API credentials across sites. Users add accounts or standalone credentials, review balances and usage, verify APIs and models, compare prices, and export credentials to client tools. Separate workflows automate check-ins and capture credentials from web pages. For self-hosted gateways, users manage channels and synchronize models or redirects. The README documents WebDAV sync, announcements, and alerts as additional capabilities. Source excerpts are partial, so the graph shows documented product flows and only the sampled controller-to-storage relationships where wiring is visible.
Main entry points: App.tsx Options UI · ManagedSiteChannels/index.tsx Gateway channels · AccountManagement.tsx Account management · KeyManagement/index.tsx Credential library
Components 26
Accounts and insights
- Options UI
src/entrypoints/options/App.tsx - Account management
src/features/AccountManagement/AccountManagement.tsx - Account onboarding
src/features/AccountManagement/components/AccountDialog/index.tsx - Usage analytics
src/entrypoints/options/pages/UsageAnalytics/index.tsx - Balance history
src/entrypoints/options/pages/BalanceHistory/index.tsx
Credentials and verification
- Credential library
src/entrypoints/options/pages/KeyManagement/index.tsx - Credential controller
src/features/KeyManagement/controllers/useAccountKeyResourceController.ts - API verification
src/components/dialogs/VerifyApiDialog/index.tsx - Verification history
src/services/verification/verificationResultHistory/storage.ts - Import and export
src/entrypoints/options/pages/ImportExport/index.tsx
Automation and capture
- Auto check-in
src/entrypoints/options/pages/AutoCheckin/index.tsx - Page capture
src/entrypoints/content/webAiApiCheck/index.ts
Gateway management
- Gateway channels
src/entrypoints/options/pages/ManagedSiteChannels/index.tsx - Resource listing
src/features/ManagedSiteChannels/controllers/useManagedResourceListController.ts - Resource mutations
src/features/ManagedSiteChannels/controllers/useManagedResourceMutationController.ts - Resource migration
src/features/ManagedSiteChannels/controllers/useManagedResourceMigrationController.ts - Model synchronization
src/entrypoints/options/pages/ManagedSiteModelSync/index.tsx
Extension platform
- Background runtime
src/entrypoints/background/index.ts - Site announcements
src/services/siteAnnouncements/storage.ts - Browser local storage
- WebDAV sync
src/constants/importExport.ts
Other components
- User
- Relay sites
- Self-hosted gateways
- Client tools
- Browser pages
Connections 32
- User → Options UI: opens
- Options UI → Account management: manages
- Account management → Account onboarding: adds accounts
- Account onboarding → Relay sites: discovers account
- Account management → Relay sites: fetches account data
- Account management → Browser local storage: stores accounts
- Options UI → Usage analytics: views trends
- Options UI → Balance history: reviews balances
- Options UI → Auto check-in: runs check-ins
- Auto check-in → Relay sites: claims rewards
- Browser pages → Page capture: exposes page data
- Page capture → User: offers capture
- User → Credential library: manages credentials
- Credential library → Credential controller: loads and edits
- Credential controller → Browser local storage: persists changes
- Credential library → API verification: tests credentials
- API verification → Relay sites: probes API
- API verification → Verification history: records results
- Credential library → Import and export: exports credentials
- Import and export → Client tools: transfers config
- Options UI → Gateway channels: manages gateways
- Gateway channels → Resource listing: loads resources
- Gateway channels → Resource mutations: changes resources
- Gateway channels → Resource migration: migrates resources
- Gateway channels → Self-hosted gateways: connects gateway
- Options UI → Model synchronization: configures sync
- Model synchronization → Self-hosted gateways: syncs models
- Background runtime → Auto check-in: schedules tasks
- Background runtime → Browser local storage: reads settings
- Relay sites → Site announcements: provides notices
- Site announcements → Browser local storage: persists notices
- Browser local storage → WebDAV sync: backs up when enabled