⚔ Multiplayer Framework for Node.js
This report summarizes scanner evidence for colyseus/colyseus, a TypeScript project with 7,499 GitHub stars. SynthScan examined 125,188 lines of code across 654 source files, recording 66 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 0.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? 52 finding(s).
Are imports declared and package/API names verified? 6 finding(s).
Are wrappers, guards, and repeated structures necessary? 23 finding(s).
Which changes need focused human review? 66 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 66 distinct pattern matches across 7 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/database/test/backends.ts | 61 | // name: 'pglite', | COMMENT |
| LOW | packages/database/src/GameDatabase.ts | 501 | // The segments service was created at construction time so users could | COMMENT |
| LOW | packages/database/src/GameDatabase.ts | 561 | // ------------------------------------------------------------------------- | COMMENT |
| LOW | packages/drivers/drizzle-driver/src/PostgresDriver.ts | 201 | // 1. Client A reserves seat, sees 1 reserved seat, locked should stay false | COMMENT |
| LOW | packages/core/src/Room.ts | 1401 | // it goes out. No-op unless the state declares such a field, and skipped | COMMENT |
| LOW | packages/core/src/MatchMaker.ts | 1081 | // bots/tests/cron) skip auth — there's no transport, no headers, no | COMMENT |
| LOW | packages/auth/src/index.ts | 61 | // Behavior matrix: | COMMENT |
| LOW | packages/admin/src-backend/index.ts | 501 | // `rooms` resource for RBAC — guard() against `list` for read, | COMMENT |
| LOW | packages/admin/src-backend/auth/guard.ts | 81 | COMMENT | |
| LOW | packages/admin/src-backend/catalog/builder.ts | 121 | ...(linkTo ? { linkTo } : {}), | COMMENT |
| LOW | packages/admin/src/pages/show.tsx | 41 | // Default tab differs by layout: | COMMENT |
| LOW | packages/admin/src/pages/internals/format-cell.tsx | 121 | ); | COMMENT |
| LOW | packages/admin/src/pages/rooms/show.tsx | 81 | // otherwise the 2s tick can replace the field's value out from | COMMENT |
| LOW | packages/admin/src/pages/rooms/show.tsx | 541 | // copies into a log query. Tiny drift (the | COMMENT |
| LOW | packages/admin/src/pages/rooms/show.tsx | 801 | // 'all' filters on either key or value matches — most natural | COMMENT |
| LOW | packages/sdk/test/reconciler-roundtrip.test.ts | 1 | import './util'; | COMMENT |
| LOW | packages/sdk/test/tree-shaking.test.ts | 1 | import { describe, test } from "vitest"; | COMMENT |
| LOW | packages/sdk/test/predict-reckon-elapsed.test.ts | 1 | import './util'; | COMMENT |
| LOW | packages/sdk/test/predict-lagcomp-metadata.test.ts | 1 | import './util'; | COMMENT |
| LOW | packages/sdk/src/Room.ts | 621 | if (this.leaveCode !== undefined) { return; } | COMMENT |
| LOW | packages/sdk/src/core/schema-reflect.ts | 1 | // ----------------------------------------------------------------------------- | COMMENT |
| LOW | packages/sdk/src/input/InputHandle.ts | 301 | // Cached framed-packet view into `_scratch`; re-made when the packet size | COMMENT |
| LOW | packages/sdk/src/input/InputHandle.ts | 321 | private static readonly BUFFER_HEADROOM = 1.5; | COMMENT |
| LOW | packages/sdk/src/input/InputHandle.ts | 341 | private _lastStamp = 0; | COMMENT |
| LOW | packages/sdk/src/input/InputHandle.ts | 361 | private _stampRender = false; | COMMENT |
| LOW | packages/sdk/src/predict/Predictor.ts | 241 | // homogeneous attachAll groups collapse to a single packed record. Mutating | COMMENT |
| LOW | packages/sdk/src/predict/Predictor.ts | 261 | // | COMMENT |
| LOW | packages/sdk/src/predict/Predictor.ts | 281 | const SLOT_RING_HEAD = 6; | COMMENT |
| LOW | packages/sdk/src/predict/Predictor.ts | 841 | onRemove: (...args: any[]) => () => void; | COMMENT |
| LOW | packages/sdk/src/predict/Predictor.ts | 1021 | // Default ON: reckon draws on renderNow() when the clock offers it | COMMENT |
| LOW | packages/sdk/src/predict/Predictor.ts | 1781 | // Default forward horizon = SNAPSHOT AGE, exactly. | COMMENT |
| LOW | packages/sdk/src/predict/Predictor.ts | 1801 | const elapsedMs = opts.elapsedMs ?? (present ?? (() => performance.now())); | COMMENT |
| LOW | packages/sdk/src/predict/Predictor.ts | 1821 | // instance of the same type; each frame we refill its `$values` | COMMENT |
| LOW | bundles/colyseus/test/RoomReconnection.test.ts | 601 | COMMENT | |
| LOW | bundles/colyseus/test/RoomReconnection.test.ts | 641 | assert.ok(!matchMaker.getLocalRoomById(newConn.roomId)); | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | bundles/colyseus/src/vite.ts | 42 | // ─── Virtual module IDs ─────────────────────────────────────────────── | COMMENT |
| MEDIUM | bundles/colyseus/src/vite.ts | 58 | // ─── Options ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | bundles/colyseus/src/vite.ts | 88 | // ─── Internal types ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | bundles/colyseus/src/vite.ts | 99 | // ─── Helpers ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | bundles/colyseus/src/vite.ts | 112 | // ─── Virtual module generators ──────────────────────────────────────── | COMMENT |
| MEDIUM | bundles/colyseus/src/vite.ts | 175 | // ─── Exported helpers (for testing) ─────────────────────────────────── | COMMENT |
| MEDIUM | bundles/colyseus/src/vite.ts | 205 | // ─── Module runner ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | bundles/colyseus/src/vite.ts | 250 | // ─── Plugin ─────────────────────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/database/src/utils.ts | 197 | export function generateAlterAddColumnSQL( | CODE |
| LOW | packages/transport/h3-transport/src/utils/mkcert.ts | 349 | export async function generateWebTransportCertificate(attrs: any, options: { days?: number, extensions?: any[] }) { | CODE |
| LOW | packages/core/src/RoomPlugin.ts | 429 | export function installPluginHookWrappers( | CODE |
| LOW | packages/core/src/MatchMaker.ts | 1280 | async function concurrentJoinOrCreateRoomLock( | CODE |
| LOW | packages/core/src/Server.ts | 653 | export function unregisterRoomDefinitions(roomNames: Iterable<string>) { | CODE |
| LOW | packages/core/src/router/node.ts | 93 | export function createNodeMatchmakingMiddleware() { | CODE |
| LOW | packages/auth/src/endpoints.ts | 237 | export function resetPasswordPostEndpoint(prefix: string = auth.prefix) { | CODE |
| LOW | packages/admin/src-backend/index.ts | 238 | function assertJwtSecretConfigured(): void { | CODE |
| LOW | packages/admin/src-backend/index.ts | 286 | function applyBuiltInResourceDefaults( | CODE |
| LOW | packages/sdk/src/debug.ts | 46 | function ensureGlobalUpdateInterval() { | CODE |
| LOW | packages/sdk/src/debug/state-inspector.ts | 64 | function saveStateInspectorPreferences() { | CODE |
| LOW | packages/room-plugins/geoip/src/GeoIPPlugin.ts | 151 | function scheduleRefreshIfApplicable(key: string, opts: GeoIPPluginOptions): void { | CODE |
| LOW | packages/traefik/src/index.ts | 149 | async function getTraefikConfigFromRedis(presence: RedisPresence, options: TraefikOptions): Promise<object> { | CODE |
| LOW | packages/traefik/src/index.ts | 300 | async function isKeyspaceNotificationsEnabled(presence: RedisPresence): Promise<boolean> { | CODE |
| LOW | bundles/colyseus/src/vite.ts | 118 | export function createColyseusViteServerEntry(options: ColyseusViteOptions) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | packages/playground/src/components/SDKCodeExamples.tsx | 240 | print("Error:", err) | CODE |
| HIGH | packages/playground/src/components/SDKCodeExamples.tsx | 242 | print(response) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/core/src/Room.ts | 818 | * username: "John Doe", | COMMENT |
| LOW | packages/example/test/admin-e2e.test.ts | 33 | const BOOTSTRAP_EMAIL = 'admin@example.com'; | CODE |
| LOW | packages/example/src/app.config.ts | 58 | description: "List all things lorem ipsum dolor sit amet lorem ipsum dolor sit amet lorem ipsum dolor sit amet lor | CODE |
| LOW | packages/example/src/app.config.ts | 58 | description: "List all things lorem ipsum dolor sit amet lorem ipsum dolor sit amet lorem ipsum dolor sit amet lor | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | packages/transport/h3-transport/src/H3Transport.ts | 114 | // Dev: prefer a browser-TRUSTED cert via mkcert (seamless — no flags, no | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/workflows/publish_and_release.yml | 140 | # Check if build-release-assets script exists | COMMENT |