Turn your Notion workspace into a fast, customizable website. Built with Next.js + Notion API, with multi-platform deployment and no self-hosted server required.
This report summarizes scanner evidence for notionnext-org/NotionNext, a JavaScript project with 11,895 GitHub stars. SynthScan examined 186,608 lines of code across 1730 source files, recording 104 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 0.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? 87 finding(s).
Are imports declared and package/API names verified? 12 finding(s).
Are wrappers, guards, and repeated structures necessary? 55 finding(s).
Which changes need focused human review? 104 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 104 distinct pattern matches across 9 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 | next.config.js | 133 | function isVersionedPageBlockCacheKey(key) { | CODE |
| LOW | next.config.js | 138 | function pruneTransientNotionDataCache(dataDir) { | CODE |
| LOW | tools/notionnext-content-mcp/server.js | 847 | function buildPropertiesFromSchema(draft, dataSource) { | CODE |
| LOW | tools/notionnext-content-mcp/server.js | 1118 | function getPageParentDataSourceId(page) { | CODE |
| LOW | tools/notionnext-content-mcp/server.js | 1122 | function assertPageInsideAllowedDataSource(page) { | CODE |
| LOW | docs/developer/themes/CLAUDE.md | 648 | function getOrCreateTerminalSession() { | CODE |
| LOW | docs/developer/themes/CLAUDE.md | 648 | function getOrCreateTerminalSession() { | CODE |
| LOW | components/GoogleAdsense.js | 40 | function getNodesWithAdsByGoogleClass(node) { | CODE |
| LOW | __tests__/lib/cache/file_lock.test.js | 13 | async function loadFileLockWithTempCache() { | CODE |
| LOW | scripts/final-validation.js | 29 | function validateOptimizationTasks() { | CODE |
| LOW | lib/middleware/security.js | 254 | export function securityHeadersMiddleware() { | CODE |
| LOW⚡ | lib/cache/cache_manager.js | 59 | export async function getOrSetDataWithCache(key, getDataFunction, ...getDataArgs) { | CODE |
| LOW⚡ | lib/cache/cache_manager.js | 63 | export async function getOrSetDataWithCustomCache( | CODE |
| LOW⚡ | lib/cache/cache_manager.js | 63 | export async function getOrSetDataWithCustomCache( | CODE |
| LOW | lib/config/env-validation.js | 121 | export function validateEnvironmentVariables() { | CODE |
| LOW | lib/server/revalidation.js | 8 | export function normalizeRevalidationPath(value) { | CODE |
| LOW | lib/utils/rss.js | 14 | export function shouldGenerateRssForLocale({ | CODE |
| LOW | lib/utils/articleCopyright.js | 1 | export function resolveArticleCopyrightText({ post, locale, mode }) { | CODE |
| LOW | lib/utils/post.js | 92 | export function checkSlugHasMorThanTwoSlash(row) { | CODE |
| LOW | lib/utils/post.js | 205 | async function getOriginalityProofManifest(post, siteUrl) { | CODE |
| LOW | lib/utils/index.js | 68 | export function convertUrlStartWithOneSlash(str) { | CODE |
| LOW | lib/utils/originalityProof.js | 18 | export function isOriginalityProofEnabled(globalEnabled, post = {}) { | CODE |
| LOW | lib/utils/originalityProof.js | 92 | export function applyOriginalityProofRecord(proof, record) { | CODE |
| LOW | lib/utils/originalityProof.js | 104 | export function formatOriginalityProofText(proof = {}) { | CODE |
| LOW | lib/utils/pinnedPosts.js | 23 | export function sortPinnedPostsByLatestUpdate(posts, topTag) { | CODE |
| LOW | lib/utils/stripTransientUrlParams.js | 8 | export function stripTransientQueryParamsFromUrl(fullUrl) { | CODE |
| LOW | lib/utils/stripTransientUrlParams.js | 36 | export function stripTransientQueryParamsFromAsPath(asPath) { | CODE |
| LOW | lib/utils/originalityProofManifest.js | 7 | export function isOriginalityProofAutoManifestEnabled(value) { | CODE |
| LOW | lib/utils/originalityProofManifest.js | 42 | export function createOriginalityProofManifest(proofs = []) { | CODE |
| LOW | lib/utils/originalityProofManifest.js | 69 | export function findOriginalityProofManifestRecord( | CODE |
| LOW | lib/utils/originalityProofManifest.js | 84 | export function recordOriginalityProofManifest( | CODE |
| LOW | lib/notion/galleryVisibilityClassName.js | 1 | export function galleryVisibilityClassName(collectionView) { | CODE |
| LOW | lib/site/typedCollections.js | 15 | export function sortTypedPagesByPublishDate(items) { | CODE |
| LOW | lib/db/SiteDataApi.js | 286 | function pruneUnusedCollectionRecords(blockMap) { | CODE |
| LOW | lib/db/notion/memberDataSource.js | 117 | export async function fetchMembersFromOfficialAPI({ | CODE |
| LOW | lib/db/notion/getPageProperties.js | 259 | function shouldUseMappedCategorySlug(properties, NOTION_CONFIG) { | CODE |
| LOW | lib/db/notion/getPostBlocks.js | 30 | export function normalizePageBlockCacheVersion(cacheVersion) { | CODE |
| LOW | lib/db/notion/getPostBlocks.js | 223 | export function preferStablePdfSignedUrls(recordMap) { | CODE |
| LOW | lib/db/notion/getPostBlocks.js | 279 | async function addHtmlArtifactSignedUrls(recordMap) { | CODE |
| LOW | lib/db/notion/filterCollectionViewData.js | 54 | function normalizeCollectionQueryResults(collectionQuery) { | CODE |
| LOW | lib/db/notion/filterCollectionViewData.js | 68 | function getInheritedCollectionViewFilters(blockMap) { | CODE |
| LOW | lib/db/notion/normalizeExternalMediaBlock.js | 1 | export function normalizeExternalMediaBlock(blockValue) { | CODE |
| LOW | lib/db/notion/getNotionConfig.js | 21 | export async function getConfigMapFromConfigPage(allPages) { | CODE |
| LOW | themes/fuwari/utils/commentEnabled.js | 9 | export function isCommentServiceConfigured() { | CODE |
| LOW | themes/endspace/components/searchHighlight.js | 10 | export default async function replaceEndspaceSearchResult({ doms, search, target }) { | CODE |
| LOW | themes/claude/components/NavBar.js | 39 | function getOrCreateTerminalSession() { | CODE |
| LOW | themes/claude/components/NavBar.js | 39 | function getOrCreateTerminalSession() { | CODE |
| LOW | themes/heo/components/InfoCard.js | 11 | export function normalizeInfoCardGreetings(value) { | CODE |
| LOW | themes/heo/components/InfoCard.js | 41 | export function shouldUseInfoCardBlurAvatar(isSlugPage, avatarBlurEnabled) { | CODE |
| LOW | themes/gitbook/components/NavPostList.js | 152 | function getDefaultOpenIndexByPath(categoryFolders, path) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | next.config.js | 361 | // key: 'Strict-Transport-Security', | COMMENT |
| LOW | next.config.js | 381 | // { key: 'Access-Control-Allow-Credentials', value: 'false' }, | COMMENT |
| LOW | next-env.d.ts | 1 | /// <reference types="next" /> | COMMENT |
| LOW | types/index.ts | 241 | // export * from './notion' | COMMENT |
| LOW | components/ValineComponent.js | 41 | // newComments.name = new Date() | COMMENT |
| LOW | components/PWA.js | 61 | }) | COMMENT |
| LOW | .github/workflows/codeql-analysis.yml | 1 | # For most projects, this workflow file will not need changing; you simply need | COMMENT |
| LOW | .github/workflows/codeql-analysis.yml | 61 | COMMENT | |
| LOW | lib/themeConsoleStyle.js | 61 | #${rootId} [class~="hover:bg-primary"]:hover, | COMMENT |
| LOW | lib/themeConsoleStyle.js | 81 | #${rootId} [class*="hover:text-indigo-"]:hover, | COMMENT |
| LOW | lib/plugins/busuanzi.js | 1 | /* eslint-disable */ | COMMENT |
| LOW | lib/plugins/mhchem.js | 101 | // | COMMENT |
| LOW | lib/plugins/mhchem.js | 121 | // buffer.rdt == arrow, script above, type | COMMENT |
| LOW | lib/plugins/mhchem.js | 181 | // | COMMENT |
| LOW | lib/db/SiteDataApi.js | 581 | // const limit = pLimit(10) | COMMENT |
| LOW | themes/proxio/components/Header.js | 41 | // // eslint-disable-next-line camelcase | COMMENT |
| LOW | themes/endspace/style.js | 301 | #theme-endspace #notion-article .notion, | COMMENT |
| LOW | themes/endspace/style.js | 321 | #theme-endspace #notion-article .notion-property-title, | COMMENT |
| LOW | themes/endspace/config.js | 61 | COMMENT | |
| LOW | themes/claude/style.js | 2241 | #theme-claude pre[class*='language-'] .token.cdata, | COMMENT |
| LOW | themes/claude/style.js | 2261 | #theme-claude pre[class*='language-'] .token.class-name, | COMMENT |
| LOW | themes/claude/style.js | 2281 | color: var(--claude-code-token-css-string) !important; | COMMENT |
| LOW | themes/claude/style.js | 2301 | #theme-claude pre[class*='language-'] .token.operator, | COMMENT |
| LOW | themes/xuhome/style.js | 121 | background-color: var(--xuhome-console-bg) !important; | COMMENT |
| LOW | themes/nav/components/SearchInput.js | 21 | if (keyword) { | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | public/themes/claude/github-markdown-css/index.html | 1069 | <pre><code>> This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet, | CODE |
| LOW | public/themes/claude/github-markdown-css/index.html | 1069 | <pre><code>> This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet, | CODE |
| LOW | public/themes/claude/github-markdown-css/index.html | 1080 | <pre><code>> This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet, | CODE |
| LOW | public/themes/claude/github-markdown-css/index.html | 1080 | <pre><code>> This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet, | CODE |
| LOW⚡ | public/themes/claude/github-markdown-css/index.html | 1188 | <pre><code>* Lorem ipsum dolor sit amet, consectetuer adipiscing elit. | CODE |
| LOW⚡ | public/themes/claude/github-markdown-css/index.html | 1188 | <pre><code>* Lorem ipsum dolor sit amet, consectetuer adipiscing elit. | CODE |
| LOW⚡ | public/themes/claude/github-markdown-css/index.html | 1197 | <pre><code>* Lorem ipsum dolor sit amet, consectetuer adipiscing elit. | CODE |
| LOW⚡ | public/themes/claude/github-markdown-css/index.html | 1197 | <pre><code>* Lorem ipsum dolor sit amet, consectetuer adipiscing elit. | CODE |
| LOW | public/themes/claude/github-markdown-css/index.html | 1238 | <pre><code>1. This is a list item with two paragraphs. Lorem ipsum dolor | CODE |
| LOW | public/themes/claude/github-markdown-css/index.html | 1256 | only required to indent the first line. Lorem ipsum dolor | CODE |
| LOW | __tests__/lib/requestSecurity.test.js | 91 | 'user@example.com', | CODE |
| LOW | __tests__/lib/utils/validation.test.js | 9 | 'user+tag@example.org', | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | __tests__/components/PWAInstaller.test.js | 40 | // Step 1: render with PWA disabled — triggers getRegistration() | COMMENT |
| LOW⚡ | __tests__/components/PWAInstaller.test.js | 46 | // Step 2: switch to enabled before getRegistration resolves | COMMENT |
| LOW⚡ | __tests__/components/PWAInstaller.test.js | 53 | // Step 3: resolve the pending getRegistration promise | COMMENT |
| LOW⚡ | .github/workflows/sync.yaml | 16 | # Step 1: run a standard checkout action | COMMENT |
| LOW⚡ | .github/workflows/sync.yaml | 20 | # Step 2: run the sync action | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | __tests__/components/PWAInstaller.test.js | 40 | // Step 1: render with PWA disabled — triggers getRegistration() | COMMENT |
| LOW⚡ | __tests__/components/PWAInstaller.test.js | 46 | // Step 2: switch to enabled before getRegistration resolves | COMMENT |
| LOW⚡ | __tests__/components/PWAInstaller.test.js | 53 | // Step 3: resolve the pending getRegistration promise | COMMENT |
| LOW⚡ | .github/workflows/sync.yaml | 16 | # Step 1: run a standard checkout action | COMMENT |
| LOW⚡ | .github/workflows/sync.yaml | 20 | # Step 2: run the sync action | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pushUrl.py | 45 | except Exception as e: | CODE |
| MEDIUM | pushUrl.py | 46 | print("An error occurred:", e) | CODE |
| LOW | pushUrl.py | 64 | except Exception as e: | CODE |
| MEDIUM | pushUrl.py | 65 | print("An error occurred:", e) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | lib/db/SiteDataApi.js | 788 | // ─── 工具函数 ───────────────────────────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | public/themes/claude/github-markdown-css/index.html | 1279 | <p>It's worth noting that it's possible to trigger an ordered list by | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/notionnext-content-mcp/server.js | 1763 | async function handleRequest(message) { | CODE |