RepoPilot

mintplex-labs / anything-llm

Search mintplex-labs/anything-llm

GitHub

Code

How mintplex-labs/anything-llm is laid out, and where to start for common changes.

There is no import map for this report yet.

Where to start reading

  1. Repository root
  2. Repository root
  3. Likely public API
  4. Likely public API
  5. Likely start-up file
  6. Suggested starting pointAI
  7. Suggested starting pointAI
  8. Suggested starting pointAI

Find files for a task

AI

Add a new API endpoint

  • Create a new route handler in server/endpoints/ following Express conventions
  • Register the route in server/index.js middleware chain
  • Add corresponding HTTP logger middleware via collector/middleware/httpLogger.js pattern
  • Document endpoint in server/swagger/index.js for API discovery

Add support for a new document format

  • Create a conversion handler in collector/processSingleFile/convert/ (e.g., asDocx.js pattern)
  • Register format in collector/extensions/index.js dispatch system
  • Optionally add OCR preprocessing via collector/utils/OCRLoader/index.js if format contains images
  • Test resync workflow in collector/extensions/resync/index.js to ensure updates work

Add a new AI provider backend

  • Create provider directory under server/utils/AiProviders/ (mirror anthropic/index.js structure)
  • Register provider in server/endpoints/ routes that dispatch LLM calls
  • Add API key configuration model in server/models/ following apiKeys.js pattern

Deploy to a new cloud platform

  • Create platform-specific directory under cloud-deployments/ with DEPLOY.md instructions
  • Use docker/docker-compose.yml and docker/Dockerfile as base for containerization
  • Reference docker/docker-entrypoint.sh for environment variable injection and service startup
  • Follow Helm chart pattern in cloud-deployments/helm/charts/anythingllm/ for Kubernetes-based deployments

Change the public API

Trace runtime behavior

Add or update tests

Change build or automation

RepoPilot lists up to 500 files, so a file missing here may still exist.

  • Files marked “likely” are guessed from their names.
  • Some entry points named in the manifest are build output or are missing from the file list, so their source is not shown.

Code quality and hotspots

Largest source files

  • Branch points82 per file on average
  • Code issues0 errors, 15 warnings
  • Largest file1,621 lines
  • Hotspot load3 high-risk files

Static checks on the 15 largest source files.

Tests, CI and tooling

  • CIGitHub Actions9 workflows
  • Tests90 test filesJest/Vitest · 0.08 test files per source file (file count, not coverage)
  • Dependency updatesNo config detected

Test folders: server/__tests__/models · server/__tests__/utils/AiProviders/embeddedLemonade · collector/__tests__/utils/extensions/RepoLoader

Hotspots

Files that change often and branch heavily, highest first. Branch points count if, loop, case, catch, ternary, && and || in the file.