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
- Repository root
- Repository root
- Likely public API
- Likely public API
- Likely start-up file
- Suggested starting pointAI
- Suggested starting pointAI
- Suggested starting pointAI
Find files for a task
AIAdd 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.