JavaScript/TypeScript-native, low-boilerplate, object-capability RPC system
This report summarizes scanner evidence for cloudflare/capnweb, a TypeScript project with 4,028 GitHub stars. SynthScan examined 44,383 lines of code across 208 source files, recording 67 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 1.7 (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? 63 finding(s).
Are imports declared and package/API names verified? 1 finding(s).
Are wrappers, guards, and repeated structures necessary? 32 finding(s).
Which changes need focused human review? 67 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 67 distinct pattern matches across 5 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 | __tests__/test-server.ts | 1 | // Copyright (c) 2025 Cloudflare, Inc. | COMMENT |
| LOW | __tests__/test-server.ts | 41 | }); | COMMENT |
| LOW | __tests__/test-server-workerd.js | 1 | // Copyright (c) 2025 Cloudflare, Inc. | COMMENT |
| LOW | __tests__/flow-control.test.ts | 1 | // Copyright (c) 2026 Cloudflare, Inc. | COMMENT |
| LOW | packages/docs/src/components/logo-paths.ts | 1 | // GENERATED -- do not hand-edit. Run `scripts/build-wordmark.mjs`. | COMMENT |
| LOW | packages/docs/src/pages/og/_og-card-config.ts | 21 | // elliptical accents over it, which that cannot express. | COMMENT |
| LOW | src/inject-workers-module.ts | 1 | // Copyright (c) 2025 Cloudflare, Inc. | COMMENT |
| LOW | src/types.d.ts | 1 | // Copyright (c) 2025 Cloudflare, Inc. | COMMENT |
| LOW | src/types.d.ts | 181 | // declared `Promise<RpcStub<T>>` return interchangeable with a `Promise<T>` return. | COMMENT |
| LOW | src/types.d.ts | 201 | COMMENT | |
| LOW | src/index-workers.ts | 1 | // Copyright (c) 2025 Cloudflare, Inc. | COMMENT |
| LOW | src/map.ts | 121 | // It appears someone did something like: | COMMENT |
| LOW | src/core.ts | 221 | createReadableStreamHook(stream: ReadableStream): StubHook; | COMMENT |
| LOW | src/core.ts | 261 | if (pulled instanceof Promise) { | COMMENT |
| LOW | src/core.ts | 281 | // | COMMENT |
| LOW | src/core.ts | 301 | // The returned hook is NOT considered a promise, so will not resolve to a payload (you can use | COMMENT |
| LOW | src/core.ts | 321 | // payload. | COMMENT |
| LOW | src/core.ts | 601 | } | COMMENT |
| LOW | src/core.ts | 741 | // through the system. | COMMENT |
| LOW | src/core.ts | 761 | // more efficient. | COMMENT |
| LOW | src/core.ts | 781 | // necessary at some point to make a list of all the stubs (including promise stubs) present in | COMMENT |
| LOW | src/core.ts | 801 | // The payload does NOT take ownership of any stubs in `value`, and but promises not to modify | COMMENT |
| LOW | src/core.ts | 881 | // The payload value. | COMMENT |
| LOW | src/core.ts | 901 | // All promises found in `value`. The locations of each promise are provided to allow | COMMENT |
| LOW | src/core.ts | 921 | // | COMMENT |
| LOW | src/core.ts | 1921 | // RpcTarget. In that case, if this deep copy discovers an RpcTarget embedded in the result, | COMMENT |
| LOW | src/core.ts | 2021 | Promise.reject(err); | COMMENT |
| LOW | src/streams.ts | 121 | // The caller would notice when write/close/abort fails. | COMMENT |
| LOW | src/serialize.ts | 41 | // Maximum number of magnitude digits permitted in a ["bigint", "..."] wire value, excluding a | COMMENT |
| LOW | src/serialize.ts | 221 | // Converts fully-hydrated messages into object trees that are JSON-serializable for sending over | COMMENT |
| LOW | src/serialize.ts | 441 | // trying to create a valid RequestInit object. | COMMENT |
| LOW | src/serialize.ts | 581 | // heavy or sensitive fields explicitly. | COMMENT |
| LOW | src/serialize.ts | 781 | // asynchronous, so we'll have to swap in a promise here. This potentially breaks e-order but | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/capnweb-validate/__tests__/helpers.ts | 135 | export function createVirtualTransformContext( | CODE |
| LOW | packages/capnweb-validate/src/index.ts | 71 | function uncompiledDecoratorMarker( | CODE |
| LOW | packages/capnweb-validate/src/internal/core.ts | 537 | function rejectSharedArrayBufferBacking( | CODE |
| LOW | …es/capnweb-validate/src/transform/type-introspector.ts | 283 | function collectServiceSurfaceNames( | CODE |
| LOW | …es/capnweb-validate/src/transform/type-introspector.ts | 395 | function hasSkipRpcValidationDecorator( | CODE |
| LOW | …es/capnweb-validate/src/transform/type-introspector.ts | 948 | function rejectSharedArrayBufferView( | CODE |
| LOW | …es/capnweb-validate/src/transform/type-introspector.ts | 963 | function containsSharedArrayBufferType( | CODE |
| LOW | …es/capnweb-validate/src/transform/type-introspector.ts | 986 | function isDirectSharedArrayBufferType( | CODE |
| LOW | …es/capnweb-validate/src/transform/type-introspector.ts | 1226 | function isPlatformInheritedMember(decl: ts.Declaration): boolean { | CODE |
| LOW | …es/capnweb-validate/src/transform/type-introspector.ts | 1254 | function isWorkersLifecycleBaseSymbol(sym: ts.Symbol): boolean { | CODE |
| LOW | …es/capnweb-validate/src/transform/type-introspector.ts | 1263 | export function collectPlatformMethodNames( | CODE |
| LOW | …es/capnweb-validate/src/transform/type-introspector.ts | 1326 | function extendsRpcReferenceTarget( | CODE |
| LOW | …ges/capnweb-validate/src/transform/transform-module.ts | 517 | function getDecoratorTypeArgumentNode( | CODE |
| LOW | …ges/capnweb-validate/src/transform/transform-module.ts | 539 | function warnGenericDefaultedToAny( | CODE |
| LOW | …ges/capnweb-validate/src/transform/transform-module.ts | 607 | function rejectSkippedMethodsOutsideSurface( | CODE |
| LOW | …ges/capnweb-validate/src/transform/transform-module.ts | 641 | function collectClassSkipRpcValidationMethods( | CODE |
| LOW | …ges/capnweb-validate/src/transform/transform-module.ts | 709 | function formatUnsupportedLocation(issue: UnsupportedTypeIssue): string { | CODE |
| LOW | packages/capnweb-validate/src/transform/context.ts | 88 | export function fileMatchesTransformFilters( | CODE |
| LOW | __type-tests__/rpc-promise-semantics.test.ts | 106 | async function assertResolvedPromiseShapes() { | CODE |
| LOW | __type-tests__/capnweb-validate.test.ts | 106 | async function assertValidatedStubShapes() { | CODE |
| LOW | __type-tests__/pipelining-and-depth-regressions.test.ts | 91 | async function assertPipelinedAndAwaitedShapes() { | CODE |
| LOW | __type-tests__/pipelining-and-depth-regressions.test.ts | 234 | async function assertUnknownInferenceShapes() { | CODE |
| LOW | __type-tests__/rpc-base-cases.test.ts | 184 | async function assertAwaitedConstructedPromiseShapes() { | CODE |
| LOW | __type-tests__/accepted-types-coverage.test.ts | 194 | async function assertAcceptedAwaitedShapes() { | CODE |
| LOW | src/websocket.ts | 28 | export function newWorkersWebSocketRpcResponse( | CODE |
| LOW | src/bun.ts | 39 | export function newBunWebSocketRpcHandler(createMain: () => RpcTargetBranded, options?: RpcSessionOptions) { | CODE |
| LOW | src/map.ts | 181 | function throwMapperBuilderUseError(): never { | CODE |
| LOW | src/core.ts | 659 | export function unwrapStubTakingOwnership(stub: RpcStub): StubHook { | CODE |
| LOW | src/streams.ts | 316 | function createWritableStreamFromHook(hook: StubHook): WritableStream { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | __type-tests__/generic-unstubify-regression.test.ts | 5 | // ── User's original repro ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | __type-tests__/generic-unstubify-regression.test.ts | 49 | // ── Generic nested object with branded target ─────────────────────────────────── | COMMENT |
| MEDIUM | __type-tests__/generic-unstubify-regression.test.ts | 68 | // ── Generic tuple / readonly array params ─────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | packages/docs/AGENTS.md | 42 | nimbus.json # what the scaffold and the registry installed. Committed. | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/capnweb-validate/__tests__/plugin.test.ts | 232 | writeFileSync(join(src, "out"), "placeholder"); | CODE |