Typesafe APIs Made Simple 🪄
This report summarizes scanner evidence for middleapi/orpc, a TypeScript project with 5,744 GitHub stars. SynthScan examined 178,066 lines of code across 1082 source files, recording 68 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 0.4 (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? 62 finding(s).
Are imports declared and package/API names verified? 6 finding(s).
Are wrappers, guards, and repeated structures necessary? 54 finding(s).
Which changes need focused human review? 68 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 68 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 | scripts/sync-sponsors.ts | 74 | function getTierImageSizeAndColumns(tierLevel: number, tierLevels: number[]): [columns: number, imageSize: number] { | CODE |
| LOW | packages/pino/src/handler-plugin.ts | 235 | function defaultProcedureErrorLevel(error: unknown): pino.Level { | CODE |
| LOW | packages/contract/src/schema-built-in.ts | 65 | export function getAsyncIteratorObjectSchemaDetails(schema: AnySchema | undefined): undefined | AsyncIteratorObjectSchem | CODE |
| LOW | packages/contract/src/schema-built-in.ts | 82 | export function getAsyncIteratorObjectSchemasDetails(schemas: readonly AnySchema[] | undefined): undefined | AsyncIterat | CODE |
| LOW | packages/contract/src/router-utils.ts | 85 | export function getProcedureContractOrThrow(router: RouterContract, path: readonly string[]): AnyProcedureContract { | CODE |
| LOW | packages/evlog/src/handler-plugin.ts | 288 | function defaultProcedureErrorLevel(error: unknown): LogLevel { | CODE |
| LOW | packages/hibernation/src/encode-event.ts | 36 | export async function encodeHibernationRPCEvent( | CODE |
| LOW | packages/effect/src/extensions/schema.ts | 48 | function isEffectConstraintDecoder( | CODE |
| LOW | packages/server/src/procedure-utils.ts | 12 | export function createGuardedProcedureLazy(lazy: Lazy<unknown>): Lazy<AnyProcedure> { | CODE |
| LOW | packages/server/src/router-utils.ts | 260 | export function walkProcedureContractsSync( | CODE |
| LOW | packages/server/src/router-utils.ts | 272 | function walkProcedureContractsSyncInternal( | CODE |
| LOW | packages/server/src/router-utils.ts | 306 | export async function walkProcedureContractsAsync( | CODE |
| LOW | packages/server/src/router-utils.test.ts | 225 | function expectImplementedProcedure( | CODE |
| LOW | packages/server/src/plugins/batch.test.ts | 640 | function createHeaderCapturingHandler() { | CODE |
| LOW | packages/server/src/plugins/batch.test.ts | 654 | function createBatchRequestWithHeaders(headers: Record<string, string>, subRequestHeaders: Record<string, string>) { | CODE |
| LOW | packages/mcp/src/utils.ts | 96 | export function resolveToolInputJsonSchema( | CODE |
| LOW | packages/mcp/src/utils.ts | 148 | export function resolveToolOutputJsonSchema( | CODE |
| LOW | packages/mcp/src/utils.ts | 175 | export function toPassthroughStandardSchema(jsonSchema: JsonSchemaObject): StandardSchemaWithJSON { | CODE |
| LOW | packages/shared/src/http.ts | 64 | export function parseAcceptEncodingQualities(header: string | undefined): Map<string, number> { | CODE |
| LOW | packages/shared/src/http.ts | 116 | export function isNoTransformCacheControl(cacheControl: string | undefined): boolean { | CODE |
| LOW | packages/shared/src/http.ts | 131 | export function isCompressibleContentType(contentType: string | null | undefined): boolean { | CODE |
| LOW | packages/shared/src/tracing.ts | 107 | export function setSpanAttributeIfDefined(span: TracingSpan | undefined, key: string, value: TracingAttributeValue | und | CODE |
| LOW | packages/openapi/src/openapi-generator.ts | 233 | function toVersionedOpenAPIDocument(doc: OpenAPIV3_2.OpenAPIObject, version: OpenAPIVersion): OpenAPIDocument<OpenAPIVer | CODE |
| LOW | packages/openapi/src/bracket-notation.ts | 213 | function internalPushStyleArrayToObject(array: readonly unknown[]): Record<string, unknown> { | CODE |
| LOW | packages/openapi/src/openapi-generator-operation.ts | 137 | function extractCompactRequestParts( | CODE |
| LOW | packages/openapi/src/openapi-generator-operation.ts | 174 | function extractDetailedRequestParts(schema: JsonSchema): RequestParts { | CODE |
| LOW | packages/openapi/src/openapi-generator-operation.ts | 400 | function extractDetailedResponseParts( | CODE |
| LOW | packages/openapi/src/openapi-generator-operation.ts | 581 | function toAsyncIteratorObjectContent( | CODE |
| LOW | packages/openapi/src/openapi-generator-components.ts | 198 | function areSchemasEquivalentForReuse(candidate: unknown, existing: unknown, ctx: ReuseComparisonContext): boolean { | CODE |
| LOW | packages/openapi/src/openapi-generator-components.ts | 274 | function areSchemaRefsEquivalentForReuse(candidateRef: string, existingRef: string, ctx: ReuseComparisonContext): boolea | CODE |
| LOW | packages/openapi/src/openapi-generator-components.ts | 298 | function rewriteComponentSchemaRefs(schema: JsonSchema, renameMap: ReadonlyMap<string, string>): JsonSchema { | CODE |
| LOW | …es/openapi/src/adapters/standard/openapi-link-codec.ts | 483 | function toResolvedStandardHeaders(headers: Headers | StandardHeaders): StandardHeaders { | CODE |
| LOW | …es/openapi/src/adapters/standard/openapi-link-codec.ts | 522 | function encodeURLSearchParamComponent(value: string): string { | CODE |
| LOW | packages/node/src/multipart.test.ts | 276 | async function expectMatchesStandardParser(form: FormData, chunkSizes: number[], delivery?: 'sync' | 'async'): Promi | CODE |
| LOW | …ckages/node/src/tmp-file-upload-handler-plugin.test.ts | 598 | async function expectMatchesStandardParser(form: FormData, chunkSizes: number[], delivery?: 'sync' | 'async'): Promi | CODE |
| LOW | …ckages/node/src/tmp-file-upload-handler-plugin.test.ts | 932 | async function countTmpFilesWhenRejected(limits: { memory?: number, file?: number }, body: Buffer): Promise<number> | CODE |
| LOW | …/node/src/batch-response-compression-handler-plugin.ts | 171 | function createFlushingCompressionStream( | CODE |
| LOW | packages/node/src/tmp-file-upload-handler-plugin.ts | 402 | function assertContentLengthWithin(headers: StandardHeaders, limit: number): void { | CODE |
| LOW | packages/node/src/multipart.ts | 250 | function decodeContentDispositionParameter(value: string): string { | CODE |
| LOW | packages/client/src/error.ts | 218 | function inferMalformedResponseMessage(response: StandardResponse): string { | CODE |
| LOW | packages/client/src/plugins/batch.ts | 528 | async function decodeLengthPrefixedStream(stream: ReadableStream<Uint8Array>, receive: (message: ServerPeerSendMessage) | CODE |
| LOW | packages/client/src/plugins/batch.test.ts | 31 | function extractBatchMessagesFromRequest(request: StandardRequest): any[] { | CODE |
| LOW | packages/client/src/plugins/batch.test.ts | 41 | function makeBufferedBatchResponseFromRequest(request: StandardRequest, resultFn?: (id: unknown, index: number) => unkno | CODE |
| LOW | packages/client/src/adapters/standard/rpc-link-codec.ts | 160 | function toResolvedStandardHeaders(headers: Headers | StandardHeaders): StandardHeaders { | CODE |
| LOW | packages/nest/src/implement.test.ts | 1035 | async function readFirstChunkThenDisconnect() { | CODE |
| LOW | packages/json-schema/src/ref-utils.ts | 149 | export function resolveJsonSchemaRootLocalRef( | CODE |
| LOW | packages/json-schema/src/ref-utils.ts | 191 | function findRecursiveJsonSchemaDefName(defs: Exclude<JsonSchema, boolean>['$defs'] | undefined): string { | CODE |
| LOW | packages/json-schema/src/composition-utils.ts | 97 | export function combineJsonSchemasWithComposition( | CODE |
| LOW | packages/json-schema/src/composition-utils.ts | 130 | export function combineJsonObjectSchemaEntries(entries: JsonObjectSchemaEntry[], additionalProperties?: JsonSchema): Jso | CODE |
| LOW | packages/json-schema/src/composition-utils.ts | 170 | export function extractJsonObjectSchemaEntries(schema: JsonSchema): JsonObjectSchemaEntry[] | undefined { | CODE |
| LOW | packages/json-schema/src/composition-utils.ts | 190 | export function extractJsonObjectSchemaAdditionalProperties(schema: JsonSchema): JsonSchema | undefined { | CODE |
| LOW | packages/json-schema/src/composition-utils.ts | 216 | function isJsonObjectLikeSchemaInternal( | CODE |
| LOW | packages/json-schema/src/composition-utils.ts | 260 | function extractJsonObjectSchemaEntriesInternal( | CODE |
| LOW | packages/json-schema/src/composition-utils.ts | 396 | function flattenJsonUnionSchemaInternal( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/publisher/src/adapters/redis.test.ts | 387 | person: new Person('John Doe', new Date('2023-01-01')), | CODE |
| LOW | packages/publisher/src/adapters/redis.test.ts | 402 | expect(received.person).toEqual(new Person('John Doe', new Date('2023-01-01'))) | CODE |
| LOW | packages/publisher/src/adapters/upstash.test.ts | 360 | person: new Person('John Doe', new Date('2023-01-01')), | CODE |
| LOW | packages/publisher/src/adapters/upstash.test.ts | 373 | expect(received.person).toEqual(new Person('John Doe', new Date('2023-01-01'))) | CODE |
| LOW | packages/bun/src/redis-publisher.test.ts | 337 | person: new Person('John Doe', new Date('2023-01-01')), | CODE |
| LOW | packages/bun/src/redis-publisher.test.ts | 352 | expect(received.person).toEqual(new Person('John Doe', new Date('2023-01-01'))) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …un/tests/rpc/__shared__/built-in-support-data-types.ts | 121 | // expect(file.name).toBe('file.json') | COMMENT |
| LOW | .github/workflows/pullfrog.yml | 41 | DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }} | COMMENT |
| LOW | apps/content/search/page-preview.ts | 1 | // The search dialog's preview pane renders `hit.content` — the index's plain | COMMENT |
| LOW | apps/content/components/blume/twoslash-popups.ts | 1 | // Twoslash popups need three behaviors CSS :hover can't provide alone: | COMMENT |
| LOW | apps/content/components/blume/twoslash-popups.ts | 21 | // alone closes it the instant the pointer enters that gap. The popup | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .agents/skills/blume/SKILL.md | 24 | npx blume init # scaffold docs/index.mdx, blume.config.ts, and package.json scripts, then install | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | playgrounds/next/src/app/api/[[...rest]]/route.ts | 51 | async function handleRequest(request: Request) { | CODE |
| LOW | playgrounds/next/src/app/rpc/[[...rest]]/route.ts | 14 | async function handleRequest(request: Request) { | CODE |