English | 简体中文
Wenmai is a local research and writing workspace. File your sources in a knowledge base, select one or more to work with, and draft an article with Codex or Claude. Review and finalize the article, then export it with illustrations as a PDF or an offline HTML file.
Use Node.js 22.12 or later. The repository’s .nvmrc pins the recommended version. Place open-context-forge-vault-maintainer and open-context-forge-tech-article-writer next to this repository, or point OCF_MAINTAINER_ROOT and OCF_WRITER_ROOT to their locations. Sign in to Codex or Claude CLI on your device before using AI Writing.
npm install
npm run devOpen the local Wenmai workspace. Choose English under Settings → Appearance → Language. The workspace header also has a language switch.
Follow the walkthrough with two English-language notes from a fictional neighborhood library. Download the lending log and the volunteer handover to try it yourself.
Open Sources and choose Import sources. Drop in Markdown, HTML, plain text, or ZIP files. A new workspace files them automatically. When filing is complete, the items show Filed under All sources. With a manual import rule, file the items from To organize.
Open Knowledge Base → Browse and select an imported source. The reader shows the saved source text and its details. You can also connect an existing Obsidian folder from Settings.
Return to Sources, select your filed items, and click Write article from selected sources. The selected sources go into the article’s conversation. Choose an assistant profile and send your request from AI Writing. Open outline.md or article.md from the conversation to review it, or use the review action in the left pane. When the draft is ready, choose Replace article text.
Check the title and article text, then choose Finalize → Go to export. To add an illustration, upload a PNG, JPEG, or WebP in Image library and select it in Export preview. Download HTML saves a file you can open offline. Save as PDF opens the browser’s print dialog, where you can save the document as a PDF.
- The built-in knowledge base lives under
~/Library/Application Support/Open Context Forge/vaults/defaulton macOS. SetOCF_DATA_DIRto use a separate data directory. - Smart summaries use the local Claude CLI and
open-context-article-reader. SetOCF_READER_ROOTif that tool is in a different directory. - The walkthrough used vault-maintainer commit
052cdde. If your sibling checkout uses session-based filing locks and imports keep waiting, setOCF_MAINTAINER_ROOTto a separate checkout of the walkthrough version. - For development checks, run
npm test,npm run typecheck,npm run build, andnpm run test:e2e. The browser tests use an installed Chrome and temporary workspace data.




