EasyEDA Extension API Guide: Build Extensions and Let AI Drive Your PCB Design
10 min
- 1. What Is an EasyEDA Extension?
- 2. Where to Find Extensions and Documentation
- 3. How to Build Your First Extension
- 4. How to Call the Extension API
- 5. From Design to Manufacturing with JLCPCB
- FAQ about EasyEDA Extension API
- Conclusion on EasyEDA Extension API
Key Takeaways
- EasyEDA Pro ships with a full JavaScript extension API (SYS_*, DMT_*, SCH_*, PCB_* namespaces) that lets you place components, edit traces, run DRC, and export fabrication files.
- Extensions are packaged as .eext files: initialize with extension.json, write Pro API calls, build with npm, install through the Extension Manager, and publish to jlcext.com.
- Run API Gateway exposes the API over a local WebSocket bridge (ports 49620-49629), so AI coding tools like OpenCode can operate the editor with natural-language prompts.
- The full chain is AI agent → bridge server → Run API Gateway → EasyEDA Pro, and finished boards flow straight to JLCPCB prototyping, DFM checking, and SMT assembly.
EasyEDA Pro is more than a schematic and PCB editor. It ships with a full extension API that lets you drive the editor from JavaScript: place components, edit traces, run DRC, export manufacturing files, register menus and panels. On top of that, an official bridge extension lets AI coding tools such as OpenCode call the same API, so a single sentence in a chat window can operate your board.
Figure 1. EasyEDA Extension Marketplace-API
This guide walks through the whole chain in four steps: what an extension is, where to find the tooling, how to build your first extension, and how to call the API, including the AI workflow. At the end, we connect it all to JLCPCB prototyping and assembly, so the work leaves the editor and becomes hardware.
1. What Is an EasyEDA Extension?
An extension is a small program packaged as an .eext file and installed into EasyEDA Pro. It runs inside the editor and talks to it through the EasyEDA Pro Extension API. The API is organized by namespace, and knowing the map helps you scope a project before writing code:
| Namespace | Covers | Typical use |
|---|---|---|
| SYS_* | System services: menus, dialogs, files, storage, WebSocket, timers | Register top menus, persist settings, talk to external processes |
| DMT_* | Document tree: projects, folders, schematics, boards, panels | Walk the project structure, open or create documents |
| SCH_* | Schematic and symbols: primitives, nets, netlist, DRC | Batch-place parts, wire circuits, generate netlists |
| PCB_* | Board and footprint: traces, polygons, layers, DRC, DFM | Auto-routing bridges, DFM checks, fabrication output |
The public marketplace already shows what this looks like in practice. The JLCPCB Order DFM Checker validates a design against fabrication limits before ordering. The PCB Pricing Calculator quotes the board inside the editor. FreeRouting wires the board automatically, and tools like the Gerber Viewer and AI Assistant Kimi round out the list. Each of them is essentially a composition of API calls.
2. Where to Find Extensions and Documentation
Three entry points cover everything you need:
EasyEDA official site (easyeda.com). The Programs menu links to the EasyEDA Extension Marketplace and to OSHWHub, the open-source hardware platform.
Figure 2. EasyEDA's Programs menu: entry points for the Extension Marketplace and OSHWHub.
Extension marketplace (jlcext.com). Browse, install, and manage official and community extensions. The Run API Gateway extension used in Section 4 lives here, along with its full changelog and source notes.
Figure 3. The Run API Gateway page on the EasyEDA Extension Marketplace (jlcext.com).
Official API docs (prodocs.easyeda.com). Three pages matter most while coding: the Development Guide for setup, API Calls for invocation conventions, and API Reference for every class and method signature.
Figure 4. EasyEDA Pro documentation home: the API menu and the Extensions and API guide.
3. How to Build Your First Extension
The workflow is: initialize, write logic, build, install and debug, publish.
Figure 5. The How to Get Started developer guide, with the AI initialization prompt.
3.1 Initialize the project
Set up Node.js and scaffold the project. The one file that matters most is extension.json: it declares the name, version, entry point, menus, host compatibility, and license of your extension. There is no permissions field: network access is granted at runtime through Allow External Interaction. The docs cover every field, plus conventions for i18n, inline frames, and error handling. Two companion projects reduce boilerplate: easyeda-api-sdk (published as the pro-api-sdk) for call helpers and @jlceda/pro-api-types for TypeScript definitions.
3.2 Write the logic
In the entry script you call Pro APIs directly. Reading the active project, dropping a resistor onto the schematic, or running DRC and collecting violations are all documented in the API Reference. A useful habit: prototype the call sequence as plain function names first, then look each one up. Most extension ideas collapse into five or six API calls.
3.3 Build and install
bash Build the extension package npm install npm run build # output: ./build/dist/*.eext
Import the .eext through the extension manager in EasyEDA Pro, enable Allow External Interaction if the extension needs network access, and test inside the editor. The official Getting and Using Extensions guide walks through installation and enablement step by step. Keep the Interface Stabilization note in mind: some APIs are still evolving, so pin versions for anything you ship.
3.4 Publish
Follow the Upload Guide to submit to jlcext.com. Once approved, every EasyEDA user can install it. Open-source extensions also fit naturally into the OSHWHub community.
4. How to Call the Extension API
There are two paths: calling from inside the extension, and calling from outside the editor.
4.1 Inside the editor: direct Pro API calls
The extension runs in the editor process, so calls are synchronous or promise-based with full access to the open design. Common patterns: read project info, batch-edit primitive properties, run DRC and read the violation list, export a netlist or fabrication files. Invocation conventions live in the API Calls page; signatures live in the API Reference.
Figure 6. Calling Pro APIs in the editor via Settings > Extensions > Standalone Script.
4.2 Outside the editor: Run API Gateway
To call the API from an external process, the official Run API Gateway extension exposes a WebSocket API gateway inside EasyEDA Pro. It receives code requests, executes them in the editor, and returns results. Four mechanisms make the link usable in practice:
Figure 7. Extension enabled, bridge connected: Run API Gateway reports the live WebSocket port.
- Auto-connect: scans ports 49620-49629 on startup to find the bridge server;
- Handshake verification: validates service identity (easyeda-bridge) via HTTP /health and the WebSocket handshake;
- Auto-reconnect: heartbeat detection with automatic port re-scanning after a drop;
- Code execution: runs AI-issued code in the EDA environment and returns the output.
The full chain reads: AI agent → bridge server (Node.js) → Run API Gateway → EasyEDA Pro. The companion easyeda-api skill teaches the agent how to start the bridge, which APIs exist, and how to call them correctly.
4.3 Hands-on: connect an AI coding tool in five steps
bash Install OpenCode and the easyeda-api skill npm install -g opencode-ai npx clawhub@latest install easyeda-api --workdir "$HOME/.config/opencode" --dir skills
- Install Node.js 20.17 or newer (22 LTS recommended) and verify with
node -v. - Install OpenCode (command above) and launch it with
opencode. - Install the Run API Gateway extension in EasyEDA Pro from jlcext.com.
- In the extension manager, check Allow External Interaction and Show in Top Menu. The API Gateway menu appears at the top when loaded.
- In OpenCode, type "EasyEDA, start!". The agent starts the bridge, runs the /health check, completes the handshake, and reports the live editor state.
A good first request is read-only: ask for the window state, editor type, and whether a project is open. If the answer contains real editor data rather than theory, the chain works. From here you can ask the agent to inspect nets, tidy component attributes, or walk the document tree through the DMT and SCH API families.
Want to go further? The JLCPCB blog article AI PCB Design: From Prompt to PCB with EasyEDA Pro covers the full prompt-to-board workflow on this same toolchain: hardware prompting patterns, advanced automation recipes, and a troubleshooting table for the bridge connection.
5. From Design to Manufacturing with JLCPCB
Extensions pay off when they shorten the path from design to physical boards. Four integration points stand out:
- Quote while you design: the PCB Pricing Calculator estimates cost inside the editor, and finished designs upload to JLCPCB for prototyping and SMT assembly in the same flow.
- DFM before ordering: the JLCPCB Order DFM Checker reads your board data, validates it against JLCPCB process capabilities, and reports issues early. It is a textbook example of what the PCB_* API family enables.
- Supply chain in the loop: BOM data connects to LCSC for part availability and pricing; extensions can read device attributes and reconcile footprints in batch.
- Open-source iteration: publish extensions and designs on OSHWHub and iterate with the community.
FAQ about EasyEDA Extension API
Q: Is the EasyEDA extension API free to use?
Yes. The API documentation is public, extensions are free to build, and the marketplace distributes them at no cost. You only pay when you order hardware.
Q: Which EasyEDA Pro versions support extensions and the API?
Extensions run in EasyEDA Pro V2 and later, and the current Extension Manager sits under Advanced. Each extension declares the client range it supports in extension.json through engines.eda, so check that field before installing (see the extension.json reference). Run API Gateway also requires a recent desktop client; its manifest pins the minimum version.
Q: How stable is the API, and how do I handle breaking changes?
The API has its own major.minor.patch versioning, separate from the editor version. Major releases can change or remove behavior, minor releases add APIs, and patches may adjust TypeScript types; deprecated methods are kept as long as possible. Pin the SDK version and retest after a major bump. The official stability guide documents the policy in full.
Q: How do I publish an extension, and how long does review take?
Upload the .eext through Extension Management on jlcext.com. The manifest needs a name of 5-30 characters, a 32-character UUID, a version, a license, a valid entry, and a 1:1 PNG or JPEG icon under 5 MB, plus a README and changelog. Submissions enter automatic review and go live once they pass; no review SLA is published, so track status in Extension Management. The marketplace submission guide lists every required field and the icon rules.
Q: Why can't the bridge find EasyEDA, or why does the handshake fail?
It is usually a port conflict. The gateway scans ports 49620-49629, and those can be occupied by IDE live-share features or proxies. Check the range with Get-NetTCPConnection on Windows or lsof on macOS and Linux, free the port, then choose API Gateway > Reconnect. Also confirm Allow External Interaction is enabled and that the extension and skill versions match.
Conclusion on EasyEDA Extension API
The EasyEDA extension API turns the editor into a programmable platform: .eext packages carry your tool logic, the Pro API gives full read-write access to schematics and boards, and Run API Gateway opens that capability to AI coding agents. Start by installing one existing extension and reading its behavior, then build a small tool of your own — a batch attribute editor or a one-click export is enough to learn the loop. When the board is done, hand it to JLCPCB for fabrication and assembly. Design to hardware, with the API in between.
Popular Articles
• How to Design Your Own Keyboard PCB: From Layout to Firmware
• GPT-6 Astra PCB Design in EasyEDA Pro: What Worked, What Failed, and What We Learned
• Altium MCP with Claude Code: From Setup to PCB Design
• KiCad MCP: How to Design a PCB with Claude Code [Step-by-Step]
• Altium MCP: AI PCB Design with GPT-6 and Codex [Step-by-Step Guide]
Keep Learning
EasyEDA Extension API Guide: Build Extensions and Let AI Drive Your PCB Design
Key Takeaways EasyEDA Pro ships with a full JavaScript extension API (SYS_*, DMT_*, SCH_*, PCB_* namespaces) that lets you place components, edit traces, run DRC, and export fabrication files. Extensions are packaged as .eext files: initialize with extension.json, write Pro API calls, build with npm, install through the Extension Manager, and publish to jlcext.com. Run API Gateway exposes the API over a local WebSocket bridge (ports 49620-49629), so AI coding tools like OpenCode can operate the editor......
PCB Art : Jaw-Dropping Designs & How to Make Your Own
Usually, PCBs are designed to replicate complex circuits on a small board consisting of traces. All this is done to connect different components. However, when it comes to the aesthetics and functionality of a printed circuit board, various applications also exist, such as coloured PCBs and PCB cards. The rise of PCB art isn’t a fluke. And by the introduction of JLCPCB, this art became easier to fabricate. A community that loves to flex creativity and RGB. Engineers who want their work to be both func......
Guide to PCB Via Design: Best Practices, Tips, and Key Considerations
High-quality PCB design not only requires innovative concepts but also relies on a deep understanding of PCB manufacturing processes. Via design, as one of the critical steps in PCB design, is crucial for both PCB performance and manufacturing efficiency. This article covers the manufacturing limits, which via type to choose, the small-hole trade-offs, high-speed stubs, thermal via arrays, resin plugging and slot design. Can vias be designed in any size? To answer this question, let’s first understand......
How AI is Revolutionizing PCB Design: A Comprehensive Guide
Your favorite machine learning, optimization, and generative AI algorithms may soon be used in your favorite PCB design program. Now that ChatGPT has become a household name and competitor companies are developing their own GPT equivalents (Claude, LLaMa, etc.), EDA startups are looking at how to leverage these tools to help PCB designers and engineers be more productive. With so many industries touched by automation and AI, it was only a matter of time before PCB designers would get their own tools. ......
ZIF Connectors Simplify Flexible PCB Assembly with Tool-Free Reliability
Did you ever attempt to mate a fragile flex cable into a connector and experience that unpleasant resistance, and wonder whether you were tearing off the tail or breaking the casing? It is precisely that tension that the ZIF connectors were supposed to help remove. Zero insertion force technology allows you to slide a flexible printed circuit or flat flexible cable into the receptacle to be mated with, using almost no push force at all, but rather allows a mechanical actuator to hold the cable firmly ......
Can AI Really Design a PCB? Putting Claude Fable 5.2 to the Test
Introduction Can AI design a PCB from datasheets to manufacturing files? We put Fable 5.2 to the test with a real hardware design project, taking it through schematic capture, PCB layout, design rule checks, and Gerber generation in KiCad 10. The result was a complete manufacturing file set with every DRC error either resolved or explicitly approved. But does that mean AI can design a reliable, working PCB on its own? Not quite. An engineer reviewed and approved each stage, rejected the model's initia......