A highly extensible Markdown editor featuring version control, AI Copilot, document annotations, mind maps, document encryption, executable code snippets, chart embedding, HTML applets, plugins, and macro replacement. Its integrated sidebar terminal makes working with AI faster and more convenient.
This report summarizes scanner evidence for purocean/yn, a TypeScript project with 6,765 GitHub stars. SynthScan examined 100,010 lines of code across 534 source files, recording 81 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 4.9 (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.
Can maintainers explain intent, assumptions, and trade-offs? 26 finding(s).
Are imports declared and package/API names verified? 55 finding(s).
Are wrappers, guards, and repeated structures necessary? 20 finding(s).
Which changes need focused human review? 81 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 81 distinct pattern matches across 4 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/renderer/plugins/markdown-mind-map.ts | 315 | km._modules.View.events.resize.apply(km) | CODE |
| CRITICAL | …c/renderer/plugins/markdown-hashtags/worker-indexer.ts | 11 | const enableHashTags = await ctx.bridgeClient.call.ctx.setting.getSetting('render.md-hash-tags', true as any) | CODE |
| CRITICAL | src/renderer/plugins/__tests__/editor-paste.ts | 135 | expect(mocks.editor.addAction.mock.calls.map(([action]: any[]) => action.id)).toEqual([ | CODE |
| CRITICAL | src/renderer/plugins/__tests__/history-stack.ts | 87 | expect(ctx.action.registerAction.mock.calls.map(([action]: any[]) => action.name)).toEqual([ | CODE |
| CRITICAL | src/renderer/plugins/__tests__/history-stack.ts | 176 | ctx.statusBar.tapMenus.mock.calls.at(-1)[0](menusAfterDelete) | CODE |
| CRITICAL | src/renderer/plugins/__tests__/switch-todo.ts | 150 | expect(ctx.editor.replaceLine.mock.calls.map(([line]: any[]) => line)).toEqual([1, 2, 3]) | CODE |
| CRITICAL | …c/renderer/plugins/__tests__/external-file-readonly.ts | 84 | expect(mocks.editor.addAction.mock.calls.map(([action]: any[]) => action.id)).toEqual([ | CODE |
| CRITICAL | src/renderer/plugins/__tests__/editor-attachment.ts | 150 | expect(ready.editor.addAction.mock.calls.map(([action]: any[]) => action.id)).toEqual([ | CODE |
| CRITICAL | src/renderer/plugins/__tests__/editor-attachment.ts | 185 | const actions = new Map(ready.editor.addAction.mock.calls.map(([action]: any[]) => [action.id, action])) | CODE |
| CRITICAL | src/renderer/plugins/__tests__/editor-attachment.ts | 208 | const action = ready.editor.addAction.mock.calls.find(([item]: any[]) => item.id === 'plugin.editor.link-file')[0] | CODE |
| CRITICAL | src/renderer/plugins/__tests__/editor-attachment.ts | 226 | const action = ready.editor.addAction.mock.calls.find(([item]: any[]) => item.id === 'plugin.editor.link-doc')[0] | CODE |
| CRITICAL | src/renderer/plugins/__tests__/editor-attachment.ts | 247 | const addFile = ready.editor.addAction.mock.calls.find(([item]: any[]) => item.id === 'plugin.editor.add-file')[0] | CODE |
| CRITICAL | src/renderer/plugins/__tests__/markdown-plantuml.ts | 58 | expect(ctx.markdown.registerPlugin.mock.calls.map(([, options]: any[]) => options.openMarker)).toEqual([ | CODE |
| CRITICAL | src/renderer/plugins/__tests__/editor-restore-state.ts | 101 | await Promise.all(ctx.editor.whenEditorReady.mock.results.map((result: any) => result.value)) | CODE |
| CRITICAL | src/renderer/plugins/__tests__/editor-restore-state.ts | 127 | await Promise.all(ctx.editor.whenEditorReady.mock.results.map((result: any) => result.value)) | CODE |
| CRITICAL | src/renderer/plugins/__tests__/custom-styles.ts | 117 | expect(ctx.theme.registerThemeStyle.mock.calls.map(([style]: any[]) => style)).toEqual([ | CODE |
| CRITICAL | src/renderer/plugins/__tests__/editor-md-list.ts | 173 | harness.model.tokenization.grammarTokens.getLineTokens.mockReturnValueOnce({ getForeground: vi.fn(() => 23) }) | CODE |
| CRITICAL | src/renderer/plugins/__tests__/floating-editor.ts | 144 | expect(ctx.action.registerAction.mock.calls.map(([action]: any[]) => action.name)).toEqual([ | CODE |
| CRITICAL | src/renderer/plugins/__tests__/editor-markdown.ts | 134 | expect(mocks.editor.addAction.mock.calls.map(([action]: any[]) => action.id)).toEqual([ | CODE |
| CRITICAL | src/renderer/plugins/__tests__/editor-markdown.ts | 166 | const actions = new Map(mocks.editor.addAction.mock.calls.map(([action]: any[]) => [action.id, action])) | CODE |
| CRITICAL | src/renderer/plugins/__tests__/editor-markdown.ts | 225 | const actions = new Map(mocks.editor.addAction.mock.calls.map(([action]: any[]) => [action.id, action])) | CODE |
| CRITICAL | src/renderer/plugins/__tests__/drop-to-open-file.ts | 108 | expect(ctx._iframeWindow.addEventListener.mock.calls.map(([type]: any[]) => type)).toEqual(expectedEvents) | CODE |
| CRITICAL | src/renderer/plugins/__tests__/drop-to-open-file.ts | 109 | expect(ctx._iframeWindow.addEventListener.mock.calls.map(([, , capture]: any[]) => capture)).toEqual([true, true, tr | CODE |
| CRITICAL | …renderer/plugins/markdown-wiki-links/worker-indexer.ts | 11 | const enableWikiLinks = await ctx.bridgeClient.call.ctx.setting.getSetting('render.md-wiki-links', true as any) | CODE |
| CRITICAL | src/renderer/components/DefaultPreviewer.vue | 271 | container.value.ownerDocument.documentElement.style.setProperty(CSS_VAR_NAME.PREVIEWER_HEIGHT, height.value + 'px') | CODE |
| CRITICAL | src/renderer/components/__tests__/more-components.ts | 318 | expect(mocks.lastIframe.contentDocument.documentElement.style.getPropertyValue('--previewer-height')).toBe('640px') | CODE |
| CRITICAL⚡ | src/main/server/__tests__/mcp.ts | 121 | mocks.jsonRPCClient.call.ctx.action.getRawActions.mockReset() | CODE |
| CRITICAL⚡ | src/main/server/__tests__/mcp.ts | 122 | mocks.jsonRPCClient.call.ctx.action.executeAction.mockReset() | CODE |
| CRITICAL⚡ | src/main/server/__tests__/mcp.ts | 123 | mocks.jsonRPCClient.call.ctx.setting.showSettingPanel.mockReset() | CODE |
| CRITICAL⚡ | src/main/server/__tests__/mcp.ts | 124 | mocks.jsonRPCClient.call.ctx.setting.getSchemaForMcp.mockReset() | CODE |
| CRITICAL⚡ | src/main/server/__tests__/mcp.ts | 125 | mocks.jsonRPCClient.call.ctx.setting.getSettingsForMcp.mockReset() | CODE |
| CRITICAL | src/main/server/__tests__/mcp.ts | 151 | mocks.jsonRPCClient.call.ctx.action.getRawActions.mockResolvedValue([ | CODE |
| CRITICAL | src/main/server/__tests__/mcp.ts | 180 | mocks.jsonRPCClient.call.ctx.action.executeAction.mockResolvedValueOnce({ ok: true }) | CODE |
| CRITICAL | src/main/server/__tests__/mcp.ts | 185 | mocks.jsonRPCClient.call.ctx.action.executeAction.mockRejectedValueOnce(new Error('bad action')) | CODE |
| CRITICAL | src/main/server/__tests__/mcp.ts | 225 | mocks.jsonRPCClient.call.ctx.setting.getSchemaForMcp.mockResolvedValue({ | CODE |
| CRITICAL | src/main/server/__tests__/mcp.ts | 249 | mocks.jsonRPCClient.call.ctx.setting.getSettingsForMcp.mockResolvedValue({ theme: 'dark', readonly: true }) | CODE |
| CRITICAL | src/main/server/__tests__/mcp.ts | 263 | mocks.jsonRPCClient.call.ctx.setting.getSchemaForMcp.mockResolvedValue({ properties: {} }) | CODE |
| CRITICAL | src/main/server/__tests__/index.ts | 1208 | const engineGuard = mocks.socketEmitter.engine.use.mock.calls.at(-1)![0] | CODE |
| CRITICAL⚡ | src/main/__tests__/app.ts | 349 | mocks.jsonRPCClient.call.ctx.base.triggerDeepLinkOpen.mockClear() | CODE |
| CRITICAL⚡ | src/main/__tests__/app.ts | 350 | mocks.jsonRPCClient.call.ctx.doc.switchDocByPath.mockClear() | CODE |
| CRITICAL⚡ | src/main/__tests__/app.ts | 351 | mocks.jsonRPCClient.call.ctx.setting.showSettingPanel.mockClear() | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/renderer/plugins/markdown-macro.ts | 475 | function buildGlobalMacroReplacement (settings: BuildInSettings) { | CODE |
| LOW | src/renderer/plugins/floating-editor.ts | 214 | function hasVisibleMonacoEscapeWidget () { | CODE |
| LOW | src/renderer/plugins/floating-editor.ts | 227 | function pausePreviewSyncForEditorScroll () { | CODE |
| LOW | src/renderer/plugins/floating-editor.ts | 696 | function highlightPreviewClickLine (e: MouseEvent) { | CODE |
| LOW | src/renderer/plugins/insert-table/index.ts | 15 | function buildTableCompletionItems (): SimpleCompletionItem[] | false { | CODE |
| LOW | src/renderer/others/premium.ts | 280 | async function refreshAndCheckLicenseStatus () { | CODE |
| LOW | src/renderer/others/extension.ts | 38 | export function getInstalledExtensionFileUrl (id: string, filename: string) { | CODE |
| LOW | src/renderer/others/extension.ts | 161 | export async function getRegistryExtensionVersions (id: string, registry: RegistryHostname = 'registry.npmjs.org'): Prom | CODE |
| LOW | src/renderer/components/ExtensionManager.vue | 376 | async function refreshInstalledExtensions () { | CODE |
| LOW | src/renderer/components/DefaultPreviewerRender.ce.vue | 247 | function updateMarkdownBodyMaxWidth () { | CODE |
| LOW | src/renderer/components/Layout.vue | 250 | function initContentRightSideResize (e: MouseEvent) { | CODE |
| LOW | src/renderer/support/api.ts | 606 | export async function abortExtensionInstallation (): Promise<any> { | CODE |
| LOW | src/renderer/services/editor.ts | 469 | export function tapMarkdownMonarchLanguage (tapper: (mdLanguage: any) => void) { | CODE |
| LOW | src/renderer/services/editor.ts | 478 | export function getMarkdownMonarchLanguage () { | CODE |
| LOW | src/renderer/services/editor.ts | 537 | export async function getAvailableCustomEditors (ctx: CustomEditorCtx): Promise<CustomEditor[]> { | CODE |
| LOW | src/renderer/services/export.ts | 429 | export async function printCurrentDocumentToPDF (opts?: PrintOpts, runtimeOptions: PrintPDFRuntimeOptions = {}): Promise | CODE |
| LOW | src/renderer/services/layout.ts | 131 | export function toggleEditorPreviewExclusive (exclusive?: boolean) { | CODE |
| LOW | src/main/helper.ts | 36 | function newStreamReadableFromReadableStream (readableStream: ReadableStream, options: any = {}) { | CODE |
| LOW | src/main/server/__tests__/mcp.ts | 51 | StreamableHTTPServerTransport: vi.fn(function StreamableHTTPServerTransport (this: any) { | CODE |
| LOW | src/share/misc.ts | 38 | export function getDefaultApplicationAccelerators (platform: NodeJS.Platform, lang: Language = 'en') { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/renderer/directives/placeholder.ts | 4 | app.directive('placeholder', { | CODE |
| LOW | src/renderer/directives/__tests__/directives.ts | 52 | 'placeholder', | CODE |
| LOW | src/renderer/directives/__tests__/directives.ts | 106 | const directive = installOne(placeholder, 'placeholder') | CODE |
| LOW | src/renderer/components/ExtensionManager.vue | 50 | <div v-if="!registryExtensions" class="placeholder">{{ $t('loading') }}</div> | CODE |
| LOW | src/renderer/components/ExtensionManager.vue | 51 | <div v-else-if="registryExtensions.length === 0 && installedExtensions?.length === 0" class="placeholder">{{ | CODE |
| LOW | src/renderer/components/ExtensionManager.vue | 172 | <div v-if="!iframeLoaded" class="placeholder">{{ $t('loading') }}</div> | CODE |
| LOW | src/renderer/components/ExtensionManager.vue | 183 | <div v-else class="placeholder">{{ $t('loading') }}</div> | CODE |
| LOW | src/renderer/components/ExtensionManager.vue | 187 | <div v-else class="placeholder">{{ $t('extension.extension-manager') }}</div> | CODE |
| LOW | src/renderer/components/QuickFilter.vue | 18 | :placeholder="placeholder" | CODE |
| LOW | src/renderer/components/__tests__/basic-components.ts | 242 | expect(input.element.getAttribute('placeholder')).toBe('enter name') | CODE |
| LOW | src/share/i18n/languages/zh-TW.ts | 86 | 'placeholder': '請輸入激活代碼', | CODE |
| LOW | src/share/i18n/languages/zh-CN.ts | 86 | 'placeholder': '请输入激活码', | CODE |
| LOW | src/share/i18n/languages/en.ts | 85 | 'placeholder': 'Enter license', | CODE |
| LOW | src/share/i18n/languages/ru.ts | 86 | 'placeholder': 'Введите лицензию', | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/md/markmap.md | 41 | + PrismJS | COMMENT |
| LOW | test/md/code-features.md | 181 | // Line 3 | COMMENT |
| LOW | src/renderer/plugins/editor-md-list.ts | 141 | COMMENT | |
| LOW | src/renderer/others/fuzzy-match.ts | 1 | // https://github.com/forrestthewoods/lib_fts/blob/master/code/fts_fuzzy_match.js | COMMENT |
| LOW | src/renderer/services/export.ts | 241 | ${codeBlockAssets} | COMMENT |
| LOW | src/main/server/index.ts | 461 | } | COMMENT |