Repository Analysis

Kong/insomnia

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

1.4 Likely human-written View on GitHub
1.4
Adjusted Score
1.4
Raw Score
100%
Time Factor
2026-05-30
Last Push
38,458
Stars
TypeScript
Language
249,925
Lines of Code
1495
Files
213
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 1HIGH 1MEDIUM 46LOW 165

Pattern Findings

213 matches across 10 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers136 hits · 138 pts
SeverityFileLineSnippet
LOWpackages/insomnia-inso/src/scripts/docs.ts30function generateSubcommandsMarkdown(
LOW…kages/insomnia-inso/src/commands/lint-specification.ts37async function assertResolvesToPublicHost(hostname: string): Promise<void> {
LOWpackages/insomnia/src/ui/analytics.ts35export function readPendingImportAttribution(): ImportAttribution {
LOWpackages/insomnia/src/ui/organization-utils.ts50export async function updateLocalProjectToRemote({
LOWpackages/insomnia/src/ui/organization-utils.ts116export async function migrateProjectsUnderOrganization(personalOrganizationId: string, sessionId: string) {
LOWpackages/insomnia/src/ui/components/keydown-binder.ts54export function useDocBodyKeyboardShortcuts(
LOWpackages/insomnia/src/ui/components/time-from-now.tsx51export function convertEpochToMilliseconds(epoch: number) {
LOW…navigation-sidebar/project-navigation-sidebar-utils.ts52export async function getWorkspacesByProjectIds(projectIds: string[]) {
LOW…navigation-sidebar/project-navigation-sidebar-utils.ts63export async function getAllRequestsAndMetaByWorkspace(workspaceIds: string[]) {
LOW…navigation-sidebar/project-navigation-sidebar-utils.ts185export function flattenCollectionChildren(
LOW…/insomnia/src/ui/components/settings/import-export.tsx124async function writeExportedFileToFileSystem(filename: string, data: string) {
LOW…nsomnia/src/ui/components/modals/cli-preview-modal.tsx8function generateCommandArgumentsForRequests(
LOW…omnia/src/ui/components/modals/import-modal/shared.tsx191function getWorkspaceCountsByScope(workspaces: { scope?: string }[], scanResult: ScanResult) {
LOW…src/ui/components/modals/invite-modal/invite-modal.tsx632 async function revalidateCurrentUserRoleAndPermissionsInOrg(organizationId: string) {
LOW…s/.client/codemirror/normalize-irregular-whitespace.ts31export function normalizeIrregularWhitespace(text: string) {
LOW…mponents/.client/codemirror/extensions/autocomplete.ts130 function completeIfAfterTagOrVarOpen(cm: CodeMirror.Editor) {
LOW…insomnia/src/ui/components/git/git-oauth-auth-utils.ts15export function isOAuthAccessTokenExpired(credential: GitCredentials | null | undefined): boolean {
LOW…insomnia/src/ui/components/git/git-oauth-auth-utils.ts36export function shouldShowConfigureGitHubAppLink(
LOW…es/insomnia/src/ui/hooks/use-organization-features.tsx13export function useOrganizationPermissions() {
LOW…nsomnia/src/ui/hooks/use-realtime-connection-events.ts10export function useRealtimeConnectionEvents({
LOW…/src/ui/hooks/use-realtime-connection-notifications.ts7export function useRealtimeConnectionNotifications({
LOWpackages/insomnia/src/__mocks__/@grpc/grpc-js.ts87export function makeGenericClientConstructor() {
LOWpackages/insomnia/src/konnect/transform.ts60export function extractRegionFromEndpoint(endpoint: string): string {
LOWpackages/insomnia/src/konnect/expression-parser.ts35export function extractFieldsFromExpression(expression: string): ExtractedRouteFields {
LOW…kages/insomnia/src/insomnia-data/common-src/hotkeys.ts203export function getPlatformKeyCombinations(bindings: PlatformKeyCombinations): KeyCombination[] {
LOW…kages/insomnia/src/insomnia-data/common-src/hotkeys.ts309export function constructKeyCombinationDisplay(keyComb: KeyCombination, mustUsePlus: boolean) {
LOW…ges/insomnia/src/insomnia-data/common-src/constants.ts6export function getContentTypeFromHeaders(headers: any[], defaultValue: string | null = null) {
LOW…omnia-data/node-src/services/socket-io-request-meta.ts7function expectParentToBeSocketIORequest(parentId: string | null) {
LOW…omnia-data/node-src/services/socket-io-request-meta.ts32export async function getOrCreateByParentId(parentId: string) {
LOW…/src/insomnia-data/node-src/services/workspace-meta.ts31export async function getOrCreateByParentId(parentId: string) {
LOW…somnia/src/insomnia-data/node-src/services/settings.ts30export async function getOrCreate() {
LOW…nia/src/insomnia-data/node-src/services/environment.ts64export async function getOrCreateForParentId(parentId: string) {
LOW…/insomnia/src/insomnia-data/node-src/services/stats.ts56export async function incrementExecutedRequests() {
LOW…/insomnia/src/insomnia-data/node-src/services/stats.ts62export async function incrementCreatedRequestsForDescendents(doc: Workspace | RequestGroup) {
LOW…/insomnia/src/insomnia-data/node-src/services/stats.ts81export async function incrementDeletedRequestsForDescendents(doc: Workspace | RequestGroup | Project) {
LOW…somnia/src/insomnia-data/node-src/services/api-spec.ts10export async function getOrCreateForParentId(workspaceId: string, patch: Partial<ApiSpec> = {}) {
LOW…somnia/src/insomnia-data/node-src/services/api-spec.ts22export async function updateOrCreateForParentId(workspaceId: string, patch: Partial<ApiSpec> = {}) {
LOW…c/insomnia-data/node-src/services/grpc-request-meta.ts26export async function getOrCreateByParentId(parentId: string) {
LOW…c/insomnia-data/node-src/services/grpc-request-meta.ts55function expectParentToBeGrpcRequest(parentId: string | null) {
LOW…nia/src/insomnia-data/node-src/services/mcp-payload.ts38export async function updateOrCreateByParentIdAndUrl(parentId: string, patch: Partial<McpPayload>) {
LOW…nia/src/insomnia-data/node-src/services/mcp-payload.ts53export async function getOrCreateByParentIdAndUrl(parentId: string, url: string) {
LOW…nia/src/insomnia-data/node-src/services/mcp-payload.ts53export async function getOrCreateByParentIdAndUrl(parentId: string, url: string) {
LOW…mnia/src/insomnia-data/node-src/services/cookie-jar.ts16export async function getOrCreateForParentId(parentId: string) {
LOW…ia/src/insomnia-data/node-src/services/request-meta.ts22export async function getOrCreateByParentId(parentId: string) {
LOW…/src/insomnia-data/node-src/services/o-auth-2-token.ts26export async function getOrCreateByParentId(parentId: string) {
LOW…nia/src/insomnia-data/node-src/services/mock-server.ts15export async function getOrCreateForParentId(workspaceId: string, patch: Partial<MockServer> = {}) {
LOW…nia/src/insomnia-data/node-src/services/mcp-request.ts35export async function clearResourceSubscriptions(requestId: string) {
LOW…/insomnia-data/node-src/services/request-group-meta.ts22export async function getOrCreateForParentId(parentId: string, patch: Partial<RequestGroupMeta> = {}) {
LOW…/insomnia-data/node-src/services/request-group-meta.ts34export async function updateOrCreateForParentId(parentId: string, patch: Partial<RequestGroupMeta> = {}) {
LOW…c/insomnia-data/node-src/services/socket-io-payload.ts51export async function getOrCreateByParentId(parentId: string) {
LOW…omnia-data/node-src/services/websocket-request-meta.ts7function expectParentToBeWebSocketRequest(parentId: string | null) {
LOW…omnia-data/node-src/services/websocket-request-meta.ts32export async function getOrCreateByParentId(parentId: string) {
LOW…-data/node-src/services/helpers/response-operations.ts19export async function removeResponsesForRequest(requestId: string, environmentId?: string | null) {
LOW…kages/insomnia/src/insomnia-data/src/models/project.ts67export function getQueryableGitRepositoryIds(gitRepositoryId: string): string[] {
LOW…kages/insomnia/src/insomnia-data/src/models/project.ts133export function isDefaultOrganizationProject(project: Project) {
LOW…kages/insomnia/src/insomnia-data/src/models/project.ts144export function getDefaultProjectStorageType(
LOW…kages/insomnia/src/insomnia-data/src/models/project.ts197export function getProjectStorageTypeLabel(storageRules: StorageRules): string {
LOWpackages/insomnia/src/network/network.ts90export function getOrInheritHeaders({
LOWpackages/insomnia/src/network/network.ts697export async function tryToExecuteAfterResponseScript(context: RequestAndContextAndResponse) {
LOWpackages/insomnia/src/utils/vault.ts26export function decryptVaultKeyFromSession(vaultKey: string, toJsonWebKey: true): Promise<object>;
76 more matches not shown…
Decorative Section Separators41 hits · 129 pts
SeverityFileLineSnippet
MEDIUM…ation-sidebar/project-navigation-sidebar-utils.test.ts14// ── Helpers for pure-function test fixtures ───────────────────────────────
MEDIUM…ation-sidebar/project-navigation-sidebar-utils.test.ts89// ── DB-backed tests ────────────────────────────────────────────────────────
MEDIUM…ation-sidebar/project-navigation-sidebar-utils.test.ts216// ── Pure-function tests ────────────────────────────────────────────────────
MEDIUM…ation-sidebar/project-navigation-sidebar-utils.test.ts390// ── filterCollection ───────────────────────────────────────────────────────
MEDIUMpackages/insomnia/src/konnect/transform.ts3// ─── Template injection sanitisation ─────────────────────────────────────────
MEDIUMpackages/insomnia/src/konnect/transform.ts53// ─── Region extraction ────────────────────────────────────────────────────────
MEDIUMpackages/insomnia/src/konnect/transform.ts77// ─── Proxy environment variables ─────────────────────────────────────────────
MEDIUMpackages/insomnia/src/konnect/transform.ts137// ─── Path handling ────────────────────────────────────────────────────────────
MEDIUMpackages/insomnia/src/konnect/transform.ts245// ─── Header / path-parameter merging ─────────────────────────────────────────
MEDIUM…kages/insomnia/src/konnect/__tests__/transform.test.ts14// ─── extractRegionFromEndpoint ───────────────────────────────────────────────
MEDIUM…kages/insomnia/src/konnect/__tests__/transform.test.ts50// ─── sanitizeRoute ───────────────────────────────────────────────────────────
MEDIUM…kages/insomnia/src/konnect/__tests__/transform.test.ts121// ─── deriveProxyVarDefaults ──────────────────────────────────────────────────
MEDIUM…kages/insomnia/src/konnect/__tests__/transform.test.ts231// ─── generatePathPlaceholder ─────────────────────────────────────────────────
MEDIUM…kages/insomnia/src/konnect/__tests__/transform.test.ts311// ─── mergeHeaders ────────────────────────────────────────────────────────────
MEDIUM…kages/insomnia/src/konnect/__tests__/transform.test.ts342// ─── mergePathParameters ─────────────────────────────────────────────────────
MEDIUM…kages/insomnia/src/konnect/__tests__/transform.test.ts367// ─── konnectHeadersChanged ───────────────────────────────────────────────────
MEDIUM…kages/insomnia/src/konnect/__tests__/transform.test.ts411// ─── pathParametersChanged ───────────────────────────────────────────────────
MEDIUMpackages/insomnia/src/konnect/__tests__/sync.test.ts18// ─── Helpers ─────────────────────────────────────────────────────────────────
MEDIUMpackages/insomnia/src/konnect/__tests__/sync.test.ts119// ─── Feature: HTTP Route Sync ─────────────────────────────────────────────────
MEDIUMpackages/insomnia/src/konnect/__tests__/sync.test.ts363// ─── Feature: Request Naming ──────────────────────────────────────────────────
MEDIUMpackages/insomnia/src/konnect/__tests__/sync.test.ts428// ─── Feature: Re-sync ───────────────────────────────────────────────────────
MEDIUMpackages/insomnia/src/konnect/__tests__/sync.test.ts716// ─── Feature: Idempotent Sync (Route Keying) ──────────────────────────────────
MEDIUMpackages/insomnia/src/konnect/__tests__/sync.test.ts780// ─── Feature: gRPC Route Sync ─────────────────────────────────────────────────
MEDIUMpackages/insomnia/src/konnect/__tests__/sync.test.ts919// ─── Feature: WebSocket Route Sync ───────────────────────────────────────────
MEDIUMpackages/insomnia/src/konnect/__tests__/sync.test.ts1052// ─── Feature: L4 (Stream) Routes — Skipped ───────────────────────────────────
MEDIUMpackages/insomnia/src/konnect/__tests__/sync.test.ts1076// ─── Feature: SNI-Only Routes ────────────────────────────────────────────────
MEDIUMpackages/insomnia/src/konnect/__tests__/sync.test.ts1099// ─── Feature: Collection (Workspace) Naming ─────────────────────────────────
MEDIUMpackages/insomnia/src/konnect/__tests__/sync.test.ts1155// ─── Feature: Environment Variable Mapping ────────────────────────────────────
MEDIUMpackages/insomnia/src/konnect/__tests__/sync.test.ts1283// ─── Feature: Control Plane (Project) Naming ────────────────────────────────
MEDIUMpackages/insomnia/src/konnect/__tests__/sync.test.ts1336// ─── Feature: Wildcard and Edge-Case Hosts ────────────────────────────────────
MEDIUMpackages/insomnia/src/konnect/__tests__/sync.test.ts1378// ─── Feature: Expression-Based Routes ──────────────────────────────────────
MEDIUMpackages/insomnia/src/konnect/__tests__/api.test.ts9// ─── Helpers ─────────────────────────────────────────────────────────────────
MEDIUMpackages/insomnia/src/konnect/__tests__/api.test.ts59// ─── validatePat ─────────────────────────────────────────────────────────────
MEDIUMpackages/insomnia/src/konnect/__tests__/api.test.ts115// ─── fetchAllControlPlanes — page-number pagination ──────────────────────────
MEDIUMpackages/insomnia/src/konnect/__tests__/api.test.ts197// ─── fetchAllServices — offset pagination ────────────────────────────────────
MEDIUMpackages/insomnia/src/konnect/__tests__/api.test.ts259// ─── fetchRoutesForService — offset pagination ──────────────────────────────
MEDIUMpackages/insomnia/src/konnect/__tests__/api.test.ts312// ─── Retry logic (fetchWithRetry, tested through exported functions) ─────────
MEDIUMpackages/insomnia/src/sync/git/repo-file-watcher.ts614 // ── Check if file still exists ───────────────────────────────────
MEDIUMpackages/insomnia/src/sync/git/repo-file-watcher.ts623 // ── Fast-path: mtime unchanged → skip ────────────────────────────
MEDIUMpackages/insomnia/src/sync/git/repo-file-watcher.ts633 // ── Read file ────────────────────────────────────────────────────
MEDIUMpackages/insomnia/src/sync/git/repo-file-watcher.ts642 // ── Content-hash dedup: skip if this is our own write ────────────
Verbosity Indicators9 hits · 16 pts
SeverityFileLineSnippet
LOWpackages/insomnia/src/sync/git/git-repo-migration.ts234 // Step 1: Rename git/ → .git/
LOWpackages/insomnia/src/sync/git/git-repo-migration.ts256 // Step 2: Collapse other/ → repo root
LOWpackages/insomnia/src/sync/git/git-repo-migration.ts264 // Step 3: Flush all Insomnia YAML workspaces to disk so they become real files.
LOWpackages/insomnia/src/main/install-plugin.ts75 // Step 1: Validate the plugin and fetch its npm metadata
LOWpackages/insomnia/src/main/install-plugin.ts96 // Step 2: Create the plugin directory if it doesn't exist
LOWpackages/insomnia/src/main/install-plugin.ts103 // Step 3: Ensure the plugin tarball can be fetched
LOWpackages/insomnia/src/main/install-plugin.ts124 // Step 4: Install the plugin into a temporary directory
LOWpackages/insomnia/src/main/install-plugin.ts128 // Step 5: Move the main plugin folder into the plugin directory
LOWpackages/insomnia/src/main/install-plugin.ts134 // Step 6: Handle the plugin's dependencies
Hallucination Indicators1 hit · 15 pts
SeverityFileLineSnippet
CRITICAL…insomnia-scripting-environment/src/objects/response.ts193 // insomnia.response.to.not.have.status(200);
Fake / Example Data9 hits · 11 pts
SeverityFileLineSnippet
LOW…ia/src/insomnia-data/__tests__/git-credentials.test.ts234 author: { name: 'User', email: 'user@example.com' },
LOW…ia/src/insomnia-data/__tests__/git-credentials.test.ts245 author: { name: 'User', email: 'user@example.com' },
LOW…ia/src/insomnia-data/__tests__/git-credentials.test.ts254 author: { name: 'User', email: 'user@example.com' },
LOW…ia/src/insomnia-data/__tests__/git-credentials.test.ts263 author: { name: 'User', email: 'user@example.com' },
LOW…ia/src/insomnia-data/__tests__/git-credentials.test.ts272 author: { name: 'User', email: 'user@example.com' },
LOW…ia/src/insomnia-data/__tests__/git-credentials.test.ts286 author: { name: 'User', email: 'user@example.com' },
LOW…ia/src/insomnia-data/__tests__/git-credentials.test.ts293 author: { name: 'User', email: 'user@example.com' },
LOW…ges/insomnia/src/main/importers/importers/swagger-2.ts410 'string_email': () => 'user@example.com',
LOW…ges/insomnia/src/main/importers/importers/openapi-3.ts558 'string_email': () => 'user@example.com',
Over-Commented Block10 hits · 10 pts
SeverityFileLineSnippet
LOWpackages/insomnia-inso/src/scripts/macos-pkg.sh1#!/usr/bin/env bash
LOW…src/ui/components/modals/git-project-staging-modal.tsx181 // async onInsert(e) {
LOWpackages/insomnia/src/scripting/run-script.ts61 // `const $ = insomnia;`,
LOWpackages/insomnia/src/sync/git/ne-db-client.ts81 // Find the document in the database
LOWpackages/insomnia/src/main/cloud-sync/core/util.ts81
LOWpackages/insomnia-smoke-test/tests/smoke/invite.test.ts41 // // Unlink the team. The team is showing as the first option in the list
LOW…e-test/tests/migration/local-to-cloud-projects.test.ts41 // @TODO Re-enable this test
LOW…e-test/tests/migration/local-to-cloud-projects.test.ts61 // await page.getByTestId('project').click();
LOW…mnia-scripting-environment/src/objects/send-request.ts101 break;
LOW…/insomnia-scripting-environment/src/objects/cookies.ts281 // info: { name: string; value: string; httpOnly: boolean },
AI Slop Vocabulary3 hits · 9 pts
SeverityFileLineSnippet
MEDIUM…test/playwright/pages/components/navigation-sidebar.ts100 // Sometimes the dropdown button can be a bit tricky to click if the hover state isn't properly triggered, so we'll
MEDIUM…test/playwright/pages/components/navigation-sidebar.ts165 // Sometimes the dropdown button can be a bit tricky to click if the hover state isn't properly triggered, so we'll
MEDIUM…test/playwright/pages/components/navigation-sidebar.ts182 // Sometimes the dropdown button can be a bit tricky to click if the hover state isn't properly triggered, so we'll
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippet
HIGH…omnia/src/routes/ai.mcp-generate-sampling-response.tsx53 // Response sampling request with AI-generated response
Self-Referential Comments2 hits · 5 pts
SeverityFileLineSnippet
MEDIUMpackages/insomnia-inso/src/scripts/macos-pkg.sh53# Create a staging area for the installer package.
MEDIUM.github/workflows/release-start.yml83 - name: Create Branch # Create a branch if it doesn't exist
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippet
LOWpackages/insomnia/src/entry.server.tsx12export default function handleRequest(