跪拜 Guibai
← All articles
Frontend

AI-Coded Markdown Editor Puts PDF Markup, Git Commits, and a Terminal in One Window

By 修己xj ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

A developer with no front-end background just shipped a complete, open-source desktop editor by treating AI as the implementer and himself as the product owner. XJ-Editor is concrete evidence that the cost of creating custom, personal software has dropped to describing what you want, and its code is available for anyone to extend or learn from.

Summary

XJ-Editor is an open-source Windows desktop application whose code was written entirely by AI. The developer behind it is not a front-end engineer; he acted as product manager and tester, feeding requirements to an AI that turned them into working Electron code. The tool's reason to exist is to stop the habitual window-switching that plagues Markdown writers: editing, previewing, converting, and embedding files like PDFs, Word, Excel, and PPT all happen inside one interface. Word, PPT, Excel, PDF, and EPUB files convert to Markdown locally via anydoc's WebAssembly, so nothing leaves the machine.

The editor also ships with built-in AI integrations for eight providers, including OpenAI, Claude, Gemini, DeepSeek, Kimi, Qwen, Zhipu, and Ollama, for in-place polishing, translation, and proofreading. A Git panel handles diffs, history, branches, stashes, and cloning, and can generate commit messages with AI. A built-in terminal supports multi-tab sessions and full-screen TUI programs. PDF markup is stored locally and travels with the file, and reading plus note-taking happens side by side in the same window.

This is not a plugin soup; the point is to lower friction enough that you actually commit, annotate, and convert instead of avoiding those tasks. The author explicitly positions it as a proof that when you're both the user and the author, AI collapses the barrier to building your own tools. The project is available for Windows from GitHub releases, and the code is open for others to fork or study.

Takeaways
— XJ-Editor's code is 100% generated by AI.
— The author is not a front-end developer; he only provided requirements and tested the app.
— The editor runs on Windows only and installs via an exe from GitHub releases.
— It supports editing and preview for Markdown, HTML, JSON, and plain text.
— Word, PPT, Excel, PDF, and EPUB files convert to Markdown locally using anydoc's WebAssembly.
— It can display images, PDFs, Word, Excel, PPT, and archives inline.
— Built-in AI presets cover OpenAI, Claude, Gemini, DeepSeek, Kimi, Qwen, Zhipu, and Ollama.
— PDF annotations (highlighting and notes) are stored locally with the document and travel with the file.
— The Git panel offers diff viewing, commit history, branching, stash, clone, and AI-generated commit messages.
— The built-in terminal supports multiple tabs, adjustable height, and full-screen TUI programs like vim and tmux.
Conclusions

When the person building a tool is also its daily user, the tolerances for friction are much sharper. XJ-Editor's feature set is the result of an author who was annoyed by exactly the switching costs that other editors ignore.

AI-generated code shifts the developer's job from implementation to requirement articulation and testing. The author's role as a product manager suggests that clear, iterative feedback is now the bottleneck, not syntax.

Lowering the friction of committing does change behavior. The author's claim that he actually commits now because the panel removes the terminal step is a lesson for any tooling: reducing cost of a frequent action is more effective than adding power.

Concepts & terms
anydoc
A document conversion library compiled to WebAssembly. It enables XJ-Editor to convert Word, PPT, Excel, PDF, and EPUB files into Markdown entirely on the local machine, without uploading files to a server.
local-first
A design approach where software stores data and performs processing on the user's own device rather than in the cloud. This gives users full control, offline access, and privacy, and is the reason XJ-Editor's PDF annotations and documents stay on your hard drive.
Source: juejin.cn ↗ Google Translate ↗ Backup ↗