Map of Content for the KB legal knowledgebase subproject (13 notes). KB is a separate Bun + React + Anthropic SDK app at KB/ in the repo. Single-tenant, local-dev tool.

Start here

KB Overview — what KB is and where it runs. KB Architecture — server, frontend, content modules, Anthropic SDK wiring.

Architecture

Content modules

  • KB Content Index — every legal article with one-line summary; flagged “10 rendered vs 29 advertised” mismatch and 11 unused draft modules
  • KB GDPR Articles — articles 6, 13/14, 30, overview
  • KB Swedish Law — dataskyddslagen + bolagsverket modules
  • KB B2B Enrichment — data minimization, legitimate interest, Art.14 obligations, retention; 5 of these have a broken from "../../types" import
  • KB IMY Decisions — enforcement records
  • KB Chat FlowuseChat + Anthropic SDK; flagged server claude-opus-4-5 vs client claude-opus-4-6 model mismatch and synthetic SSE streaming
  • KB SearchuseSearch + fuse.js; does not index article body
  • KB Credibility ScoringKB/src/lib/credibility.ts

UI

  • KB UI Components — ChatPanel, ArticleViewer, Sidebar, TableOfContents, SourceBadge
  • KB Settings — flagged false claim “keys never transmitted to our servers” (they transit the local Bun server as headers)

Compliance / disclaimer

Verified bugs

See Dashboard. KB has the most reported bugs of any area: model mismatch, 5 broken imports (from "../../types"), false-secret claim in settings, fake streaming, fuse.js scope.

See also