Skip to main content
Genie Helper is built on AnythingLLM with custom extensions. This guide covers the codebase organization, key directories, and file structure to help you navigate the project effectively.

Directory Overview

Core Server (server/)

The server directory contains all backend logic built on top of AnythingLLM’s Express server.

API Endpoints (server/endpoints/api/)

Utilities (server/utils/)

Example: Credential Encryption Platform credentials are encrypted server-side before storage:
Requires CREDENTIALS_ENC_KEY_B64 environment variable (base64 of 32 bytes).

MCP Servers (scripts/)

MCP (Model Context Protocol) servers expose external services as tools to the AI agent. See Extending MCP for details on adding new tools.

Dashboard (dashboard/)

React 18 SPA served from dashboard/dist/ at geniehelper.com/.

Key Files

Routes

Public routes:
  • / — Home
  • /pricing, /about, /register, /login
Authenticated routes:
  • /app/dashboard — Main dashboard
  • /app/media — Media library
  • /app/calendar — Content calendar
  • /app/fans — Fan management
  • /app/analytics — Performance analytics
  • /app/platforms — Platform connections
  • /app/settings — User settings
Admin routes:
  • /admin — Directus + AnythingLLM iframes
  • /view-as — User impersonation

Build Process

Served by pm2 with serve dashboard/dist/ (pm2 name: genie-dashboard).

Media Worker (media-worker/)

BullMQ consumer that processes background jobs:
  • scrape_profile — Stagehand OF login + data extraction
  • publish_post — Stagehand-based cross-platform posting
  • apply_watermark — ImageMagick watermarking
  • create_teaser — FFmpeg video preview generation
  • post_scheduler — Polls scheduled_posts every 60s
Runs as pm2 process (name: media-worker).

Storage (storage/)

AnythingLLM persistent data:
  • plugins/anythingllm_mcp_servers.json — MCP server configuration (see Extending MCP)
  • Document vectors, user data, workspaces

Agent & AI

  • server/utils/nodeRag.js — getOnboardingState() + getNodeContext()
  • Nodes/Universe/taxonomy_graph.json — 3,205-node taxonomy graph
  • Nodes/User/ — Per-user persona node storage

Planning & Tracking

  • .claude/todos — Phase backlog with agent assignments
  • .claude/sessions/ — EOD session logs
  • docs/nginx/ — Nginx config references

Next Steps

Custom Actions

Create custom Action Runner flows

Extending MCP

Add new MCP tools and servers