How ainsleyfreedman01/branchingoutai works
BranchingOutAI helps users explore careers through an interactive graph: users provide interests, expand career branches, get AI guidance, and search live jobs. The graph page uses authenticated career-tree APIs; account-level state is persisted in Supabase, while a separate legacy chatbot runs through a state-routed agent graph. The README documents frontend/API relationships and major features; some backend route details and optional integrations are unsampled, so uncertain links are omitted or marked unverified.
Main entry points: main.py FastAPI routes · state_manager.py Session state · config.py AI and DB clients · graph_setup.py Agent graph runner
Components 20
Career graph experience
- Interactive graph
frontend/src/app/graph/page.tsx - Graph API client
frontend/src/lib/graphApi.mjs - Sign-in and profile
frontend/src/context/AuthContext.tsx
Career-tree API
- FastAPI routes
backend/app/main.py - Career tree generation
backend/app/career_tree.py - Live job search
backend/app/live_jobs.py
Career guidance
- Legacy chatbot
backend/app/career_chat.py - Agent graph runner
backend/app/graph_setup.py - Interest extraction
backend/app/nodes/interests_node.py - Industry suggestions
backend/app/nodes/industry_node.py - Role suggestions
backend/app/nodes/job_node.py - Skills suggestions
backend/app/nodes/skills_node.py
Persistence and integrations
- Session state
backend/app/state_manager.py - AI and DB clients
backend/app/config.py - State normalization
backend/app/utils/normalization.py - Keyword extraction
backend/app/utils/keywords.py
Other components
- Career explorer
- Supabase
- OpenAI
- TheirStack jobs
Connections 31
- Career explorer → Interactive graph: explores careers
- Interactive graph → Graph API client: requests graph actions
- Graph API client → FastAPI routes: calls career APIs
- Sign-in and profile → Interactive graph: provides sign-in
- FastAPI routes → Career tree generation: handles tree actions
backend/app/main.py - FastAPI routes → Live job search: handles job searches
backend/app/main.py - FastAPI routes → Session state: loads and saves state
backend/app/main.py - FastAPI routes → Legacy chatbot: routes legacy chat
backend/app/main.py - FastAPI routes → Agent graph runner: dispatches chatbot
backend/app/main.py - FastAPI routes → State normalization: normalizes state
backend/app/main.py - Session state → Supabase: reads and writes
backend/app/state_manager.py - Session state → AI and DB clients: gets DB client
backend/app/state_manager.py - Career tree generation → OpenAI: requests suggestions
- Live job search → TheirStack jobs: searches listings
- Agent graph runner → Interest extraction: runs selected node
backend/app/graph_setup.py - Agent graph runner → Industry suggestions: runs selected node
backend/app/graph_setup.py - Agent graph runner → Role suggestions: runs selected node
backend/app/graph_setup.py - Agent graph runner → Skills suggestions: runs selected node
backend/app/graph_setup.py - Interest extraction → Keyword extraction: extracts keywords
backend/app/nodes/interests_node.py - Industry suggestions → Keyword extraction: extracts keywords
backend/app/nodes/industry_node.py - Role suggestions → Keyword extraction: extracts keywords
backend/app/nodes/job_node.py - Skills suggestions → Keyword extraction: extracts keywords
backend/app/nodes/skills_node.py - Interest extraction → AI and DB clients: requests AI parsing
backend/app/nodes/interests_node.py - Industry suggestions → AI and DB clients: requests suggestions
backend/app/nodes/industry_node.py - Role suggestions → AI and DB clients: requests suggestions
backend/app/nodes/job_node.py - Skills suggestions → AI and DB clients: requests skills
backend/app/nodes/skills_node.py - AI and DB clients → OpenAI: calls model
backend/app/config.py - Interest extraction → Session state: saves node state
backend/app/nodes/interests_node.py - Industry suggestions → Session state: loads and saves
backend/app/nodes/industry_node.py - Role suggestions → Session state: loads and saves
backend/app/nodes/job_node.py - Skills suggestions → Session state: loads and saves
backend/app/nodes/skills_node.py