Overview
VibeLearn’s worker exposes a localhost HTTP API on port 37778. Any IDE or tool can integrate with it by calling the session lifecycle endpoints — the same way the Claude Code and Cursor hooks do.Session Lifecycle Integration
To integrate VibeLearn into any IDE or tool, call these endpoints in order:1. Initialize Session (on session start)
2. Record Observations (per tool use / file edit)
tool_type values: file_edit, bash_command, mcp_tool
3. Trigger Analysis Pipeline (on session end)
Call these 5 endpoints sequentially after the session ends:Full API Reference
Session Endpoints
| Method | Path | Body | Description |
|---|---|---|---|
POST | /api/sessions/init | {contentSessionId, project, prompt} | Initialize session |
POST | /api/sessions/observations | {contentSessionId, tool_type, file_path?, content?, cwd} | Store observation |
GET | /api/sessions/:id/summary | — | Get session summary |
Analysis Pipeline
| Method | Path | Body | Description |
|---|---|---|---|
POST | /api/vibelearn/analyze/stack | {contentSessionId} | Detect tech stack |
POST | /api/vibelearn/analyze/static | {contentSessionId} | AST pattern analysis |
POST | /api/vibelearn/analyze/concepts | {contentSessionId, last_assistant_message?} | LLM concept extraction |
POST | /api/vibelearn/analyze/quiz | {contentSessionId} | LLM quiz generation |
POST | /api/vibelearn/sync | {contentSessionId} | Upstream sync |
Learning Data
| Method | Path | Description |
|---|---|---|
GET | /api/vibelearn/profile | Developer mastery profile |
GET | /api/vibelearn/questions/pending | Unanswered quiz questions |
System
| Method | Path | Description |
|---|---|---|
GET | /api/health | Full health info |
GET | /api/readiness | {"status":"ready"} |
POST | /api/admin/restart | Restart worker |
POST | /api/admin/shutdown | Shutdown worker |
Settings Reference
The worker reads from~/.vibelearn/settings.json:
| Key | Default | Description |
|---|---|---|
VIBELEARN_WORKER_PORT | 37778 | HTTP port |
VIBELEARN_GEMINI_API_KEY | "" | Gemini API key |
VIBELEARN_OPENROUTER_API_KEY | "" | OpenRouter API key |
VIBELEARN_AUTO_SYNC | true | Sync to vibelearn.dev |
Minimal Platform Integration Checklist
- Call
/api/readinesson startup — wait up to 15s for worker - Call
/api/sessions/initwhen a new session starts - Call
/api/sessions/observationsfor each file edit/tool use (fire-and-forget) - Call the 5 analysis endpoints sequentially when session ends
- All calls are localhost — no external network required at runtime

