Code Quality
Weight 20%avg_cc=3.47, max_cc=40, duplication=86.89%, dead_code=5
| Primary Language | JavaScript/TypeScript |
|---|---|
| Primary Framework | TypeScript |
| Detected Frameworks | TypeScript |
| Deployable Types | API |
| Technology Stack | JavaScript/TypeScript, CI/CD |
| Default Branch | main |
| Documentation Priority | P1 |
| Last Repository Scan | 11/15/2026, 5:14:36 AM |
| Source Repository | Open on GitHub |
280e323c3d5c1408ef0c52e83fe03e70ceb7bcb6langfuse/langfuse-js280e323c3d5c1408ef0c52e83fe03e70ceb7bcb6graph TD;
classDef atlasRoot fill:#004882,stroke:#a3c9ff,stroke-width:2px,color:#d3e4ff
classDef atlasCategory fill:#212428,stroke:#E87A48,stroke-width:1.5px,color:#dfe3eb
classDef atlasWorkflow fill:#1b2026,stroke:#a3c9ff,stroke-width:1.5px,color:#dfe3eb
classDef atlasJob fill:#171c22,stroke:#8d9199,stroke-width:1px,color:#dfe3eb
classDef atlasTarget fill:#005227,stroke:#8bd99b,stroke-width:1.5px,color:#a7f6b6
classDef atlasAlert fill:#93000a,stroke:#ffb4ab,stroke-width:1.5px,color:#ffdad6
classDef atlasMore fill:#252a31,stroke:#8d9199,stroke-dasharray:4 4,color:#c3c6cf
repo_root(["langfuse/langfuse-js (154 components)"]):::atlasRoot
subgraph sg_dir_0_packages["packages (152)"]
direction TB
dir_0_packages["packages (152)"]:::atlasCategory
sub_0_0_core["core (138)"]:::atlasWorkflow
dir_0_packages --> sub_0_0_core
sub_0_1_client["client (5)"]:::atlasWorkflow
dir_0_packages --> sub_0_1_client
sub_0_2_browser["browser (2)"]:::atlasWorkflow
dir_0_packages --> sub_0_2_browser
sub_0_more["+5 more submodules (7)"]:::atlasMore
dir_0_packages --> sub_0_more
end
repo_root --> dir_0_packages
dir_1__root_["(root) (1)"]:::atlasCategory
repo_root --> dir_1__root_
dir_2_tests["tests (1)"]:::atlasCategory
repo_root --> dir_2_tests
Showing top 60 representative components out of 154 across 3 module group(s):
Module packages (152 components — API_ROUTE: 135, MODULE: 8, SERVICE: 8)
Module (root) (1 components — MODULE: 1)
Module tests (1 components — SERVICE: 1)
@langfuse/browser (packages/browser/package.json): MODULE
@langfuse/client (packages/client/package.json): MODULE
@langfuse/core (packages/core/package.json): MODULE
@langfuse/langchain (packages/langchain/package.json): MODULE
@langfuse/openai (packages/openai/package.json): MODULE
@langfuse/otel (packages/otel/package.json): MODULE
@langfuse/tracing (packages/tracing/package.json): MODULE
@langfuse/vercel-ai-sdk (packages/vercel-ai-sdk/package.json): MODULE
API_annotationQueues_index (packages/core/src/api/api/resources/annotationQueues/index.ts): API_ROUTE
API_api_index (packages/core/src/api/api/index.ts): API_ROUTE
API_api_index (packages/core/src/api/index.ts): API_ROUTE
API_auth_index (packages/core/src/api/core/auth/index.ts): API_ROUTE
API_blobStorageIntegrations_index (packages/core/src/api/api/resources/blobStorageIntegrations/index.ts): API_ROUTE
API_client_index (packages/core/src/api/api/resources/annotationQueues/client/index.ts): API_ROUTE
API_client_index (packages/core/src/api/api/resources/blobStorageIntegrations/client/index.ts): API_ROUTE
API_client_index (packages/core/src/api/api/resources/comments/client/index.ts): API_ROUTE
API_client_index (packages/core/src/api/api/resources/datasetItems/client/index.ts): API_ROUTE
API_client_index (packages/core/src/api/api/resources/datasets/client/index.ts): API_ROUTE
API_client_index (packages/core/src/api/api/resources/evaluationRules/client/index.ts): API_ROUTE
API_client_index (packages/core/src/api/api/resources/evaluators/client/index.ts): API_ROUTE
API_client_index (packages/core/src/api/api/resources/experiments/client/index.ts): API_ROUTE
API_client_index (packages/core/src/api/api/resources/feedback/client/index.ts): API_ROUTE
API_client_index (packages/core/src/api/api/resources/health/client/index.ts): API_ROUTE
API_client_index (packages/core/src/api/api/resources/llmConnections/client/index.ts): API_ROUTE
API_client_index (packages/core/src/api/api/resources/media/client/index.ts): API_ROUTE
API_client_index (packages/core/src/api/api/resources/metrics/client/index.ts): API_ROUTE
API_client_index (packages/core/src/api/api/resources/models/client/index.ts): API_ROUTE
API_client_index (packages/core/src/api/api/resources/observations/client/index.ts): API_ROUTE
API_client_index (packages/core/src/api/api/resources/opentelemetry/client/index.ts): API_ROUTE
API_client_index (packages/core/src/api/api/resources/organizations/client/index.ts): API_ROUTE
API_client_index (packages/core/src/api/api/resources/projects/client/index.ts): API_ROUTE
API_client_index (packages/core/src/api/api/resources/promptVersion/client/index.ts): API_ROUTE
API_client_index (packages/core/src/api/api/resources/prompts/client/index.ts): API_ROUTE
API_client_index (packages/core/src/api/api/resources/scim/client/index.ts): API_ROUTE
API_client_index (packages/core/src/api/api/resources/scoreConfigs/client/index.ts): API_ROUTE
API_client_index (packages/core/src/api/api/resources/scores/client/index.ts): API_ROUTE
API_client_index (packages/core/src/api/api/resources/skills/client/index.ts): API_ROUTE
API_client_index (packages/core/src/api/api/resources/trace/client/index.ts): API_ROUTE
API_client_index (packages/core/src/api/api/resources/unstable/client/index.ts): API_ROUTE
API_client_index (packages/core/src/api/api/resources/unstable/resources/dashboardWidgets/client/index.ts): API_ROUTE
API_client_index (packages/core/src/api/api/resources/unstable/resources/dashboards/client/index.ts): API_ROUTE
API_client_index (packages/core/src/api/api/resources/unstable/resources/topics/client/index.ts): API_ROUTE
API_comments_index (packages/core/src/api/api/resources/comments/index.ts): API_ROUTE
API_commons_index (packages/core/src/api/api/resources/commons/index.ts): API_ROUTE
API_core_index (packages/core/src/api/core/index.ts): API_ROUTE
API_dashboardWidgets_index (packages/core/src/api/api/resources/unstable/resources/dashboardWidgets/index.ts): API_ROUTE
API_dashboards_index (packages/core/src/api/api/resources/unstable/resources/dashboards/index.ts): API_ROUTE
API_datasetItems_index (packages/core/src/api/api/resources/datasetItems/index.ts): API_ROUTE
API_datasets_index (packages/core/src/api/api/resources/datasets/index.ts): API_ROUTE
API_errors_index (packages/core/src/api/api/resources/commons/errors/index.ts): API_ROUTE
API_errors_index (packages/core/src/api/api/resources/evaluationErrors/errors/index.ts): API_ROUTE
API_errors_index (packages/core/src/api/api/resources/feedback/errors/index.ts): API_ROUTE
API_errors_index (packages/core/src/api/api/resources/health/errors/index.ts): API_ROUTE
API_errors_index (packages/core/src/api/api/resources/unstable/resources/errors/errors/index.ts): API_ROUTE
API_errors_index (packages/core/src/api/api/resources/unstable/resources/errors/index.ts): API_ROUTE
API_errors_index (packages/core/src/api/errors/index.ts): API_ROUTE
API_evaluationCommons_index (packages/core/src/api/api/resources/evaluationCommons/index.ts): API_ROUTE
API_evaluationErrors_index (packages/core/src/api/api/resources/evaluationErrors/index.ts): API_ROUTE
API_evaluationRules_index (packages/core/src/api/api/resources/evaluationRules/index.ts): API_ROUTE
API_evaluators_index (packages/core/src/api/api/resources/evaluators/index.ts): API_ROUTE
F (51.37/100)| Dimension | Grade | Score | Weight | Details |
|---|---|---|---|---|
| Code Quality | F | 38.12 | 0.20 | avg_cc=3.47, max_cc=40, duplication=86.89%, dead_code=5 |
| Dependency Health | A | 100.00 | 0.15 | dependencies=866, outdated=0, vulnerable=0, has_lockfile=True |
| Maintainability | F | 37.00 | 0.15 | avg_cognitive=1.76, max_cognitive=126, fitness_violations=3, oversized_files=18 |
| Pipeline Health | F | 58.00 | 0.15 | workflows=7, operational_antipatterns=8, parallel_branches=True |
| Security | F | 20.00 | 0.20 | vulnerabilities=0, secrets=0, pipeline_security_findings=4 |
| Test Coverage | C | 70.00 | 0.15 | coverage=unavailable, ci_test_job=True, test_files_detected=True |
ATRUSS-ARCH-005 (COMPLEXITY_THRESHOLD): Repository duplication_pct (86.89) exceeds policy threshold (15.0).ATRUSS-ARCH-005 (COMPLEXITY_THRESHOLD): Repository max_cognitive_complexity (126.0) exceeds policy threshold (25.0).ATRUSS-ARCH-005 (COMPLEXITY_THRESHOLD): Repository max_cyclomatic_complexity (40.0) exceeds policy threshold (20.0).packages/browser, react_ts_js, pnpm) -> internal deps: @langfuse/corepackages/client, react_ts_js, pnpm) -> internal deps: @langfuse/core, @langfuse/tracingpackages/core, react_ts_js, pnpm)packages/langchain, react_ts_js, pnpm) -> internal deps: @langfuse/core, @langfuse/tracingpackages/openai, react_ts_js, pnpm) -> internal deps: @langfuse/core, @langfuse/tracingpackages/otel, react_ts_js, pnpm) -> internal deps: @langfuse/corepackages/tracing, react_ts_js, pnpm) -> internal deps: @langfuse/corepackages/vercel-ai-sdk, react_ts_js, pnpm) -> internal deps: @langfuse/core@ai-sdk/anthropic 2 (npm, package.json)@ai-sdk/anthropic 2.0.6 (npm, pnpm-lock.yaml)@ai-sdk/openai 4.0.0 (npm, package.json)@ai-sdk/openai 4.0.0 (npm, pnpm-lock.yaml)@ai-sdk/otel 1.0.44 (npm, packages/vercel-ai-sdk/package.json)@ai-sdk/otel 1.0.44 (npm, pnpm-lock.yaml)@eslint/js 9.32.0 (npm, package.json)@eslint/js 9.32.0 (npm, pnpm-lock.yaml)@langchain/core 1.2.11 (npm, package.json)@langchain/core 1.2.11 (npm, packages/langchain/package.json)@langchain/core 1.2.11 (npm, pnpm-lock.yaml)@langchain/langgraph 1.1.4 (npm, package.json)@langchain/langgraph 1.1.4 (npm, pnpm-lock.yaml)@langchain/openai 1.2.7 (npm, package.json)@langchain/openai 1.2.7 (npm, pnpm-lock.yaml)@langfuse/core * (npm, packages/browser/package.json)@langfuse/core * (npm, packages/client/package.json)@langfuse/core * (npm, packages/langchain/package.json)@langfuse/core * (npm, packages/openai/package.json)@langfuse/core * (npm, packages/otel/package.json)@langfuse/core * (npm, packages/tracing/package.json)@langfuse/core * (npm, packages/vercel-ai-sdk/package.json)@langfuse/tracing * (npm, packages/client/package.json)@langfuse/tracing * (npm, packages/langchain/package.json)@langfuse/tracing * (npm, packages/openai/package.json)@opentelemetry/api 1.9.1 (npm, package.json)@opentelemetry/api 1.9.1 (npm, pnpm-lock.yaml)@opentelemetry/core 2.9.0 (npm, package.json)@opentelemetry/core 2.9.0 (npm, pnpm-lock.yaml)@opentelemetry/exporter-trace-otlp-http 0.220.0 (npm, pnpm-lock.yaml)flowchart LR
classDef atlasCategory fill:#212428,stroke:#E87A48,stroke-width:1.5px,color:#dfe3eb
classDef atlasWorkflow fill:#1b2026,stroke:#a3c9ff,stroke-width:1.5px,color:#dfe3eb
classDef atlasJob fill:#171c22,stroke:#8d9199,stroke-width:1px,color:#dfe3eb
classDef atlasTarget fill:#005227,stroke:#8bd99b,stroke-width:1.5px,color:#a7f6b6
subgraph code_modules["Code Modules"]
mod_tests["tests"]:::atlasCategory
end
subgraph ci_jobs["CI/CD Jobs"]
job_ci_yml_test_e2e["ci.yml#test-e2e"]:::atlasJob
job_release_yml_release_js_sdk["release.yml#release-js-sdk"]:::atlasJob
end
subgraph runtime_envs["Runtime Environments"]
env_protected_branches["protected branches"]:::atlasTarget
end
job_release_yml_release_js_sdk -->|DEPLOYS_TO| env_protected_branches
mod_tests -->|BUILT_BY| job_ci_yml_test_e2e
release.yml#release-js-sdk (ci_job) —[DEPLOYS_TO]—> protected branches (environment)tests (code_module) —[BUILT_BY]—> ci.yml#test-e2e (ci_job)graph TD;
classDef atlasRoot fill:#004882,stroke:#a3c9ff,stroke-width:2px,color:#d3e4ff
classDef atlasCategory fill:#212428,stroke:#E87A48,stroke-width:1.5px,color:#dfe3eb
classDef atlasWorkflow fill:#1b2026,stroke:#a3c9ff,stroke-width:1.5px,color:#dfe3eb
classDef atlasJob fill:#171c22,stroke:#8d9199,stroke-width:1px,color:#dfe3eb
classDef atlasTarget fill:#005227,stroke:#8bd99b,stroke-width:1.5px,color:#a7f6b6
classDef atlasAlert fill:#93000a,stroke:#ffb4ab,stroke-width:1.5px,color:#ffdad6
classDef atlasMore fill:#252a31,stroke:#8d9199,stroke-dasharray:4 4,color:#c3c6cf
pipeline_root(["langfuse/langfuse-js (7 workflows)"]):::atlasRoot
subgraph sg_grp_0_CI___Verification["CI & Verification (3 workflows · 3 jobs)"]
direction TB
subgraph sg_wf_1_CLA_gate["CLA gate (1 jobs)"]
direction TB
wf_1_CLA_gate(["Trigger: CLA gate"]):::atlasWorkflow
job_1_evaluate["evaluate"]:::atlasJob
wf_1_CLA_gate --> job_1_evaluate
end
pipeline_root --> wf_1_CLA_gate
subgraph sg_wf_2_Claude_Review_on_Maintainer_PRs["Claude Review on Maintainer PRs (1 jobs)"]
direction TB
wf_2_Claude_Review_on_Maintainer_PRs(["Trigger: Claude Review on Maintainer PRs"]):::atlasWorkflow
job_2_comment["comment"]:::atlasJob
wf_2_Claude_Review_on_Maintainer_PRs --> job_2_comment
end
pipeline_root --> wf_2_Claude_Review_on_Maintainer_PRs
subgraph sg_wf_5_Validate_PR_Title["Validate PR Title (1 jobs)"]
direction TB
wf_5_Validate_PR_Title(["Trigger: Validate PR Title"]):::atlasWorkflow
job_5_validate_pr_title["validate-pr-title"]:::atlasJob
wf_5_Validate_PR_Title --> job_5_validate_pr_title
end
pipeline_root --> wf_5_Validate_PR_Title
end
subgraph sg_grp_1_Scheduled___Manual["Scheduled & Manual (2 workflows · 6 jobs)"]
direction TB
subgraph sg_wf_0_CI["CI (5 jobs)"]
direction TB
wf_0_CI(["Trigger: CI"]):::atlasWorkflow
job_0_test_unit["test-unit"]:::atlasJob
job_0_test_integration["test-integration"]:::atlasJob
job_0_test_e2e["test-e2e"]:::atlasJob
wf_0_CI --> job_0_test_unit
wf_0_CI --> job_0_test_integration
wf_0_CI --> job_0_test_e2e
end
pipeline_root --> wf_0_CI
subgraph sg_wf_6_Check_GitHub_Actions["Check GitHub Actions (1 jobs)"]
direction TB
wf_6_Check_GitHub_Actions(["Trigger: Check GitHub Actions"]):::atlasWorkflow
job_6_zizmor["zizmor"]:::atlasJob
wf_6_Check_GitHub_Actions --> job_6_zizmor
end
pipeline_root --> wf_6_Check_GitHub_Actions
end
subgraph sg_grp_2_Release___Deploy["Release & Deploy (1 workflows · 1 jobs)"]
direction TB
subgraph sg_wf_4_Release_JS_TS_SDK["Release JS/TS SDK (1 jobs)"]
direction TB
wf_4_Release_JS_TS_SDK(["Trigger: Release JS/TS SDK"]):::atlasWorkflow
job_4_release_js_sdk["release-js-sdk"]:::atlasJob
wf_4_Release_JS_TS_SDK --> job_4_release_js_sdk
end
pipeline_root --> wf_4_Release_JS_TS_SDK
end
subgraph sg_grp_3_Security___Governance["Security & Governance (1 workflows · 1 jobs)"]
direction TB
subgraph sg_wf_3_CodeQL["CodeQL (1 jobs)"]
direction TB
wf_3_CodeQL(["Trigger: CodeQL"]):::atlasWorkflow
job_3_analyze["analyze"]:::atlasJob
wf_3_CodeQL --> job_3_analyze
end
pipeline_root --> wf_3_CodeQL
endavg_cc=3.47, max_cc=40, duplication=86.89%, dead_code=5
vulnerabilities=0, secrets=0, pipeline_security_findings=4
avg_cognitive=1.76, max_cognitive=126, fitness_violations=3, oversized_files=18
coverage=unavailable, ci_test_job=True, test_files_detected=True
dependencies=866, outdated=0, vulnerable=0, has_lockfile=True
workflows=7, operational_antipatterns=8, parallel_branches=True
isExpiredpackages/client/src/prompt/promptCache.ts:17getSetCookiepackages/core/src/api/core/fetcher/Headers.ts:74[Symbol.iterator]packages/core/src/api/core/fetcher/Headers.ts:94tracerpackages/tracing/src/spanWrapper.ts:158setTraceAsPublicpackages/tracing/src/spanWrapper.ts:191ATRUSS-ARCH-005COMPLEXITY_THRESHOLDpackages/langchain/src/CallbackHandler.ts:1Repository duplication_pct (86.89) exceeds policy threshold (15.0).
ATRUSS-ARCH-005COMPLEXITY_THRESHOLDpackages/langchain/src/CallbackHandler.ts:1Repository max_cognitive_complexity (126.0) exceeds policy threshold (25.0).
ATRUSS-ARCH-005COMPLEXITY_THRESHOLDpackages/langchain/src/CallbackHandler.ts:1Repository max_cyclomatic_complexity (40.0) exceeds policy threshold (20.0).
No known OSV vulnerabilities detected across 866 parsed dependencies.
No hardcoded secret patterns detected.
packages/browserpackages/clientpackages/corepackages/langchainpackages/openaipackages/otelpackages/tracingpackages/vercel-ai-sdk