
LibKa
io.github.aivigator-ai由 GitHub 账号 aivigator-ai 发布v2.0.2更新于 Oct 30, 2026
One LibKa Markdown file to web pages, PDFs, slides and Word files, each checked and signed.
概览
LibKa MCP 服务器让助手列出并说明 LibKa Markdown 区块、检查文档,并将其构建为经过检查与签名的网页、PDF、幻灯片和 Word 输出。
- 可以做什么
- 列出并说明 35 种 LibKa Markdown 区块类型及其语法与规则
- 检查 LibKa Markdown 文档中的问题,并按文件与行号报告
- 按文档 front matter 的要求构建输出:网页、A4 PDF、16:9 幻灯片和 Word 文件
- 在真实浏览器中执行无障碍检查,生成签名的检查清单和 WCAG 2.2 / EN 301 549 符合性报告
- 适用场景
- 适合用 LibKa Markdown 编写手册、指南、政策、报告或演示文稿时使用,让助手起草内容、校验语法并运行构建与无障碍检查,无需离开对话。
- 运行要求
- 以本地 stdio 进程运行,来自 npm 包 @libka/mcp。构建与检查需要 Node.js 22.18 或更高版本以及 Google Chrome;PDF/UA-1 验证还需要 Java 21 和 veraPDF。仅在 Windows 上开发和测试,macOS 未测试。
安装
在 SourceWeft 中
- 打开 控制台中的 LibKa,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
LibKa Design Platform
[check] [Licence: Apache-2.0] [Node.js 22.18 or newer]
Write a document once in LibKa Markdown. Get a web page, an A4 PDF, 16:9 slides and an editable Word file, each checked for accessibility, with a signed record of what was checked.
LibKa is a design system (W3C DTCG design tokens) and a document platform. You write one file in LibKa Markdown, Markdown extended with LibKa blocks: steps, callouts, tables, charts, diagrams, timelines, comparisons, release notes and more (35 block types in all). The build renders the outputs the document asks for. Guard then checks each one, the pages in a real browser, and signs a manifest of the checks for the outputs that pass. LibKa Studio lets anyone write the same documents visually, without touching Markdown.
- Website: https://libka.aivigator.ai/
- Try LibKa Studio in your browser: https://libka-studio.aivigator.ai/
- Documentation:
docs/, starting with getting started and the block catalog
Status: version 2.0.2. Developed and tested on Windows; CI runs the full test suite on Linux (Ubuntu) and the health check on Windows; macOS is not tested.
Why LibKa
Markdown publishing tools already turn one source into web pages, PDFs and slides. LibKa's difference is that it checks every output and says exactly what it checked:
- The rules that can be automated are enforced; the rest is listed for a person: blocks carry their accessibility rules (an image cannot go in without alternative text), the build stops on problems with
file:linemessages, Guard measures the rendered result in Chrome, not the source, and the conformance report names what a person still has to review. - The PDF is repaired and validated: Chrome's tagged PDFs are repaired for PDF/UA-1 and, when Java and veraPDF are installed, validated by veraPDF, the PDF Association's reference validator, on every rule a machine can check (the rest of PDF/UA, such as a meaningful reading order, needs a person).
- Every output gets a record: a signed manifest of the checks and a WCAG 2.2 / EN 301 549 conformance report per build.
- A design system, not a theme: colours, type and spacing come from DTCG tokens whose contrast the token build gates, in light, dark and high contrast.
- Visual editing for people who never touch Markdown, with the page and Word checks live in LibKa Studio, while the LibKa Markdown stays the single source.
LibKa is a good fit for manuals, guides, policies, reports and decks that must be accessible and consistent. It is not a page-layout tool: you choose blocks, not positions.
LibKa Studio
An installable web app that keeps documents on your own device: a visual editor, a source editor, or both side by side; a live preview of the web page, phone, A4 and slides; the page and Word checks while you type, with one-click fixes where a fix is safe and plain-word explanations otherwise; versions, a command palette, English and Czech, light, dark and high contrast, offline once opened. The Studio has its own accessibility self-audit (docs/acr/studio.md), tested with the keyboard alone, NVDA, forced colours, reflow and touch emulation.
Run it locally: npx -y @libka/cli studio, and open the address it prints.
Quick start
Start a project:
The starter has an example document, npm run check (the source only, in a couple of seconds, without a browser), a GitHub Actions workflow that builds and checks every push and pull request with the LibKa Guard action, marking a problem in the source on its line and a finding in an output on its file, and a README of next steps. A document chooses its outputs in its front matter, outputs: [web, pdf, deck, docx]; without that line it gets the web page and the PDF. Each project signs with its own key, made by its first build in .libka/ and trusted in .libka/trusted-keys.json (signing keys).
From a clone of this repository:
Writing documents
A document is written in LibKa Markdown: Markdown with front matter and LibKa blocks. The file stays .md and opens in any text editor; only LibKa renders the blocks, other Markdown viewers show them as plain ::: lines.
examples/manual/guide.mdis a short example that explains the syntax;examples/open-source-guide/guide.mdis a real, long guide: two of GitHub's Open Source Guides (CC BY 4.0) as a manual and a deck.- Every block is defined once, in
packages/blocks: syntax, attributes, a JSON schema, accessibility rules, anti-patterns, and what the web page, PDF, slides and Word file do with it. - Slides come from the same file: every
##and###is a slide,:::notesholds speaker notes, and overfull slides are shrunk a little or continued. - Czech documents (
lang: cs) get Czech labels and Czech typography.
What every output gets
- Checks in a real browser: axe-core with the WCAG 2.2 A and AA rules; the contrast of every visible text against its real background, 4.5:1 and 7:1 when the reader asks for more contrast; LibKa's structure rules; a page that fits a 320-pixel-wide screen without scrolling sideways (reflow); slides that must fit; a strict Content Security Policy.
- A PDF validated against PDF/UA-1 (ISO 14289-1) by veraPDF: every rule a machine can check, when Java and veraPDF are installed (otherwise the manifest, the conformance report and
verifysay the PDF was not validated). - A Word file with real structure: headings, lists, footnotes, tables whose header row repeats, pictures with alternative text, the document language; Guard checks its structure and contrast.
- A signed manifest: the source, the LibKa version, the hashes of every output and every check result. It proves the files are the ones that were checked and which checks ran; what it does not prove is written down too.
- A conformance report listing all 55 WCAG 2.2 A/AA success criteria with their EN 301 549 clauses: checked automatically, failed, needs a person, or not applicable.
- Byte-identical builds: the same source gives the same web page and Word file, and the same PDF with the same Chrome version.
What LibKa does not claim. Automated checks cover part of accessibility. An output that passes is "checked by these tests", not "accessible" or "compliant": the conformance report says what a person still has to review. The draft report for LibKa's outputs is docs/acr/libka-outputs.md.
AI authoring
- Agent Skill in
.claude/skills/libka-author/: the workflow, and the exact syntax of every block (generated from the registry). - MCP server
@libka/mcp(inpackages/mcp): list and describe blocks, check a document, build it. - For Claude Code, both come as one plugin:
/plugin marketplace add aivigator-ai/open-libka-design-platform, then/plugin install libka@libka. Claude Desktop, claude.ai, the API and other MCP clients:docs/ai-tools.md. - Whatever an AI writes goes through the same checks. Content the document declares as AI-written (an AI summary with its reviewer, an AI badge) is listed in the signed manifest.
Repository map
Contributing
Issues and pull requests are welcome: read CONTRIBUTING.md first; AI coding agents start from AGENTS.md. Questions and ideas go to Discussions (SUPPORT.md says what to expect); new blocks and features are listed in CHANGELOG.md when they ship. Two things to know up front:
- This repository is published from the maintainers' development repository. An accepted pull request is applied there and comes back with the next release, with you credited as co-author of the release commit and thanked in the changelog.
- Sign off every commit (
git commit -s). TheSigned-off-byline certifies the Developer Certificate of Origin: that you may contribute the change under the project's licence. A check on the pull request asks for it; there is no separate agreement to sign.
check.py runs everything a pull request must pass: the Python tests, the strict TypeScript type check, every test (Chrome tests included), the token build and a check that no generated file is stale.
Licence
Apache License 2.0 (LICENSE); third-party material is listed in NOTICE. The fonts are under the SIL Open Font License. LibKa, LibKa Design Platform and LibKa Studio are the publisher's product names, which the licence does not grant: a modified version you publish needs its own name (NOTICE).
Created by aivigator.ai
来源:README.md,提交 068b90f
工具
0版本历史
3- v2.0.2最新Oct 29, 2026
- v2.0.1Oct 13, 2026
- v2.0.0Oct 12, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分