HomeKit support for the impatient.
This report summarizes scanner evidence for homebridge/homebridge, a TypeScript project with 25,536 GitHub stars. SynthScan examined 63,236 lines of code across 327 source files, recording 51 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? 46 finding(s).
Are imports declared and package/API names verified? 5 finding(s).
Are wrappers, guards, and repeated structures necessary? 26 finding(s).
Which changes need focused human review? 51 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 51 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 |
|---|---|---|---|---|
| CRITICAL | src/api.ts | 272 | * api.matter.deviceRequirements.Thermostat.ThermostatServer.with('Heating', 'Cooling'), | COMMENT |
| CRITICAL | src/matter/types.ts | 757 | * api.matter.deviceRequirements.Thermostat.ThermostatServer.with('Heating', 'Cooling'), | COMMENT |
| CRITICAL | src/matter/server/CommissioningManager.ts | 333 | deps.serverNode.events.commissioning.fabricsChanged.on(this.onFabricsChanged) | CODE |
| CRITICAL | src/matter/server/CommissioningManager.ts | 345 | deps.serverNode.events.commissioning.commissioned.on(this.onCommissioned) | CODE |
| CRITICAL | src/matter/server/CommissioningManager.ts | 356 | deps.serverNode.events.commissioning.decommissioned.on(this.onDecommissioned) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/bridgeService.ts | 157 | export function shouldAddIdentifyingMaterial(hap: BridgeHapConfig | boolean | undefined): boolean { | CODE |
| LOW | src/matter/ExternalMatterAccessoryPublisher.ts | 63 | export async function publishExternalMatterAccessory( | CODE |
| LOW | src/matter/logFormatter.ts | 37 | export function createHomebridgeLogFormatter(): (diagnostic: unknown) => string { | CODE |
| LOW | src/matter/logFormatter.ts | 119 | function formatHomebridgeTimestamp(date: Date): string { | CODE |
| LOW | src/matter/serverHelpers.ts | 71 | export function validateAccessoryRequiredFields(accessory: MatterAccessory): void { | CODE |
| LOW | src/matter/serverHelpers.ts | 248 | export function extractColorControlFeatures(supportedFeatures: Record<string, boolean>): string[] { | CODE |
| LOW | src/matter/serverHelpers.ts | 267 | export function extractThermostatFeatures(supportedFeatures: Record<string, boolean>): string[] { | CODE |
| LOW | src/matter/serverHelpers.ts | 300 | export function extractLevelControlFeatures( | CODE |
| LOW | src/matter/serverHelpers.ts | 322 | export function determineColorControlFeaturesFromHandlers( | CODE |
| LOW | src/matter/serverHelpers.ts | 358 | export function determineColorControlFeaturesFromClusters( | CODE |
| LOW | src/matter/serverHelpers.ts | 390 | export function detectWindowCoveringFeatures(accessory: MatterAccessory): string[] { | CODE |
| LOW | src/matter/serverHelpers.ts | 438 | export function detectSmokeCoAlarmFeatures(accessory: MatterAccessory): string[] { | CODE |
| LOW | src/matter/serverHelpers.ts | 461 | export function applySmokeCoAlarmFeatures( | CODE |
| LOW | src/matter/serverHelpers.ts | 480 | export function applyLevelControlLightingFloor( | CODE |
| LOW | src/matter/serverHelpers.ts | 567 | export function checkThermostatSetpointLimits( | CODE |
| LOW | src/matter/serverHelpers.ts | 643 | export function detectServiceAreaFeatures( | CODE |
| LOW | src/matter/serverHelpers.ts | 666 | export function applyWindowCoveringFeatures( | CODE |
| LOW | src/matter/serverHelpers.ts | 791 | export function detectElectricalMeasurementClusters(accessory: ElectricalMeasurementHost): ElectricalMeasurementDetectio | CODE |
| LOW | src/matter/serverHelpers.ts | 843 | export function applyElectricalMeasurementDefaults( | CODE |
| LOW | src/matter/serverHelpers.ts | 896 | export function applyElectricalMeasurementClusters( | CODE |
| LOW | src/matter/config.ts | 77 | export function validateMatterExternalsOnly( | CODE |
| LOW | src/matter/config.ts | 97 | export function stripMatterExternalsOnlyForAccessory( | CODE |
| LOW | src/matter/server/AccessoryManager.spec.ts | 217 | function createChainableDeviceType(props: Record<string, unknown>): any { | CODE |
| LOW | src/matter/server/ServerConfig.ts | 35 | export function validateAndSanitizeConfig(config: MatterServerConfig): MatterServerConfig { | CODE |
| LOW | src/matter/server/ServerConfig.ts | 35 | export function validateAndSanitizeConfig(config: MatterServerConfig): MatterServerConfig { | CODE |
| LOW | src/matter/server/ServerLifecycle.spec.ts | 998 | function depsThatFailAfterNodeCreation(close: () => Promise<void>): ServerLifecycleDeps { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/childBridgeService.ts | 241 | // Wall-clock time (ms) the current child last reported ONLINE, or undefined | COMMENT |
| LOW | src/childBridgeFork.ts | 121 | // load api | COMMENT |
| LOW | src/matter/ExternalMatterAccessoryPublisher.ts | 141 | } else if ((error as { portMayStillBeBound?: boolean } | undefined)?.portMayStillBeBound) { | COMMENT |
| LOW | src/matter/logFormatter.ts | 61 | // apply a single Homebridge level colour to the whole line below. | COMMENT |
| LOW | src/matter/types.ts | 641 | SmokeSensor: devices.SmokeCoAlarmDevice, | COMMENT |
| LOW | src/matter/types.ts | 661 | COMMENT | |
| LOW | src/matter/types.ts | 681 | // add Speed, Ventilation, Pedestrian or the rest. | COMMENT |
| LOW | src/matter/types.ts | 701 | // Closure applies - otherwise every play/pause/key press would fail. | COMMENT |
| LOW | src/matter/types.ts | 721 | // MomentarySwitchLongPress enables long-press detection, and | COMMENT |
| LOW | src/matter/server/ServerLifecycle.ts | 341 | name: displayName, | COMMENT |
| LOW | src/matter/server/ServerLifecycle.ts | 641 | // A debounced cache save may still be armed from accessory | COMMENT |
| LOW | src/matter/server/AccessoryManager.ts | 281 | // ⚠️ A battery is only visible to a controller once the endpoint also | COMMENT |
| LOW | src/matter/server/AccessoryManager.ts | 601 | // LevelControl in `optional`, not `SupportedBehaviors`), attaching our | COMMENT |
| LOW | src/matter/server/AccessoryManager.ts | 641 | private async buildCustomBehaviors( | COMMENT |
| LOW | src/matter/server/AccessoryManager.ts | 661 | // rejected for the life of the process. Static facts are the declaration | COMMENT |
| LOW | src/matter/server/AccessoryManager.ts | 681 | // | COMMENT |
| LOW | src/matter/behaviors/WindowCoveringBehavior.spec.ts | 21 | // Note: WindowCoveringBehavior has complex position control with helper methods. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/matter/types.ts | 866 | * This type is used when we need to check if an endpoint has a state | COMMENT |
| LOW | src/matter/types.ts | 917 | * Used when we need to check if a device type supports .with() | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/interfaces/AccessoryPlugin.html | 42 | method <a href="#getservices" class="tsd-kind-property">getServices</a> must be defined in any way and should just retur | CODE |