RepoPilot

langflow-ai / langflow

Search langflow-ai/langflow

GitHub

Code

How langflow-ai/langflow 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. Likely start-up file
  7. Suggested starting pointAI
  8. Suggested starting pointAI

Find files for a task

AI

Add a New Backend API Endpoint

  • Define request/response schemas in src/backend/base/langflow/agentic/api/schemas.py
  • Implement route handler in appropriate router (router.py, sessions_router.py, or files_router.py)
  • Inject dependencies via deps.py if needed for database/service access

Support a New Workflow Format

  • Add format parser to src/langflow-stepflow/src/langflow_stepflow/translation/
  • Extend Translator class to handle new input format
  • Add test flow definition in src/backend/base/langflow/agentic/flows/

Add SDK Support for New Language

  • Create new language directory mirroring src/sdk/src/langflow_sdk/ structure
  • Implement HTTP transport wrapping _http.py functionality
  • Mirror serialization and model layers from src/sdk/src/langflow_sdk/serialization.py

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.
  • 1 suggested change pattern has no matching file and is left out.

Code quality and hotspots

Largest source files

  • Branch points56 per file on average
  • Code issues0 errors, 18 warnings
  • Largest file3,131 lines
  • Hotspot load7 high-risk files

Static checks on the 15 largest source files.

Tests, CI and tooling

  • CIGitHub Actions52 workflows
  • Tests3,283 test filesPytest · 0.62 test files per source file (file count, not coverage)
  • Dependency updatesCodeQL

Test folders: scripts/ci · scripts/gp/tests

Hotspots

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