BAMF.AIStack

Architecture

Layers top to bottom: Surfaces reach the Agent & API/MCP gateway, which fronts edge functions and the data plane, which in turn drives execution lanes and the external providers they call.

BAMF stack architecture diagramSURFACESAGENT & API / MCP GATEWAYEDGE FUNCTIONS & DATA PLANEEXECUTION LANES & PROVIDERSapp.bamf.aiBAMF desktop (macOS/iOS/Linux)Chrome extensionbamf-dev-dashboard.bamf.soconnect.bamf.comBAMF Agent & API/MCP gateway (mcp.bamf.ai, api.bamf.ai)Supabase edge functionsSupabase data planebamfsite gateway / site-serve-proxyBAMF Connect (Liaufa)Zernio/LateMultiloginApifyOpenAIAnthropicOpenRouterElevenLabsStripe

Directory table

ComponentKindRepoPathRun / buildDeploy targetPurpose
BAMF.ai web appweb appbamfaiappsrc/
npm run dev
npm run build
Netlify (netlify.toml, public/_redirects)The React/TypeScript/Vite/Supabase product: post generation, author management, scheduling, analytics, Video Studio.
BAMF.ai Supabase edge functionsedge functionsbamfaiappsupabase/functions/
supabase start
supabase functions deploy <name>
Supabase (linked project ubetjzaarcuwiafglxtq)Server-side logic: admin-auth, bamf-gateway-v1, client-mcp, product-mcp, unified-app-gateway, ad-boost, zernio scheduling, LLM proxies, and more.
BAMF Agent MCP gatewaymcpbamfaiappsupabase/functions/bamf-gateway-v1/, supabase/functions/client-mcp/, supabase/functions/product-mcp/
supabase functions deploy bamf-gateway-v1
supabase functions deploy product-mcp
Supabase edge runtime, exposed publicly at mcp.bamf.aiThe official BAMF product MCP surface (tools/resources for agents); docs/mcp-tool-reference.json and src/generated/mcpToolReference.ts are the generated contract.
BAMF desktop (macOS via Tauri)desktopbamfaiappsrc-tauri/ (Cargo.toml, tauri.conf.json — identifier ai.bamf.desktop, productName "BAMF AI")
cargo tauri dev (from src-tauri/)
cargo tauri build
Signed macOS app, self-distributed via desktop:publish scriptThe BAMF Browser / desktop shell: WKWebView cookie-seeding for LinkedIn session import, native automation envelope.
BAMF desktop (iOS)mobilebamfaiappsrc-tauri/gen/apple/ (bamf-desktop.xcodeproj, bamf-desktop_iOS/, project.yml, Podfile)
cargo tauri ios dev
cargo tauri ios build
TestFlight / App Store ConnectiOS build of the Tauri app generated under src-tauri/gen/apple; Info.plist and entitlements live here.
BAMF desktop (Linux)desktopbamfaiappsrc-tauri/ (shared Cargo/tauri config; Linux target has no separate gen/ directory — it builds from the same src-tauri/ tree as macOS)
cargo tauri dev
cargo tauri build --target x86_64-unknown-linux-gnu
Not yet distributed; build target onlyLinux desktop target sharing the macOS Tauri source tree.
BAMF.ai Chrome extensionextensionbamfaiappbamfai-chrome/
load unpacked in chrome://extensions
npm run build:ext
Chrome Web Store (public/downloads/bamfai-chrome.zip mirrors the CWS build)Visible-tab LinkedIn/Sales Navigator metadata attach, plus the owner-authorized local-only LinkedIn session import into the BAMF Browser.
BAMFStack skillsstack/skillsbamfaiappbamfstack/skills/
n/a (skills consumed by agent harnesses)
n/a
Synced into ~/.claude/skills and other agent-stack-sync targetsDistributable BAMF operator skills (bamf-api, bamf-draft, bamf-schedule, etc.) for agent-first product operation.
bamfai-examples (public reference repo)clibamfai-examplesgithub.com/houstongolden/bamfai-examples
fetch examples.json then pull raw files by URL
n/a
GitHub (public)Starter code and published reference prompts coding agents pull directly instead of pasted boilerplate.
bamfsite (agency OS)site/agency OSbamfsitesrc/ (root)
npm run dev
npm run build
Netlify (netlify.toml)Proprietary bamf.com / agency brain: client campaigns, contact graph, internal operations.
BAMF gateway / site-serve proxydata planebamfsiteservices/site-serve-proxy/, services/site-builder/
node services/site-serve-proxy (per service README)
n/a
bamfsite-owned infrastructureServes and builds BAMF-managed Git-connected client sites.
BAMF Connectsite/agency OSbamfsiteextensions/bamf-chrome/ plus bamfsite server routes (Liaufa API integration)
npm run dev (bamfsite)
npm run build (bamfsite)
connect.bamf.comClient-facing CRM/outreach surface: DMs, comments, reactions, connection requests via the Liaufa API and Multilogin browser lane.
BAMF Agent desktop (bamfsite)desktopbamfsitedesktop/ (src-tauri/, scripts/manage-local-app.mjs)
npm run bamf-agent-desktop:run
npm run bamf-agent-desktop:install
Local-machine launchd-managed app (bamf-agent-desktop:launchd:install)Local BAMF agent runtime for BAMFOS admin operations, dock/launchd lifecycle management.
bamf-dev-dashboarddashboardbamf-dev-dashboardapp/, content/, lib/
npm run dev (vinext dev)
npm run build (vinext build, output: export)
bamf-dev-dashboard.bamf.so (BAMF-managed Vercel-backed Site runtime; GitHub is source owner)This engineering-only operating surface: lanes/sessions, stack map, decisions log, AI provider inventory.

External providers

ProviderRoleConfirmed in
Supabaseprimary data plane, auth, edge functionsbamfaiapp CLAUDE.md, supabase/functions/
Netlifystatic hosting for bamfaiapp and bamfsitenetlify.toml in both repos
Zernio / Lateheadless OAuth + scheduling rail for IG/Threads/YT/TikTok and general multi-channel schedulingbamfaiapp CLAUDE.md (zernio-schedule-video-post, zernio-schedule-post)
Liaufa / BAMF Connectprimary API lane for DMs, comments, reactions, connection requestsbamfaiapp CLAUDE.md hard boundary section referencing Liaufa API
Multiloginpersistent authenticated browser profiles for LinkedIn UI-only actions and recoverybamf-connect-browser-operator and bamf-multilogin-x-operator skill descriptions
ApifyLinkedIn/profile scrapingbamfaiapp APIFY_DEPLOYMENT_STEPS.md, APIFY_LINKEDIN_SETUP.md, viral-clip-scraper edge function
OpenAIpost generation, Whisper transcription, image analysissrc/lib/posts/openai.ts, openai-audio-proxy
AnthropicClaude post generationsrc/lib/posts/anthropic.ts, supabase/functions/anthropic-proxy
OpenRouteroptional routed LLM traffic behind LLM_ROUTE_VIA_OPENROUTERsupabase/functions/openai-proxy, D6 decision
ElevenLabscreator voice cloning for Video Studioauthors.elevenlabs_voice_id, elevenlabs-proxy edge function
Stripebilling/subscriptionsbamfaiapp CLAUDE.md required env VITE_STRIPE_PUBLISHABLE_KEY

Not included above because they could not be confirmed by grep: Gemini as a distinct provider key (only referenced indirectly via image-classification SQL scripts; no dedicated proxy function confirmed); Sendblue / Slack / WhatsApp as agent-channel providers beyond the bamf-os-sendblue-follow-up function name and bamf-tag / bamf-whatsapp-tag service directories in bamfsite.