Affordable, Multifunctional, Nano RISC-V IP-KVM
This report summarizes scanner evidence for sipeed/NanoKVM, a TypeScript project with 6,581 GitHub stars. SynthScan examined 123,956 lines of code across 550 source files, recording 121 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 1.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? 101 finding(s).
Are imports declared and package/API names verified? 4 finding(s).
Are wrappers, guards, and repeated structures necessary? 60 finding(s).
Which changes need focused human review? 121 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 121 distinct pattern matches across 11 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 | tools/nanokvm_update_edid/nanokvm_update_edid.c | 1 | #include <stdio.h> | COMMENT |
| LOW | tools/nanokvm_update_edid/nanokvm_update_edid.h | 1 | #ifndef NANOKVM_UPDATE_EDID_H | COMMENT |
| LOW | web/src/pages/desktop/menu/settings/account/users.tsx | 61 | const [users, setUsers] = useState<User[]>([]); | COMMENT |
| LOW | web/src/pages/storage/index.tsx | 161 | COMMENT | |
| LOW | server/include/kvm_vision.h | 1 | COMMENT | |
| LOW | server/service/storage/media.go | 41 | const partitionDevice = "/dev/mmcblk0p3" | COMMENT |
| LOW | server/service/storage/media.go | 641 | // openMediumLocked is openMedium for a caller that already holds | COMMENT |
| LOW | server/service/storage/cache.go | 21 | // metadata this side cached: a file the target grew keeps the size it had when | COMMENT |
| LOW | server/service/storage/job.go | 21 | // jobProgressInterval matches the ticker the downloader reports with, so the | COMMENT |
| LOW | server/service/download/service.go | 81 | // that a restart interrupted. They are hidden and can be hundreds of | COMMENT |
| LOW | .devcontainer/post-create.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | support/sg2002/kvm_system/main/include/config.h | 1 | #ifndef CONFIG_H_ | COMMENT |
| LOW | support/sg2002/kvm_system/main/include/config.h | 21 | #include "qr.h" | COMMENT |
| LOW | support/sg2002/kvm_system/main/lib/hdmi/hdmi.h | 1 | #ifndef HDMI_H_ | COMMENT |
| LOW | …ort/sg2002/kvm_system/main/lib/oled_ctrl/oled_ctrl.cpp | 541 | // OLED_ShowString_AlignRight(AlignRightEND, 4, "--", 8); | COMMENT |
| LOW | …pport/sg2002/kvm_system/main/lib/oled_ctrl/oled_ctrl.h | 1 | #ifndef OLED_CTRL_H_ | COMMENT |
| LOW | …pport/sg2002/kvm_system/main/lib/oled_ctrl/oled_ctrl.h | 21 | COMMENT | |
| LOW | support/sg2002/kvm_system/main/lib/libqr/qrcnv.c | 161 | #define qrWriteEOR_ASCII() { *rptr++ = '\n'; } | COMMENT |
| LOW | support/sg2002/kvm_system/main/lib/libqr/qr.h | 21 | #include <stdio.h> | COMMENT |
| LOW | support/sg2002/kvm_system/main/lib/libqr/qr.h | 161 | #define QR_DWD_MAX 2956 /* データコード語の最大長(型番40/レベルL) */ | COMMENT |
| LOW | support/sg2002/kvm_system/main/lib/libqr/qrcmd.h | 41 | #define QRCMD_EXTRA_PARAM_D int *order, int *extra, | COMMENT |
| LOW | support/sg2002/kvm_system/main/lib/libqr/qrcmd.h | 61 | #define QR_SA_SRC_MAX 112233 | COMMENT |
| LOW | support/sg2002/kvm_system/main/lib/libqr/qrcmd.h | 81 | #define qrCmdDestroy qrDestroy | COMMENT |
| LOW | support/sg2002/kvm_system/main/lib/libqr/qrcnv.h | 21 | COMMENT | |
| LOW | support/sg2002/kvm_system/main/lib/libqr/qrcmd.c | 21 | #define errx(code, ...) { \ | COMMENT |
| LOW | …sg2002/kvm_system/main/lib/system_state/system_state.h | 1 | #ifndef SYSTEM_STATE_H_ | COMMENT |
| LOW | support/sg2002/additional/vision/CMakeLists.txt | 41 | ###### Add link search path for requirements/libs ###### | COMMENT |
| LOW | support/sg2002/additional/vision/CMakeLists.txt | 61 | #### on this component | COMMENT |
| LOW | …rt/sg2002/additional/vision/include/maix_image_obj.hpp | 421 | // { | COMMENT |
| LOW | …pport/sg2002/additional/vision/include/maix_camera.hpp | 1 | /** | COMMENT |
| LOW | …pport/sg2002/additional/vision/include/maix_vision.hpp | 1 | #include "maix_image.hpp" | COMMENT |
| LOW | support/sg2002/additional/vision/src/maix_image.cpp | 1 | /** | COMMENT |
| LOW | support/sg2002/additional/kvm_mmf/src/kvm_mmf.cpp | 1 | #include <stdint.h> | COMMENT |
| LOW | support/sg2002/additional/kvm_mmf/src/kvm_mmf.cpp | 21 | #include "cvi_isp.h" | COMMENT |
| LOW | support/sg2002/additional/kvm/include/kvm_vision.h | 1 | COMMENT | |
| LOW | support/sg2002/additional/kvm/include/kvm_vision.h | 21 | #include <pthread.h> | COMMENT |
| LOW | support/sg2002/additional/kvm/src/kvm_vision.cpp | 21 | #define VENC_MJPEG 0 | COMMENT |
| LOW | support/sg2002/additional/kvm/src/kvm_vision.cpp | 41 | COMMENT | |
| LOW | …hgo-middleware/v2/sample/common/sample_common_sensor.c | 1 | /* | COMMENT |
| LOW | support/sg2002/kvm_vision_test/main/CMakeLists.txt | 1 | ############### Add include ################### | COMMENT |
| LOW | support/sg2002/kvm_vision_test/main/CMakeLists.txt | 21 | # SET_PROPERTY(SOURCE ${ADD_ASM_SRCS} PROPERTY LANGUAGE C) # set .S ASM file as C language | COMMENT |
| LOW | support/sg2002/kvm_vision_test/main/CMakeLists.txt | 41 | #### Just for this component, won't affect other | COMMENT |
| LOW | support/sg2002/kvm_vision_test/main/CMakeLists.txt | 61 | # 'sites': [], # download site, user can manually download file and put it into dl_path | COMMENT |
| LOW | scripts/build-in-container.sh | 1 | #!/bin/bash | COMMENT |
| LOW | scripts/package.sh | 1 | #!/bin/bash | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/logo_generator/logo_generator.py | 517 | def on_pixel_grid_pixel_click(self, event: PixelGrid.PixelClick): | CODE |
| LOW | tools/logo_generator/logo_generator.py | 573 | def action_threshold_up_small(self): | CODE |
| LOW | tools/logo_generator/logo_generator.py | 578 | def action_threshold_down_small(self): | CODE |
| LOW | web/src/lib/localstorage.ts | 234 | export function getKeyboardLedStatusVisible(): boolean { | CODE |
| LOW | web/src/lib/localstorage.ts | 239 | export function setKeyboardLedStatusVisible(visible: boolean) { | CODE |
| LOW | web/src/lib/picoclaw-gateway.ts | 496 | function normalizeLiteralEmptyText(value: string) { | CODE |
| LOW | web/src/lib/picoclaw-storage.ts | 87 | export function getPicoclawRuntimeInstallSnapshot(): PicoclawRuntimeInstallSnapshot | null { | CODE |
| LOW | web/src/lib/picoclaw-storage.ts | 113 | export function setPicoclawRuntimeInstallSnapshot(snapshot: PicoclawRuntimeInstallSnapshot) { | CODE |
| LOW | web/src/lib/picoclaw-storage.ts | 121 | export function clearPicoclawRuntimeInstallSnapshot() { | CODE |
| LOW | web/src/api/vm.ts | 73 | export function setOriginalResolutionConfig( | CODE |
| LOW | web/src/api/vm.ts | 86 | export function setSelectedOriginalResolution(selectedResolution: string) { | CODE |
| LOW | web/src/pages/terminal/validater.ts | 49 | export function validatePicocomParameters(params: PicocomParameters) { | CODE |
| LOW | web/src/pages/desktop/keyboard-led-status/model.ts | 35 | export function parseKeyboardLedStatusMessage(message: { | CODE |
| LOW | web/src/pages/desktop/keyboard-led-status/model.ts | 55 | export function shouldAcceptKeyboardLedStatus( | CODE |
| LOW | web/src/pages/desktop/mouse/relative.tsx | 401 | function releasePressedTouchButton() { | CODE |
| LOW | web/src/pages/desktop/screen/geometry.ts | 211 | export function getConfiguredFrameContent( | CODE |
| LOW | web/src/pages/desktop/screen/geometry.ts | 253 | export function getCenteredInputRegionByAspectRatio( | CODE |
| LOW | web/src/pages/desktop/screen/direct.worker.ts | 350 | function releaseDecodeBackpressure(source: VideoDecoder) { | CODE |
| LOW | web/src/pages/desktop/menu/keyboard/paste.tsx | 68 | function translateRuToEnWithPunctuation(value: string): string { | CODE |
| LOW | web/src/pages/desktop/picoclaw/message-utils.ts | 65 | export function retainLatestObservationScreenshot( | CODE |
| LOW | web/src/pages/desktop/picoclaw/runtime-view.ts | 33 | export function isPicoclawRuntimeInstalling( | CODE |
| LOW | web/src/pages/desktop/picoclaw/runtime-view.ts | 79 | export function getPicoclawSidebarStatusColor( | CODE |
| LOW | web/src/pages/desktop/picoclaw/runtime-view.ts | 116 | export function getPicoclawSidebarConnectionLabel( | CODE |
| LOW | web/src/pages/desktop/picoclaw/runtime-view.ts | 189 | export function derivePicoclawControlViewModel({ | CODE |
| LOW | web/src/pages/desktop/picoclaw/sidebar-effects.ts | 152 | function markRuntimeTransportUnavailable(reason: string) { | CODE |
| LOW | web/src/pages/desktop/picoclaw/sidebar-effects.ts | 370 | export function usePicoclawSidebarLifecycle({ | CODE |
| LOW | web/src/pages/desktop/picoclaw/sidebar-effects.ts | 473 | export function usePicoclawInstallRefresh( | CODE |
| LOW | web/src/pages/desktop/picoclaw/sidebar-effects.ts | 494 | export function usePicoclawGatewayAutoConnect({ | CODE |
| LOW | web/src/pages/desktop/picoclaw/sidebar-effects.ts | 543 | export function usePicoclawInstallSnapshotSync({ | CODE |
| LOW | web/src/pages/desktop/picoclaw/keyboard-lock.ts | 4 | export function releasePicoclawInputFocus() { | CODE |
| LOW | web/src/pages/desktop/picoclaw/message.tsx | 63 | function normalizeLiteralEmptyText(value: string): string { | CODE |
| LOW | web/src/pages/desktop/picoclaw/sidebar-actions.ts | 90 | export function createPicoclawSidebarActions(options: PicoclawSidebarActionOptions) { | CODE |
| LOW | web/src/pages/desktop/picoclaw/sidebar-actions.ts | 158 | function markRuntimeStatusUnavailable(source: string) { | CODE |
| LOW | web/src/pages/desktop/picoclaw/sidebar-actions.ts | 314 | function runtimeStatusFromResponse(response: unknown) { | CODE |
| LOW | web/src/pages/desktop/picoclaw/sidebar-actions.ts | 390 | async function applyRuntimeToggleSuccess(status: PicoclawRuntimeStatus, shouldStop: boolean) { | CODE |
| LOW | web/src/pages/desktop/picoclaw/sidebar-actions.ts | 421 | async function confirmRuntimeToggleResult(shouldStop: boolean) { | CODE |
| LOW | web/src/pages/desktop/picoclaw/sidebar-actions.ts | 442 | function runtimeToggleFailureMessage( | CODE |
| LOW | …/src/pages/desktop/picoclaw/sidebar-session-actions.ts | 60 | export function createPicoclawSidebarSessionActions(options: PicoclawSidebarSessionActionOptions) { | CODE |
| LOW | …/src/pages/desktop/picoclaw/sidebar-session-actions.ts | 232 | async function handleSelectHistorySession(sessionId: string) { | CODE |
| LOW | …/src/pages/desktop/picoclaw/sidebar-session-actions.ts | 320 | async function handleDeleteHistorySession(sessionId: string) { | CODE |
| LOW | web/src/pages/desktop/capture-status/model.ts | 12 | export function parseCaptureStatusMessage(message: { data: unknown }): CaptureStatus | null { | CODE |
| LOW | web/src/pages/desktop/capture-status/model.ts | 42 | export function getCaptureStatusMessageKey(result: number) { | CODE |
| LOW | web/src/pages/desktop/capture-status/model.ts | 63 | export function shouldAcceptCaptureStatus(current: CaptureStatus | null, next: CaptureStatus) { | CODE |
| LOW | web/src/pages/desktop/capture-status/model.ts | 71 | function getCaptureStatusTimestamp(status: CaptureStatus) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tools/logo_generator/logo_generator.py | 280 | # Row 0: ┌────────────────────────────────┐ (top border) | COMMENT |
| MEDIUM⚡ | tools/logo_generator/logo_generator.py | 282 | # Row 17: └────────────────────────────────┘ (bottom border) | COMMENT |
| MEDIUM⚡ | server/build.sh | 25 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | server/build.sh | 27 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | server/build.sh | 36 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | server/build.sh | 38 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | server/build.sh | 57 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | server/build.sh | 59 | # ------------------------------------------------------------------------------ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/logo_generator/logo_generator.py | 113 | except Exception as e: | CODE |
| MEDIUM | tools/logo_generator/logo_generator.py | 114 | print(f"Error: Failed to open image - {e}") | CODE |
| MEDIUM⚡ | tools/logo_generator/logo_generator.py | 207 | print("Error: No image source provided") | CODE |
| LOW⚡ | tools/logo_generator/logo_generator.py | 210 | except Exception as e: | CODE |
| MEDIUM⚡ | tools/logo_generator/logo_generator.py | 211 | print(f"Error: Failed to create ICO - {e}") | CODE |
| MEDIUM | tools/logo_generator/logo_generator.py | 597 | print(f"Error: File not found - {image_path}") | CODE |
| LOW | kvmapp/system/update-nanokvm.py | 88 | except Exception as e: | CODE |
| MEDIUM | kvmapp/system/update-nanokvm.py | 73 | def main() -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | server/utils/mediapath.go | 122 | // A missing component is kept as requested so callers can still create a new | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | server/build.sh | 26 | # Step 1: Check Prerequisites | COMMENT |
| LOW⚡ | server/build.sh | 37 | # Step 2: Build the Binary | COMMENT |
| LOW⚡ | server/build.sh | 58 | # Step 3: Patch RPATH | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | server/build.sh | 26 | # Step 1: Check Prerequisites | COMMENT |
| LOW⚡ | server/build.sh | 37 | # Step 2: Build the Binary | COMMENT |
| LOW⚡ | server/build.sh | 58 | # Step 3: Patch RPATH | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tools/logo_generator/logo_generator.py | 285 | # Check if within pixel grid area (y from 1 to 16, since row 0 is top border) | COMMENT |
| LOW⚡ | tools/logo_generator/logo_generator.py | 288 | # Check if x is within valid range (1 to 32, since there are borders on both sides) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/logo_generator/logo_generator.py | 6 | CODE | |
| LOW | tools/logo_generator/logo_generator.py | 7 | CODE | |
| LOW | tools/logo_generator/logo_generator.py | 7 | CODE | |
| LOW | tools/logo_generator/logo_generator.py | 7 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/logo_generator/logo_generator.py | 136 | CODE | |
| LOW | tools/logo_generator/logo_generator.py | 500 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | web/public/mockServiceWorker.js | 124 | async function handleRequest(event, requestId, requestInterceptedAt) { | CODE |