PandaWiki 是一款 AI 大模型驱动的开源知识库搭建系统,帮助你快速构建智能化的 产品文档、技术文档、FAQ、博客系统,借助大模型的力量为你提供 AI 创作、AI 问答、AI 搜索等能力。
This report summarizes scanner evidence for chaitin/PandaWiki, a TypeScript project with 10,439 GitHub stars. SynthScan examined 177,202 lines of code across 1152 source files, recording 70 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 0.6 (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? 56 finding(s).
Are imports declared and package/API names verified? 11 finding(s).
Are wrappers, guards, and repeated structures necessary? 8 finding(s).
Which changes need focused human review? 70 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 70 distinct pattern matches across 6 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 | web/app/next.config.ts | 81 | // For all available options, see: | COMMENT |
| LOW | web/app/src/components/QaModal/AiQaContent.tsx | 301 | COMMENT | |
| LOW | web/app/src/components/QaModal/SearchDocContent.tsx | 101 | // if (value.trim().length > 0) { | COMMENT |
| LOW | web/app/src/request/httpClient.ts | 281 | redirectToLogin(); | COMMENT |
| LOW | web/app/src/request/pro/httpClient.ts | 281 | redirectToLogin(); | COMMENT |
| LOW | web/app/src/views/widget/AiQaContent.tsx | 301 | // const filtered = mockFuzzySuggestions | COMMENT |
| LOW | web/app/src/views/widget/SearchDocContent.tsx | 101 | // if (value.trim().length > 0) { | COMMENT |
| LOW | web/admin/src/utils/getBasename.ts | 61 | }); | COMMENT |
| LOW | web/admin/src/constant/enums.tsx | 361 | modelDocumentUrl: 'https://developer.qiniu.com/aitokenapi', | COMMENT |
| LOW | web/admin/src/constant/enums.tsx | 381 | // modelDocumentUrl: '', | COMMENT |
| LOW | web/admin/src/constant/enums.tsx | 441 | customHeader: false, | COMMENT |
| LOW | web/admin/src/constant/enums.tsx | 461 | // cn: 'PH8大模型开放平台', | COMMENT |
| LOW | web/admin/src/constant/enums.tsx | 481 | // cn: 'Groq', | COMMENT |
| LOW | …n/src/pages/document/component/EditorCollaboration.tsx | 1 | // import { V1NodeDetailResp } from '@/request/types'; | COMMENT |
| LOW | …n/src/pages/document/component/EditorCollaboration.tsx | 21 | // const editorRef = useTiptap({ | COMMENT |
| LOW | …n/src/pages/document/component/EditorCollaboration.tsx | 41 | // useEffect(() => { | COMMENT |
| LOW | web/admin/src/pages/setting/component/AddRole.tsx | 161 | pagination={false} | COMMENT |
| LOW | web/packages/ui/src/footer/index.tsx | 461 | COMMENT | |
| LOW | backend/handler/v1/knowledge_base.go | 161 | COMMENT | |
| LOW | backend/handler/v1/auth.go | 41 | } | COMMENT |
| LOW | backend/handler/v1/auth.go | 101 | return h.NewResponseWithData(c, nil) | COMMENT |
| LOW | backend/handler/v1/nav.go | 41 | COMMENT | |
| LOW | backend/handler/v1/nav.go | 101 | COMMENT | |
| LOW | backend/handler/v1/nav.go | 121 | return h.NewResponseWithError(c, "validate request params failed", err) | COMMENT |
| LOW | backend/handler/v1/app.go | 41 | group.DELETE("", h.DeleteApp, h.auth.ValidateKBUserPerm(consts.UserKBPermissionFullControl)) | COMMENT |
| LOW | backend/handler/v1/app.go | 81 | COMMENT | |
| LOW | backend/handler/v1/stat.go | 41 | group.GET("/referer_hosts", h.StatRefererHosts) | COMMENT |
| LOW | backend/handler/v1/stat.go | 141 | } | COMMENT |
| LOW | backend/handler/v1/stat.go | 201 | COMMENT | |
| LOW | backend/handler/v1/stat.go | 241 | // GetInstantCount get instant count | COMMENT |
| LOW | backend/handler/v1/stat.go | 261 | COMMENT | |
| LOW | backend/handler/v1/kb_user.go | 101 | } | COMMENT |
| LOW | backend/handler/v1/node.go | 61 | group.GET("/permission", h.NodePermission) | COMMENT |
| LOW | backend/handler/v1/node.go | 101 | } | COMMENT |
| LOW | backend/handler/v1/node.go | 161 | } | COMMENT |
| LOW | backend/handler/v1/node.go | 181 | } | COMMENT |
| LOW | backend/handler/v1/node.go | 241 | } | COMMENT |
| LOW | backend/handler/v1/node.go | 301 | } | COMMENT |
| LOW | backend/handler/v1/node.go | 321 | } | COMMENT |
| LOW | backend/handler/v1/node.go | 441 | nodes, err := h.usecase.GetRecommendNodeList(ctx, &req) | COMMENT |
| LOW | backend/handler/v1/node.go | 501 | return h.NewResponseWithData(c, release) | COMMENT |
| LOW | backend/handler/share/auth.go | 41 | share := e.Group("share/v1/auth", shareAuthMiddleware.CheckForbidden) | COMMENT |
| LOW | backend/handler/share/auth.go | 81 | // AuthLoginSimple 简单口令登录 | COMMENT |
| LOW | backend/handler/share/auth.go | 141 | return h.NewResponseWithData(c, nil) | COMMENT |
| LOW | backend/handler/share/openapi.go | 81 | } | COMMENT |
| LOW | backend/handler/share/chat.go | 61 | share.POST("/search", h.ChatSearch, h.ShareAuthMiddleware.Authorize) | COMMENT |
| LOW | backend/handler/share/chat.go | 141 | COMMENT | |
| LOW | backend/handler/share/chat.go | 221 | return err | COMMENT |
| LOW | backend/handler/share/wechat.go | 81 | COMMENT | |
| LOW | backend/handler/share/node.go | 61 | return h.NewResponseWithData(c, nodes) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | backend/pkg/bot/feishu/stream.go | 99 | resp, err := c.client.Cardkit.V1.Card.Create(ctx, req) | CODE |
| CRITICAL | backend/pkg/bot/feishu/stream.go | 207 | updateResp, err := c.client.Cardkit.V1.CardElement.Content(ctx, updateReq) | CODE |
| CRITICAL | backend/pkg/bot/lark/client.go | 164 | resp, err := c.client.Cardkit.V1.Card.Create(ctx, req) | CODE |
| CRITICAL | backend/pkg/bot/lark/client.go | 265 | updateResp, err := c.client.Cardkit.V1.CardElement.Content(ctx, updateReq) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …Modal/components/config/NavDocConfig/AddNavContent.tsx | 58 | // ─── 单个导航分组 Card ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …Modal/components/config/NavDocConfig/AddNavContent.tsx | 136 | // ─── 主组件 ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …in/src/pages/setting/component/AddRecommendContent.tsx | 179 | // ─── 主组件 ─────────────────────────────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …s/CustomModal/components/config/BannerConfig/index.tsx | 216 | name='placeholder' | CODE |
| LOW | …ges/setting/component/CardRobot/WebComponent/index.tsx | 561 | name='placeholder' | CODE |
| LOW | backend/docs/docs.go | 5781 | "placeholder": { | CODE |
| LOW | backend/docs/docs.go | 8557 | "placeholder": { | CODE |
| LOW | backend/docs/swagger.json | 5774 | "placeholder": { | CODE |
| LOW | backend/docs/swagger.json | 8550 | "placeholder": { | CODE |
| LOW | backend/domain/app.go | 223 | Placeholder string `json:"placeholder"` | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | web/admin/src/components/TreeDragSortable/utilities.ts | 101 | function findParentWhichCanHaveChildren( | CODE |
| LOW | …Modal/components/config/NavDocConfig/AddNavContent.tsx | 26 | function normalizeNavGroupResponse( | CODE |
| LOW | …/admin/src/pages/release/components/VersionPublish.tsx | 25 | function normalizeNavGroupResponse( | CODE |
| LOW | …admin/src/pages/document/component/RagErrorReStart.tsx | 16 | function normalizeNavGroupResponse( | CODE |
| LOW | …in/src/pages/setting/component/AddRecommendContent.tsx | 19 | function normalizeNavGroupResponse( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | PROJECT_STRUCTURE.md | 91 | └── rag/ # RAG (Retrieval-Augmented Generation) 相关 SDK | CODE |