This website requires JavaScript.
Coupons
Ship to
Blog

EasyEDA Extension API Guide: Build Extensions and Let AI Drive Your PCB Design

Published Nov 24, 2026, updated Nov 24, 2026

10 min

Table of Contents
  • 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.

easyeda-extension-marketplace-api

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:

NamespaceCoversTypical use
SYS_*System services: menus, dialogs, files, storage, WebSocket, timersRegister top menus, persist settings, talk to external processes
DMT_*Document tree: projects, folders, schematics, boards, panelsWalk the project structure, open or create documents
SCH_*Schematic and symbols: primitives, nets, netlist, DRCBatch-place parts, wire circuits, generate netlists
PCB_*Board and footprint: traces, polygons, layers, DRC, DFMAuto-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.

easyeda-programs-menu-marketplace

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.

run-api-gateway-extension-page

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.

easyeda-pro-documentation-api-guide

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.

easyeda-api-getting-started-guide

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.

easyeda-standalone-script-pro-api

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:

run-api-gateway-bridge-connected

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
  1. Install Node.js 20.17 or newer (22 LTS recommended) and verify with node -v.
  2. Install OpenCode (command above) and launch it with opencode.
  3. Install the Run API Gateway extension in EasyEDA Pro from jlcext.com.
  4. In the extension manager, check Allow External Interaction and Show in Top Menu. The API Gateway menu appears at the top when loaded.
  5. 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.
Ready to Bring Your PCB Ideas to Life?

Turn designs into working hardware with expert fabrication, assembly, and component services from a trusted industry leader. Upload your files, choose your options, and get boards that are ready to test, ready to ship, and ready to scale.

Get Quote Now >

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.

Keep Learning