Agent pack
Package guide for agents — what to use for which aim
What each @blueforge-studio/* package is for, with the caveat that versions drift.
Snapshot 2026-10-11, read from each package's package.json, README and docs/packages/AI-GATEWAY.md. Versions drift: confirm with pnpm view @blueforge-studio/<pkg> version before documenting or pinning. Items marked UNVERIFIED were not confirmed in code.
Where the index is
- Overall index:
blueforge-org/packages/README.md, a table per category (infrastructure,ai,agents,audits,dom,design,video,integrations,ui,utilities). The rootCLAUDE.mdlinks todocs/packages/README.md, which does not exist; use the file above. - Per-category READMEs:
packages/<category>/README.md(audits, dom, infrastructure, integrations, ui, ...).packages/ui/README.mdomitsdownloadsandui-asset-auditand its versions lag. - Install/publish:
blueforge-org/CONSUMING.md,blueforge-org/PUBLISHING.md. Registry:https://api.packr.blueforge.studiofor the@blueforge-studioscope. - Not every published package lives here:
@blueforge-studio/flagsis in forge-control (packages/flags).
ui/ — React building blocks (React >= 19, tsup)
| Aim | Package | Notes |
|---|---|---|
| Authenticated app/dashboard chrome | app-kit 0.6.2 |
AppShell, Sidebar, Topbar, MobileDrawer, UserMenu, Toaster, BlueForgeProvider (useUser/useT/useToast/useTrack/useReportError). Entries: ., ./browser (no 'use client', for Vite/SPA — pass activeHref yourself), ./tokens, ./theme.css. AppShell renders Sidebar twice (desktop + drawer), so slots appear twice. |
| Landing / public site | marketing-kit 0.7.1 |
Slot-driven, no bundled copy: SiteHeader, Hero, FeaturesGrid, PricingGrid, CTABand, Footer, NewsletterForm, ThemeToggle, CurrencySwitcher, LocaleSelector. Entries: ., ./browser, ./downloads. |
| Charts for dashboards | charts 0.3.1 |
Recharts wrapper: Area/Bar/Line/Pie/Donut/Funnel/Histogram + ChartsThemeProvider. Reads --card/--border CSS vars. Needs recharts >= 2. Single entry. |
| OS-aware native download pages | downloads-* family |
Layered, lockstep 0.0.x: downloads-schema (zod DownloadManifest) < downloads-core (detection, presenter, <bf-download>) < renderers downloads-react / downloads-astro < downloads-next (createDownloadRoute('slug')). downloads-os-icons (0.1.0) versions separately. Spec: forge-cloud/docs/superpowers/specs/2026-09-28-native-downloads-experience.md. |
ui-asset-audit |
— | Directory holds only a lockfile; not installable. |
Gotchas:
DownloadSectionis an async Server Component: import from@blueforge-studio/marketing-kit/downloads, not the root.- On Tailwind v4, import
@blueforge-studio/downloads-core/styles/layer-order.cssbefore the Tailwind entry, or preflight resets kit headings/images. - Pin
downloads-*exactly. On static Next routes passdetect: 'client'; on prerendered Astro omitrequest. - Dark mode in the kits follows a
.darkclass on a wrapper, notprefers-color-scheme. - marketing-kit marks none of its peers optional; app-kit marks
next/next-themesoptional.
ai/ — gateways and fallbacks
Pick by modality; each has its own fallback mechanism.
| Aim | Package | Fallback / selection |
|---|---|---|
| LLM text/object generation | ai-gateway 0.7.1 |
createAIService({provider}) reads AI_PROVIDER (openai, anthropic, google, gateway, qwen, glm, minimax). new FallbackChain([...]).execute(fn) falls back on 5xx/network, throws on 4xx. MultiProviderTextClient takes preset: "default" | "fast" or order: [...]; AI_PROVIDER_ORDER=qwen,glm,openai also sets order. /lite has a fetch-only MultiProviderClient. |
| Vision (image in, text/score out) | vision-gateway 0.8.0 |
createVisionChainFromEnv({chainOrder}) or VISION_CHAIN_ORDER; profiles diagnose/score with VISION_CHAIN_DIAGNOSE / VISION_CHAIN_SCORE. Budget-aware. |
| Image generation | image-gateway 0.3.2 (multi-provider), image-gen 0.3.2 (single clients) |
ImageAdapterInterface.priority, lowest runs first; createProviderAdaptersFromEnv() keeps only adapters whose keys are set. |
| TTS / SFX / music | audio-gateway 0.3.1 |
createAudioService({provider, fallback:[...]}); createAudioServiceFromEnv() always adds free edge-tts as the last fallback. |
| TTS across Google/ElevenLabs/Edge | tts-gateway 0.1.2 (utilities/) |
Order from TTS_BACKEND_PRIORITY, default google, elevenlabs, edge. |
| Text/image-to-video | video-gateway 0.3.1 |
RoutedVideoGateway({providers}); credit-state aware; never falls back from image-to-video to text-to-video. |
| Model ids / prompt registry | ai-sdk-config 0.1.1 |
models, modelForTask, /model-routing. No runtime fallback. |
| Cost and budgets | ai-budget 0.1.9, ai-pricing 0.3.6 |
UsageTracker, BudgetExceededError; pricing is browser-safe. |
| NL to typed tool calls | ai-functioncaller 0.1.3 |
You inject generateText. |
Notes: docs/packages/AI-GATEWAY.md is an integration guide (rate-limit-coordinator + agent-config + budgets) and shows a MultiProviderTextClient option set that differs from the ai-gateway README; check the source. video-composer has no README. tts-fallback, listed in packages/README.md, has no directory under packages/ (checked to depth 3).
utilities/service-* — provider-neutral services with adapters
Pattern: createXService() reads X_PROVIDER, returns a stable interface, and ships a console adapter (or memory) for dev/tests. Prefer these over importing vendor SDKs.
| Package | Env var → adapters |
|---|---|
service-analytics |
ANALYTICS_PROVIDER → posthog, vercel, marketing-os, console (also analytics-os, postgres in source, undocumented) |
service-auth |
AUTH_PROVIDER → better_auth, supabase, clerk, console |
service-cache |
CACHE_PROVIDER → upstash, ioredis, memory |
service-deployer |
DEPLOY_PROVIDER → forge-hosting, vercel, console |
service-email |
EMAIL_PROVIDER → resend, mailstack, console |
service-error-tracking |
ERROR_TRACKER_PROVIDER → sentry, self_hosted, console |
service-git |
GIT_PROVIDER → github, gitlab, forge-git, console |
service-i18n |
I18N_PROVIDER → i18n-os, next-intl-static, console |
service-invoice |
INVOICE_PROVIDER → stripe, payments-os, invoice-os, console |
service-newsletter |
NEWSLETTER_PROVIDER → remote, console (Mailstack, HMAC project registration) |
service-queue |
QUEUE_PROVIDER → bullmq, qstash, memory |
service-sms |
SMS_PROVIDER or provider option → twilio, bird, vonage, console (README lists only twilio) |
service-storage |
STORAGE_PROVIDER → backblaze_b2, cloudflare_r2, minio, supabase, generic_s3, memory |
service-support |
SUPPORT_PROVIDER → zendesk, support-os, console |
service-database |
Postgres with SSH tunnel, replicas, pooling; adapters postgres, supabase, console |
service-payments 0.6.0 |
options.provider; Stripe full, PayPal/Adyen/Mollie one-off only, plus PromptPay; subpaths ./stripe, ./webhooks, ./billing-events, ... |
service-ai |
Injected (not env-driven): createLlmService({provider}, {anthropic, openai, gemini}); no README |
service-template |
Helpers for services with per-project secrets; not an adapter service |
service-referrals |
No README; adapter pattern UNVERIFIED |
audits/ — capture, evaluate, report
Pipeline: capture (screen-audit, batched by screen-audit-runner) → evaluate (audit-core strategies: vision, diagnose, plan, tier) → report (AuditReport: score 0–100, issues[], JSON + markdown; audit-tiers maps to draft <60 / preview 60–79 / pass 80–89 / beta / prod).
| Aim | Package |
|---|---|
| Audit one flow or a route | screen-audit 0.13.0 (bin screen-audit; Playwright, axe, perf, vision, diff) |
Many flows/devices, filters --tags --domains |
screen-audit-runner 0.3.4 (scaffolded node screen-audit/run.mjs) |
| Auto-fix loop (score, diagnose, plan, apply, verify) | screen-audit-iterate 0.27.5 (config audit-iterate.config.ts) |
| Scaffold + flow authoring | audit-init (flow-kit: el, step, flow, appFlow) |
| Strategy / plugin contract | audit-core 0.1.4 + audit-strategy-{wcag-strict,brand-focused,perf-focused} |
| Site-wide a11y without flows | a11y-audit 0.1.0 |
| Lighthouse over deployed URLs | lighthouse-audit 0.2.0 (README shows npx but package.json has no bin) |
| Pixel diff vs baseline | visual-regression 0.1.0 |
| CI gates | testid-audit, first-experience-audit (0–100 first-screen score), maturity-score (--min N), no-app-shadow |
| Component-level | storybook-audit + story-harness |
| Production site audit | prod-audit 0.2.0 (no README) |
Deprecated, do not start new work on: screen-evaluator (shim over audit-core, migrate:screen-evaluator codemod), screen-audit-kit (import from audit-init/flow-kit). audit-tiers is deprecated for tier logic but remains the portfolio CLI. screen-capture is orphaned from audit-manager. Orchestrators live in agents/ (audit-manager, audit-agent).
Sidecar schemas
@blueforge-studio/blueforge-sidecar-schemas 0.32.0 (dir packages/utilities/sidecar-schemas; the npm name differs from the dir). Zod schemas and CLI blueforge-sidecars.
- Validates:
blueforge.product.yml,blueforge.features.yml(features, pricing, promotions,flags:,trial:),blueforge.config.json(V2 strict),blueforge.manifest.yml(generated), plusblueforge.app.yml,.package.yml,.tests.yml,.testing.yml,.showcase.yml,features/<id>.feature.yml,*.user-flows.yml,*.data-flows.yml. - CLI:
aggregate [--check]writes/verifies the manifest (the CI gate);validate;verify-flows;showcase validate|emit. - Consume:
parse*Sidecar/*SidecarSchema.safeParse, orloadSidecars(). The loader warns and silently drops files that fail parsing (seewarnings[]). - Versions: file-level
versionis the literal"2.0.0"(CURRENT_VERSION); there is no migration mechanism, so bumping it empties the loader fleet-wide. "V3" is the monorepo surface (app/package/tests sidecars,extends), not a new literal. The README is stale (says three files). - Related:
manifest-schema(audit pluginblueforge.manifest.json, different file),dev-db(derived per-repo SQLite over sidecars;dev-db syncthensummarize|flow|impact|tests).auth-schemais Drizzle tables, not a sidecar validator.
Other utilities worth knowing
feature-gate (server withFeatureGate, client <FeatureGate>, via FeatureResolver), tenancy (forge-auth organizations SDK), i18n-tools, shared-catalog, docs-core, key-vault (purpose UNVERIFIED). Runtime feature flags: @blueforge-studio/flags (forge-control; not yet published as of this snapshot).