A polished AI assistant for EasyEDA Professional Edition. EasyDea AI Chat Box converts natural-language requests into editor commands, supports multiple LLM providers, and keeps all AI interactions sandboxed inside a secure iframe.
- What it does
- Highlights
- Requirements
- Repository structure
- Installation
- Configuration
- Usage
- Troubleshooting
- Contributing
- License
EasyDea AI Chat Box brings AI-powered assistance directly into the EasyEDA Professional workflow:
- Natural-language editor automation
- Real-time script execution through EasyEDA APIs
- Multi-provider model routing for resilience
- Session history, exportable logs, and diagnostics
- Fully sandboxed UI for safe extension behavior
| Feature | Benefit |
|---|---|
| AI-driven editor automation | Converts text prompts into EasyEDA command scripts |
| Multi-provider support | Works with cloud and local LLM backends for redundancy |
| Sandboxed iframe UI | Keeps AI interface isolated and secure |
| Session and transcript export | Save conversations as Markdown or copy results instantly |
| Diagnostic logging | See request latency, provider status, and execution results |
The extension is designed to work with both cloud and local LLM backends. Supported provider categories include:
- Cloud providers: OpenRouter, Mistral, Cerebras, Cloudflare Worker AI, SambaNova, Google Gemini, Nvidia NIM, BlueMinds, FreeModel.
- Local provider: Ollama for offline or self-hosted inference.
Provider selection is managed through the settings panel.
- EasyEDA Professional Edition
- EasyEDA extension developer mode enabled
- A schematic or PCB open in EasyEDA
- Optional: local Ollama server for offline LLM usage
extension.json— Extension manifest and menu definitionsmain.js— Extension loader and parent-side execution handleriframe/index.html— AI chat interfaceiframe/settings.html— Provider and mode configurationiframe/scripts/chat.js— Chat orchestration and request handlingiframe/scripts/settings.js— Settings persistence and provider statezip_helper.ps1— Builds a compliant extension archive
Build the extension archive using the helper script. This ensures the archive uses forward-slash paths required by EasyEDA.
.\zip_helper.ps1The helper produces easydea-ai-io.zip in the repository root.
- Open EasyEDA Pro.
- Go to Advanced → Extension Manager.
- Enable Developer Mode.
- Click Load Extension and choose
easydea-ai-io.zip.
- Open a schematic or PCB document.
- In the top menu, select AI Chat Box.
- Choose Open AI Chat Box or Settings.
- Open Settings from the chat UI.
- Add provider credentials in the API Keys area.
- Enable or disable providers as needed.
- Select Provider Mode for a fixed backend or Auto Mode for fallback routing.
- Host URL example:
http://localhost:11434 - No API key required for Ollama
- Enable CORS in Ollama before use:
$env:OLLAMA_ORIGINS = "*"
ollama serve- Start with Auto Mode for reliable provider fallback
- Use a local Ollama instance for secure offline inference
- Keep API keys private and only enable providers you trust
- Open the AI chat box
- Enter a request describing the action you want
- Review the generated script output
- Execute the action inside EasyEDA
- "Place the MCU module and connect its power pins"
- "Route the 3.3V net with 45-degree traces and keep the width at 0.5mm"
- "Generate a BOM from the current schematic and export it as Markdown"
- "Rename the top layer to
Signal1and add a silkscreen label"
- Use concise, specific instructions
- Validate generated scripts before execution
- Switch providers if one returns incomplete responses
- No chat panel: Verify the extension loaded successfully in the EasyEDA Extension Manager.
- Blank iframe: Rebuild with
zip_helper.ps1and reload the extension. - Script execution failed: Confirm provider credentials, network access, and developer mode.
- Provider errors: Check your AI backend status or switch to a different enabled provider.
- Initial EasyDea AI Chat Box release
- Core AI chat interface and provider configuration
- Script execution bridge for EasyEDA command automation
- Session history, Markdown export, and diagnostics
This repository is open-source and contributions are welcome.
- Open issues for bugs or enhancement ideas
- Submit pull requests for fixes and improvements
- Keep code clean, documented, and aligned with EasyEDA extension conventions
Distributed under the MIT License.