by kingsanalog
GmKing: A lightweight schematic editor built for quick drawing.
GmKing
Draw electronic circuits with connected wires, editable symbols, labels, notes, Undo/Redo, and SVG/PNG clipboard export.
- Web editor:
apps/web; browser-local storage and JSON import/export. - Embeddable library:
packages/schematic; API and embedding. - Obsidian plugin:
apps/obsidian; desktop only, Obsidian 1.13.4+.
Run
Node.js 22.13+ and npm 10+:
npm ci
npm run dev
Open http://127.0.0.1:8001. After library changes, run npm run build:lib and reload. npm run build builds all three packages; npm run typecheck, npm test, and npm run test:browser verify them. The browser check needs Chrome/Chromium or Edge.
npm run lint runs the official Obsidian ESLint rules across the workspace. Outstanding findings are reported; lint currently runs as an advisory CI step.
Obsidian
Build with npm run build. Copy main.js, styles.css, and manifest.json from apps/obsidian/dist into <vault>/.obsidian/plugins/schematic-editor/, then enable GmKing in Community plugins. Run GmKing: Insert schematic in the command palette; edit the inserted block in Live Preview. Circuit data stays in the note's JSON code block.
Hosting and data
Host apps/web/dist on a static server. Web documents stay in that browser; export JSON for backups or transfer. Web formula rendering loads MathJax from jsDelivr and needs a network connection. The Obsidian plugin uses Obsidian's rendering APIs. Clipboard features depend on host permissions; Web clipboard access generally needs HTTPS or localhost.
In Options, Language switches the editor between English (default) and Simplified Chinese. Color mode follows the system by default and can be set to Light or Dark. These preferences are stored in this browser's local storage and are shared with the bundled manual opened by Help. They are outside the schematic document. Options also contains the symbol template setting.
MIT © 2026 RarityBrown. Dependencies retain their own licenses; see third-party notices.
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.