Repository Analysis

Kong/insomnia

The open-source, cross-platform API client for GraphQL, REST, WebSockets, SSE and gRPC. With Cloud, Local and Git storage.

3.9 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of Kong/insomnia, a TypeScript project with 39,958 GitHub stars. SynthScan v2.0 examined 300,284 lines of code across 1789 source files, recording 368 pattern matches distributed across 12 syntactic categories. The overall adjusted score of 3.9 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

3.9
Adjusted Score
3.9
Raw Score
100%
Time Factor
2026-08-27
Last Push
40.0K
Stars
TypeScript
Language
300.3K
Lines of Code
1.8K
Files
368
Pattern Hits
2026-08-29
Scan Date
0.05
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 81HIGH 1MEDIUM 43LOW 243

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 368 distinct pattern matches across 12 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hallucination Indicators81 hits · 770 pts
SeverityFileLineSnippetContext
CRITICAL…s/fix-scripting-feature/references/objects/response.md40- `pm.response.to.have.status(200)`, `pm.response.to.have.header('Content-Type')`, `pm.response.to.have.jsonBody('key')`CODE
CRITICALpackages/insomnia/src/main/network/curl.test.ts16 const call = electron.ipcMain.handle.mock.calls.find(([channel]) => channel === 'curl.open');CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json388 "displayValue": "insomnia.request.url.urlObject.searchParams.append()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json389 "name": "insomnia.request.url.urlObject.searchParams.append()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json390 "value": "insomnia.request.url.urlObject.searchParams.append()"CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json393 "displayValue": "insomnia.request.url.urlObject.searchParams.delete()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json394 "name": "insomnia.request.url.urlObject.searchParams.delete()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json395 "value": "insomnia.request.url.urlObject.searchParams.delete()"CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json398 "displayValue": "insomnia.request.url.urlObject.searchParams.get()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json399 "name": "insomnia.request.url.urlObject.searchParams.get()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json400 "value": "insomnia.request.url.urlObject.searchParams.get()"CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json403 "displayValue": "insomnia.request.url.urlObject.searchParams.getAll()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json404 "name": "insomnia.request.url.urlObject.searchParams.getAll()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json405 "value": "insomnia.request.url.urlObject.searchParams.getAll()"CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json408 "displayValue": "insomnia.request.url.urlObject.searchParams.has()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json409 "name": "insomnia.request.url.urlObject.searchParams.has()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json410 "value": "insomnia.request.url.urlObject.searchParams.has()"CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json413 "displayValue": "insomnia.request.url.urlObject.searchParams.set()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json414 "name": "insomnia.request.url.urlObject.searchParams.set()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json415 "value": "insomnia.request.url.urlObject.searchParams.set()"CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json418 "displayValue": "insomnia.request.url.urlObject.searchParams.sort()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json419 "name": "insomnia.request.url.urlObject.searchParams.sort()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json420 "value": "insomnia.request.url.urlObject.searchParams.sort()"CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json423 "displayValue": "insomnia.request.url.urlObject.searchParams.entries()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json424 "name": "insomnia.request.url.urlObject.searchParams.entries()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json425 "value": "insomnia.request.url.urlObject.searchParams.entries()"CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json428 "displayValue": "insomnia.request.url.urlObject.searchParams.forEach()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json429 "name": "insomnia.request.url.urlObject.searchParams.forEach()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json430 "value": "insomnia.request.url.urlObject.searchParams.forEach()"CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json433 "displayValue": "insomnia.request.url.urlObject.searchParams.keys()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json434 "name": "insomnia.request.url.urlObject.searchParams.keys()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json435 "value": "insomnia.request.url.urlObject.searchParams.keys()"CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json438 "displayValue": "insomnia.request.url.urlObject.searchParams.values()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json439 "name": "insomnia.request.url.urlObject.searchParams.values()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json440 "value": "insomnia.request.url.urlObject.searchParams.values()"CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json443 "displayValue": "insomnia.request.url.urlObject.searchParams.toString()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json444 "name": "insomnia.request.url.urlObject.searchParams.toString()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json445 "value": "insomnia.request.url.urlObject.searchParams.toString()"CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json733 "displayValue": "insomnia.response.originalRequest.url.urlObject.toString()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json734 "name": "insomnia.response.originalRequest.url.urlObject.toString()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json735 "value": "insomnia.response.originalRequest.url.urlObject.toString()"CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json793 "displayValue": "insomnia.response.originalRequest.url.urlObject.searchParams.append()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json794 "name": "insomnia.response.originalRequest.url.urlObject.searchParams.append()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json795 "value": "insomnia.response.originalRequest.url.urlObject.searchParams.append()"CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json798 "displayValue": "insomnia.response.originalRequest.url.urlObject.searchParams.delete()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json799 "name": "insomnia.response.originalRequest.url.urlObject.searchParams.delete()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json800 "value": "insomnia.response.originalRequest.url.urlObject.searchParams.delete()"CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json803 "displayValue": "insomnia.response.originalRequest.url.urlObject.searchParams.get()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json804 "name": "insomnia.response.originalRequest.url.urlObject.searchParams.get()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json805 "value": "insomnia.response.originalRequest.url.urlObject.searchParams.get()"CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json808 "displayValue": "insomnia.response.originalRequest.url.urlObject.searchParams.getAll()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json809 "name": "insomnia.response.originalRequest.url.urlObject.searchParams.getAll()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json810 "value": "insomnia.response.originalRequest.url.urlObject.searchParams.getAll()"CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json813 "displayValue": "insomnia.response.originalRequest.url.urlObject.searchParams.has()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json814 "name": "insomnia.response.originalRequest.url.urlObject.searchParams.has()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json815 "value": "insomnia.response.originalRequest.url.urlObject.searchParams.has()"CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json818 "displayValue": "insomnia.response.originalRequest.url.urlObject.searchParams.set()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json819 "name": "insomnia.response.originalRequest.url.urlObject.searchParams.set()",CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json820 "value": "insomnia.response.originalRequest.url.urlObject.searchParams.set()"CODE
CRITICAL…a-scripting-environment/src/autocomplete-snippets.json823 "displayValue": "insomnia.response.originalRequest.url.urlObject.searchParams.sort()",CODE
21 more matches not shown…
Hyper-Verbose Identifiers172 hits · 174 pts
SeverityFileLineSnippetContext
LOWpackages/insomnia-inso/src/scripts/docs.ts30function generateSubcommandsMarkdown(CODE
LOW…kages/insomnia-inso/src/commands/lint-specification.ts37async function assertResolvesToPublicHost(hostname: string): Promise<void> {CODE
LOWpackages/insomnia/src/ui/analytics.ts35export function readPendingImportAttribution(): ImportAttribution {CODE
LOWpackages/insomnia/src/ui/organization-utils.ts18export async function updateLocalProjectToRemote({CODE
LOWpackages/insomnia/src/ui/organization-utils.ts88export function findMigrationTargetSpaceId(organizations: Organization[]): string {CODE
LOWpackages/insomnia/src/ui/organization-utils.ts93export async function migrateProjectsUnderOrganization(personalOrganizationId: string, sessionId: string) {CODE
LOW…kages/insomnia/src/ui/utils/render-realtime-connect.ts22export async function renderRealtimeConnectPayload({CODE
LOWpackages/insomnia/src/ui/utils/remote-projects.ts18export function groupRemoteFilesByProjectId(CODE
LOWpackages/insomnia/src/ui/utils/grpc.ts20export function getGrpcConnectionErrorDetails(error: Error) {CODE
LOWpackages/insomnia/src/ui/components/keydown-binder.ts54export function useDocBodyKeyboardShortcuts(CODE
LOWpackages/insomnia/src/ui/components/time-from-now.tsx51export function convertEpochToMilliseconds(epoch: number) {CODE
LOW…ject-navigation-sidebar/use-navigation-sidebar-data.ts12export function useProjectNavigationSidebarData(CODE
LOW…/insomnia/src/ui/components/settings/import-export.tsx123async function writeExportedFileToFileSystem(filename: string, data: string) {CODE
LOW…nsomnia/src/ui/components/modals/cli-preview-modal.tsx8function generateCommandArgumentsForRequests(CODE
LOW…src/ui/components/modals/git-project-staging-modal.tsx147function stripRedundantPushErrorPrefix(error: string) {CODE
LOW…src/ui/components/modals/git-project-staging-modal.tsx154function getGitHubProtectedBranchTip(error: string): string | null {CODE
LOW…omnia/src/ui/components/modals/import-modal/shared.tsx185function getWorkspaceCountsByScope(workspaces: { scope?: string }[], scanResult: ScanResult) {CODE
LOW…src/ui/components/modals/invite-modal/invite-modal.tsx628 async function revalidateCurrentUserRoleAndPermissionsInOrg(organizationId: string) {CODE
LOW…s/insomnia/src/ui/components/templating/tag-editor.tsx195 function convertLegacyCredentialTag(legacyCredentialId: string, argIndex: number) {CODE
LOW…s/.client/codemirror/normalize-irregular-whitespace.ts31export function normalizeIrregularWhitespace(text: string) {CODE
LOW…a/src/ui/components/.client/codemirror/code-editor.tsx80function setEditorValueWithTruncation(CODE
LOW…mponents/.client/codemirror/extensions/autocomplete.ts130 function completeIfAfterTagOrVarOpen(cm: CodeMirror.Editor) {CODE
LOW…insomnia/src/ui/components/git/git-oauth-auth-utils.ts16export function isOAuthAccessTokenExpired(credential: GitCredentials | null | undefined): boolean {CODE
LOW…insomnia/src/ui/components/git/git-oauth-auth-utils.ts37export function shouldShowConfigureGitHubAppLink(CODE
LOWpackages/insomnia/src/ui/hooks/use-remote-files.ts23export function useRemoteBackendProjectsInvalidation(organizationId: string): void {CODE
LOWpackages/insomnia/src/ui/hooks/use-remote-files.ts62export function useRemoteFilesByProjectId(organizationId: string, projects: Project[]): Map<string, InsomniaFile[]> {CODE
LOWpackages/insomnia/src/ui/hooks/use-remote-files.ts75export function useUnsyncedFilesForProject(CODE
LOW…insomnia/src/ui/hooks/use-organization-storage-rule.ts16export function useOrganizationStorageRule(organizationIdParam?: string): StorageRules {CODE
LOW…insomnia/src/ui/hooks/use-organization-storage-rule.ts35export function useInvalidateOrganizationStorageRule() {CODE
LOW…es/insomnia/src/ui/hooks/use-organization-features.tsx35export function useOrganizationPermissions(organizationIdParam?: string) {CODE
LOW…nsomnia/src/ui/hooks/use-realtime-connection-events.ts10export function useRealtimeConnectionEvents({CODE
LOW…/src/ui/hooks/use-realtime-connection-notifications.ts7export function useRealtimeConnectionNotifications({CODE
LOWpackages/insomnia/src/__mocks__/@grpc/grpc-js.ts87export function makeGenericClientConstructor() {CODE
LOWpackages/insomnia/src/konnect/api.ts145export async function fetchKonnectOrganizationId(pat: string, signal?: AbortSignal): Promise<string | undefined> {CODE
LOWpackages/insomnia/src/konnect/expression-parser.ts35export function extractFieldsFromExpression(expression: string): ExtractedRouteFields {CODE
LOWpackages/insomnia/src/plugins/index.ts67async function discoverUserPluginExports(CODE
LOWpackages/insomnia/src/plugins/index.ts80function buildUserPluginModuleFromManifest(pluginName: string, manifest: PluginExportManifest): Plugin['module'] {CODE
LOWpackages/insomnia/src/plugins/index.ts403async function ensureSandboxEngineLoadedBeforePlugins(): Promise<void> {CODE
LOWpackages/insomnia/src/network/network.ts79export function getOrInheritHeaders({CODE
LOWpackages/insomnia/src/network/network.ts704export async function tryToExecuteAfterResponseScript(context: RequestAndContextAndResponse) {CODE
LOWpackages/insomnia/src/network/send-request.node.ts38export async function getSendRequestCallbackMemDb(CODE
LOWpackages/insomnia/src/basic-components/utils/index.ts32export function getBackgroundColorClasses(color: ButtonColor) {CODE
LOWpackages/insomnia/src/common/project.ts231export async function getProjectsWithGitRepositories({CODE
LOWpackages/insomnia/src/common/api-specs.ts42export function resolveComponentSchemaRefs(spec: ParsedApiSpec, methodInfo: Record<string, any>) {CODE
LOWpackages/insomnia/src/common/app-data.ts98function findOrganizationAndProjectIdForWorkspace(CODE
LOWpackages/insomnia/src/common/app-data.ts113function findOrganizationFromWorkspaceId(queryClient: QueryClient, workspaceId: string): string | undefined {CODE
LOWpackages/insomnia/src/common/app-data.ts124function invalidateIfOrganizationDataUncached(queryClient: QueryClient, organizationId: string): boolean {CODE
LOWpackages/insomnia/src/common/app-data.ts133function updateOrganizationDataWorkspaceMeta(CODE
LOWpackages/insomnia/src/common/app-data.ts154function deleteOrganizationDataWorkspaceMeta(CODE
LOWpackages/insomnia/src/common/app-data.ts170function addOrganizationDataWorkspaceMeta(queryClient: QueryClient, organizationId: string, workspaceMeta: BaseModel) {CODE
LOWpackages/insomnia/src/common/app-data.ts213function updateCollectionChildrenWithUpdatedDoc(CODE
LOW…ages/insomnia/src/common/organization-storage-rules.ts15export async function fetchAndCacheOrganizationStorageRule(CODE
LOWpackages/insomnia/src/common/collection.ts9export function flattenCollectionChildren(CODE
LOWpackages/insomnia/src/common/constants.ts370export function getMimeTypeFromContentType(contentType: string) {CODE
LOWpackages/insomnia/src/common/render.ts527export async function getRenderedGrpcRequestMessage({CODE
LOWpackages/insomnia/src/common/render.ts539export async function getRenderedRequestAndContext({CODE
LOWpackages/insomnia/src/common/render.ts684export async function getRenderContextAncestors(CODE
LOW…ages/insomnia/src/common/spectral-ruleset-validator.ts41function containsPrototypePollution(value: string): boolean {CODE
LOWpackages/insomnia/src/common/insomnia-v5.ts286export function insomniaSchemaTypeToScope(type: InsomniaFile['type']): WorkspaceScope {CODE
LOWpackages/insomnia/src/common/insomnia-v5.ts849 function getCollectionFromResources(CODE
112 more matches not shown…
Decorative Section Separators37 hits · 116 pts
SeverityFileLineSnippetContext
MEDIUMpackages/insomnia/src/konnect/transform.ts5// ─── Template injection sanitisation ─────────────────────────────────────────COMMENT
MEDIUMpackages/insomnia/src/konnect/transform.ts55// ─── Proxy environment variables ─────────────────────────────────────────────COMMENT
MEDIUMpackages/insomnia/src/konnect/transform.ts115// ─── Path handling ────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/insomnia/src/konnect/transform.ts231// ─── Header / path-parameter merging ─────────────────────────────────────────COMMENT
MEDIUM…kages/insomnia/src/konnect/__tests__/transform.test.ts13// ─── sanitizeRoute ───────────────────────────────────────────────────────────COMMENT
MEDIUM…kages/insomnia/src/konnect/__tests__/transform.test.ts232// ─── deriveProxyVarDefaults ──────────────────────────────────────────────────COMMENT
MEDIUM…kages/insomnia/src/konnect/__tests__/transform.test.ts330// ─── generatePathPlaceholder ─────────────────────────────────────────────────COMMENT
MEDIUM…kages/insomnia/src/konnect/__tests__/transform.test.ts422// ─── mergeHeaders ────────────────────────────────────────────────────────────COMMENT
MEDIUM…kages/insomnia/src/konnect/__tests__/transform.test.ts459// ─── mergePathParameters ─────────────────────────────────────────────────────COMMENT
MEDIUM…kages/insomnia/src/konnect/__tests__/transform.test.ts478// ─── konnectHeadersChanged ───────────────────────────────────────────────────COMMENT
MEDIUM…kages/insomnia/src/konnect/__tests__/transform.test.ts514// ─── pathParametersChanged ───────────────────────────────────────────────────COMMENT
MEDIUMpackages/insomnia/src/konnect/__tests__/sync.test.ts18// ─── Helpers ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/insomnia/src/konnect/__tests__/sync.test.ts127// ─── Feature: HTTP Route Sync ─────────────────────────────────────────────────COMMENT
MEDIUMpackages/insomnia/src/konnect/__tests__/sync.test.ts475// ─── Feature: Request Naming ──────────────────────────────────────────────────COMMENT
MEDIUMpackages/insomnia/src/konnect/__tests__/sync.test.ts566// ─── Feature: Re-sync ───────────────────────────────────────────────────────COMMENT
MEDIUMpackages/insomnia/src/konnect/__tests__/sync.test.ts993// ─── Feature: Idempotent Sync (Route Keying) ──────────────────────────────────COMMENT
MEDIUMpackages/insomnia/src/konnect/__tests__/sync.test.ts1073// ─── Feature: gRPC Route Sync ─────────────────────────────────────────────────COMMENT
MEDIUMpackages/insomnia/src/konnect/__tests__/sync.test.ts1301// ─── Feature: WebSocket Route Sync ───────────────────────────────────────────COMMENT
MEDIUMpackages/insomnia/src/konnect/__tests__/sync.test.ts1489// ─── Feature: L4 (Stream) Routes — Skipped ───────────────────────────────────COMMENT
MEDIUMpackages/insomnia/src/konnect/__tests__/sync.test.ts1515// ─── Feature: SNI-Only Routes ────────────────────────────────────────────────COMMENT
MEDIUMpackages/insomnia/src/konnect/__tests__/sync.test.ts1544// ─── Feature: Collection (Workspace) Naming ─────────────────────────────────COMMENT
MEDIUMpackages/insomnia/src/konnect/__tests__/sync.test.ts1596// ─── Feature: Environment Variable Mapping ────────────────────────────────────COMMENT
MEDIUMpackages/insomnia/src/konnect/__tests__/sync.test.ts1730// ─── Feature: Control Plane (Project) Naming ────────────────────────────────COMMENT
MEDIUMpackages/insomnia/src/konnect/__tests__/sync.test.ts1780// ─── Feature: Wildcard and Edge-Case Hosts ────────────────────────────────────COMMENT
MEDIUMpackages/insomnia/src/konnect/__tests__/sync.test.ts1832// ─── Feature: Expression-Based Routes ──────────────────────────────────────COMMENT
MEDIUMpackages/insomnia/src/konnect/__tests__/sync.test.ts2135// ─── Feature: Multi-Region Control Plane Sync ────────────────────────────────COMMENT
MEDIUMpackages/insomnia/src/konnect/__tests__/api.test.ts11// ─── Helpers ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/insomnia/src/konnect/__tests__/api.test.ts61// ─── validatePat ─────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/insomnia/src/konnect/__tests__/api.test.ts117// ─── fetchAllControlPlanes — page-number pagination ──────────────────────────COMMENT
MEDIUMpackages/insomnia/src/konnect/__tests__/api.test.ts238// ─── fetchAllServices — offset pagination ────────────────────────────────────COMMENT
MEDIUMpackages/insomnia/src/konnect/__tests__/api.test.ts307// ─── fetchRoutesForService — offset pagination ──────────────────────────────COMMENT
MEDIUMpackages/insomnia/src/konnect/__tests__/api.test.ts387// ─── Retry logic (fetchWithRetry, tested through exported functions) ─────────COMMENT
MEDIUMpackages/insomnia/src/konnect/__tests__/api.test.ts564// ─── fetchKonnectOrganizationId ───────────────────────────────────────────────COMMENT
MEDIUMpackages/insomnia/src/sync/git/repo-file-watcher.ts783 // ── Check if file still exists and is not a symlink ──────────────COMMENT
MEDIUMpackages/insomnia/src/sync/git/repo-file-watcher.ts801 // ── Fast-path: mtime unchanged → skip ────────────────────────────COMMENT
MEDIUMpackages/insomnia/src/sync/git/repo-file-watcher.ts811 // ── Read file ────────────────────────────────────────────────────COMMENT
MEDIUMpackages/insomnia/src/sync/git/repo-file-watcher.ts820 // ── Content-hash dedup: skip if this is our own write ────────────COMMENT
Over-Commented Block31 hits · 31 pts
SeverityFileLineSnippetContext
LOWpackages/insomnia-inso/src/scripts/macos-pkg.sh1#!/usr/bin/env bashCOMMENT
LOWpackages/insomnia/src/routes.ts1import { flatRoutes } from '@react-router/fs-routes';COMMENT
LOWpackages/insomnia/src/entry.client.tsx81COMMENT
LOW…rc/ui/components/key-value-editor/key-value-editor.tsx101 // The persisted pairs (everything that lives in the data model and shows up in diffs).COMMENT
LOW…tors/environment-key-value-editor/key-value-editor.tsx81 // Ensure same array data will not generate different kvPairs to avoid flash issueCOMMENT
LOW…src/ui/components/modals/git-project-staging-modal.tsx321 // const processedItems = await Promise.all(COMMENT
LOW…ui/components/.client/codemirror/editor-state-cache.ts1import type CodeMirror from 'codemirror';COMMENT
LOW…omponents/.client/codemirror/editor-history-cleanup.ts1import { useEffect } from 'react';COMMENT
LOWpackages/insomnia/src/ui/worker/templating.worker.ts21 // This Worker builds and caches its own Liquid engine (see `~/ui/templating/worker`), includingCOMMENT
LOW…ckages/insomnia/src/scripting/quickjs-script-engine.ts241COMMENT
LOW…plugins/__tests__/sandbox-engine-preload-order.test.ts1// Regression test for `getPlugins()`'s eager sandbox-engine warm-upCOMMENT
LOW…__/plugin-load-order-quickjs-module-resolution.test.ts1// `sandbox-engine-preload-order.test.ts` and `../../templating/sandbox/quickjs-runtime.test.ts`COMMENT
LOW…a/src/runtimes/network/hook-chain-shared-state.test.ts1// Regression coverage for whether one plugin's hook can observe or alter another plugin's dataCOMMENT
LOW…nsomnia/src/templating/sandbox/in-sandbox-bootstrap.ts21 ' "use strict";',COMMENT
LOW…nsomnia/src/templating/sandbox/in-sandbox-bootstrap.ts181 // The host reads the plugin\'s source files (only within its own directory, never node_modules)COMMENT
LOW…g/sandbox/elevated-plugin-process-access-scope.test.ts1// Regression coverage for how far an elevated/unsandboxed plugin's real Node process accessCOMMENT
LOW…g/sandbox/elevated-plugin-process-access-scope.test.ts121 // The main-process build bundles every local project module into one file; only packages inCOMMENT
LOW…a/src/common/__tests__/import-export-roundtrip.test.ts21COMMENT
LOWpackages/insomnia/src/sync/git/ne-db-client.ts81COMMENT
LOW…omnia/src/main/templating-worker-database-inventory.ts1// The checked-in scoping inventory for every protocol-dispatch handler in `pluginToMainAPI`.COMMENT
LOW…ckages/insomnia/src/main/templating-worker-database.ts781 settings,COMMENT
LOW…atabase-sendrequest-multipart-filepath-scoping.test.ts1import fs from 'node:fs';COMMENT
LOW…ting-worker-database-sendrequest-cacert-bypass.test.ts1import fs from 'node:fs';COMMENT
LOWpackages/insomnia-data/common-src/settings.ts181 saveVaultKeyToOSSecretManager: boolean;COMMENT
LOW…-smoke-test/tests/smoke/quickjs-script-sandbox.test.ts1import { expect, type Page } from '@playwright/test';COMMENT
LOWpackages/insomnia-smoke-test/tests/smoke/invite.test.ts41 // // Unlink the team. The team is showing as the first option in the listCOMMENT
LOW…st/tests/smoke/environment-editor-interactions.test.ts141 // explicitly blur the value cell (rather than letting the Add Row click do it) so itsCOMMENT
LOW…e-test/tests/migration/local-to-cloud-projects.test.ts41 // @TODO Re-enable this testCOMMENT
LOW…e-test/tests/migration/local-to-cloud-projects.test.ts61 // await page.getByTestId('project').click();COMMENT
LOW…mnia-scripting-environment/src/objects/send-request.ts101 default: {COMMENT
LOWpackages/insomnia-vcs/src/util.ts81COMMENT
Verbosity Indicators11 hits · 23 pts
SeverityFileLineSnippetContext
LOW…kages/insomnia-inso/src/commands/lint-specification.ts95 // Step 1: flatten local extends and validate remote URLs (SSRF + disallowed keys).COMMENT
LOW…kages/insomnia-inso/src/commands/lint-specification.ts97 // Step 2: fetch + fully inline remote extends so bundleAndLoadRuleset has nothing to fetch,COMMENT
LOWpackages/insomnia/src/sync/git/git-repo-migration.ts234 // Step 1: Rename git/ → .git/COMMENT
LOWpackages/insomnia/src/sync/git/git-repo-migration.ts256 // Step 2: Collapse other/ → repo rootCOMMENT
LOWpackages/insomnia/src/sync/git/git-repo-migration.ts264 // Step 3: Flush all Insomnia YAML workspaces to disk so they become real files.COMMENT
LOWpackages/insomnia/src/main/install-plugin.ts76 // Step 1: Validate the plugin and fetch its npm metadataCOMMENT
LOWpackages/insomnia/src/main/install-plugin.ts97 // Step 2: Create the plugin directory if it doesn't existCOMMENT
LOWpackages/insomnia/src/main/install-plugin.ts104 // Step 3: only allow tarballs from known hostsCOMMENT
LOWpackages/insomnia/src/main/install-plugin.ts123 // Step 4: Install the plugin into a temporary directoryCOMMENT
LOWpackages/insomnia/src/main/install-plugin.ts127 // Step 5: Move the main plugin folder into the plugin directoryCOMMENT
LOWpackages/insomnia/src/main/install-plugin.ts133 // Step 6: Handle the plugin's dependenciesCOMMENT
Structural Annotation Overuse11 hits · 23 pts
SeverityFileLineSnippetContext
LOW…kages/insomnia-inso/src/commands/lint-specification.ts95 // Step 1: flatten local extends and validate remote URLs (SSRF + disallowed keys).COMMENT
LOW…kages/insomnia-inso/src/commands/lint-specification.ts97 // Step 2: fetch + fully inline remote extends so bundleAndLoadRuleset has nothing to fetch,COMMENT
LOWpackages/insomnia/src/sync/git/git-repo-migration.ts234 // Step 1: Rename git/ → .git/COMMENT
LOWpackages/insomnia/src/sync/git/git-repo-migration.ts256 // Step 2: Collapse other/ → repo rootCOMMENT
LOWpackages/insomnia/src/sync/git/git-repo-migration.ts264 // Step 3: Flush all Insomnia YAML workspaces to disk so they become real files.COMMENT
LOWpackages/insomnia/src/main/install-plugin.ts76 // Step 1: Validate the plugin and fetch its npm metadataCOMMENT
LOWpackages/insomnia/src/main/install-plugin.ts97 // Step 2: Create the plugin directory if it doesn't existCOMMENT
LOWpackages/insomnia/src/main/install-plugin.ts104 // Step 3: only allow tarballs from known hostsCOMMENT
LOWpackages/insomnia/src/main/install-plugin.ts123 // Step 4: Install the plugin into a temporary directoryCOMMENT
LOWpackages/insomnia/src/main/install-plugin.ts127 // Step 5: Move the main plugin folder into the plugin directoryCOMMENT
LOWpackages/insomnia/src/main/install-plugin.ts133 // Step 6: Handle the plugin's dependenciesCOMMENT
Fake / Example Data16 hits · 18 pts
SeverityFileLineSnippetContext
LOWpackages/insomnia/src/ui/components/svg-icon.tsx117 placeholder: 'placeholder',CODE
LOW…mnia/src/ui/components/settings/text-array-setting.tsx17 placeholder?: InputHTMLAttributes<HTMLInputElement>['placeholder'];CODE
LOW…s/insomnia/src/ui/components/settings/text-setting.tsx13 placeholder?: InputHTMLAttributes<HTMLInputElement>['placeholder'];CODE
LOW…insomnia/src/ui/components/settings/masked-setting.tsx14 placeholder?: React.HTMLProps<HTMLInputElement>['placeholder'];CODE
LOW…ommon/__fixtures__/insomnia-v5-roundtrip/bookings.yaml165 "contactEmail": "user@example.com"CODE
LOW…somnia/src/sync/git/providers/__tests__/github.test.ts31function mockGithubApi(email = 'user@example.com') {CODE
LOW…somnia/src/sync/git/providers/__tests__/gitlab.test.ts31function mockGitlabApi(email = 'user@example.com') {CODE
LOW…ges/insomnia/src/main/importers/importers/swagger-2.ts410 'string_email': () => 'user@example.com',CODE
LOW…ges/insomnia/src/main/importers/importers/openapi-3.ts560 'string_email': () => 'user@example.com',CODE
LOW…ckages/insomnia-data/__tests__/git-credentials.test.ts231 author: { name: 'User', email: 'user@example.com' },CODE
LOW…ckages/insomnia-data/__tests__/git-credentials.test.ts242 author: { name: 'User', email: 'user@example.com' },CODE
LOW…ckages/insomnia-data/__tests__/git-credentials.test.ts251 author: { name: 'User', email: 'user@example.com' },CODE
LOW…ckages/insomnia-data/__tests__/git-credentials.test.ts260 author: { name: 'User', email: 'user@example.com' },CODE
LOW…ckages/insomnia-data/__tests__/git-credentials.test.ts269 author: { name: 'User', email: 'user@example.com' },CODE
LOW…ckages/insomnia-data/__tests__/git-credentials.test.ts283 author: { name: 'User', email: 'user@example.com' },CODE
LOW…ckages/insomnia-data/__tests__/git-credentials.test.ts290 author: { name: 'User', email: 'user@example.com' },CODE
AI Slop Vocabulary4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMpackages/insomnia/src/ui/components/request-url-bar.tsx134 // robust to React StrictMode's double-mount and to the request pane keying by requestId.COMMENT
MEDIUM…test/playwright/pages/components/navigation-sidebar.ts144 // Sometimes the dropdown button can be a bit tricky to click if the hover state isn't properly triggered, so we'll COMMENT
MEDIUM…test/playwright/pages/components/navigation-sidebar.ts210 // Sometimes the dropdown button can be a bit tricky to click if the hover state isn't properly triggered, so we'll COMMENT
MEDIUM…test/playwright/pages/components/navigation-sidebar.ts227 // Sometimes the dropdown button can be a bit tricky to click if the hover state isn't properly triggered, so we'll COMMENT
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGH…omnia/src/routes/ai.mcp-generate-sampling-response.tsx53 // Response sampling request with AI-generated responseCOMMENT
Self-Referential Comments2 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUMpackages/insomnia-inso/src/scripts/macos-pkg.sh53# Create a staging area for the installer package.COMMENT
MEDIUM.github/workflows/release-start.yml88 - name: Create Branch # Create a branch if it doesn't existCODE
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWpackages/insomnia/src/network/cancellation.renderer.ts17 // TODO: implement cancelPreRequestScript on hiddenBrowserWindow side?COMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWpackages/insomnia/src/entry.server.tsx12export default function handleRequest(CODE