A modular geospatial engine written in JavaScript and TypeScript
This report summarizes scanner evidence for Turfjs/turf, a TypeScript project with 10,525 GitHub stars. SynthScan examined 136,029 lines of code across 939 source files, recording 19 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 0.2 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 19 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 12 finding(s).
Which changes need focused human review? 19 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 19 distinct pattern matches across 4 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/turf-mask/index.ts | 95 | function createGeomFromPolygonClippingOutput(unioned: Position[][][]) { | CODE |
| LOW | packages/turf-rhumb-destination/index.ts | 83 | function calculateRhumbDestination( | CODE |
| LOW | packages/turf-standard-deviational-ellipse/index.ts | 70 | function standardDeviationalEllipse( | CODE |
| LOW | packages/turf-boolean-crosses/index.ts | 72 | function doMultiPointAndLineStringCross( | CODE |
| LOW | packages/turf-boolean-crosses/index.ts | 136 | function doLineStringAndPolygonCross(lineString: LineString, polygon: Polygon) { | CODE |
| LOW | packages/turf-boolean-valid/index.ts | 126 | function checkRingsForSpikesPunctures(geom: Position[]) { | CODE |
| LOW | packages/turf-boolean-valid/index.ts | 137 | function checkPolygonAgainstOthers( | CODE |
| LOW | …ages/turf-line-intersect/lib/sweeplineIntersections.ts | 64 | function checkWhichSegmentHasRightEndpointFirst(seg1: Segment, seg2: Segment) { | CODE |
| LOW | packages/turf-boolean-contains/index.ts | 143 | function isMultiPointInMultiPolygon( | CODE |
| LOW | packages/turf-boolean-contains/index.ts | 189 | function isMultiLineStringInMultiPolygon( | CODE |
| LOW | packages/turf-boolean-contains/index.ts | 231 | function isMultiPolygonInMultiPolygon( | CODE |
| LOW | packages/turf-boolean-contains/index.ts | 357 | function splitLineIntoSegmentsOnPolygon( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | packages/turf-point-to-line-distance/test.ts | 127 | // This point should be about 3.4m from the line. Definitely not 4.3! | COMMENT |
| MEDIUM | packages/turf-point-to-line-distance/test.ts | 138 | // This point should be about 1000m from the line. Definitely not 1017! | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/turf-nearest-point-on-line/test.ts | 621 | // create a test case where the line segment passed is small enough such that | COMMENT |
| LOW | packages/turf-nearest-point-on-line/index.ts | 241 | // Convert spherical (lng, lat) to cartesian vector coords (x, y, z) | COMMENT |
| LOW | packages/turf-nearest-point-on-line/index.ts | 281 | } | COMMENT |
| LOW | packages/turf-meta/index.ts | 641 | // @ts-expect-error: Known type conflict | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/turf-shortest-path/lib/javascript-astar.ts | 86 | // We need to check if the path we have arrived at this neighbor is the shortest one we have seen yet. | COMMENT |