English | 简中
EdgeLinkd is a high-performance, memory-efficient Node-RED compatible runtime engine built from the ground up in Rust, now featuring an integrated web UI for complete standalone operation.
Why EdgeLinkd?
- 10x less memory usage than Node-RED (only 10% of Node-RED's memory footprint)
- Native performance with Rust's zero-cost abstractions
- Integrated web interface - full Node-RED UI built-in for flow design and management
- Standalone operation - no external Node-RED installation required
- Drop-in replacement - use your existing
flows.jsonfiles - Perfect for edge devices with limited resources
- Node-RED compatibility - design, deploy, and run flows all in one application
EdgeLinkd now includes the complete Node-RED web editor, allowing you to design flows directly in the browser while executing them with native Rust performance. You can also run it headless for production deployments on resource-constrained devices.
Only the function node uses the lightweight QuickJS JS interpreter to run JavaScript code; all other functionalities are implemented in native Rust code for maximum performance.
short-demo.mp4
- Flow Development: Design and test flows directly in the integrated web editor
- Rapid Prototyping: Full Node-RED UI for quick flow development and iteration
- IoT Edge Gateways: Process sensor data with minimal resource usage
- Industrial Automation: Run control flows on embedded controllers with web-based monitoring
- Home Automation: Deploy smart home logic on Raspberry Pi with remote web access
- Development & Production: Use web UI for development, headless mode for production deployment
- Cloud-to-Edge Migration: Move Node-RED flows from cloud to edge with unified interface
- Container Deployments: Lightweight containers for edge computing with optional web UI
- Remote Management: Access and modify flows remotely through the web interface
Clone the repository with submodules:
git clone --recursive https://github.com/oldrev/edgelinkd.gitOr if you've already cloned without submodules:
git clone https://github.com/oldrev/edgelinkd.git
cd edgelinkd
git submodule update --init --recursivePrerequisites: Rust 1.80 or later
cargo build --releaseWindows users: Ensure patch.exe is in your PATH (included with Git) and install Visual Studio for MSVC.
Supported platforms:
x86_64-pc-windows-msvcx86_64-pc-windows-gnux86_64-unknown-linux-gnuaarch64-unknown-linux-gnuarmv7-unknown-linux-gnueabihfarmv7-unknown-linux-gnueabi
Start EdgeLinkd with integrated web UI (recommended):
cargo run --release --
# or after build
./target/release/edgelinkdBy default, your browser will open the Node-RED frontend at http://127.0.0.1:1888.
Main command-line options:
[FLOWS_PATH]: Optional, specify the flow file (default:~/.edgelinkd/flows.json)--headless: Headless mode (no Web UI, suitable for production)--bind <BIND>: Custom web server bind address (default:127.0.0.1:1888)-u, --user-dir <USER_DIR>: Specify user directory (default:~/.edgelink)- See more options with
--help
Examples:
# Run in headless mode
./target/release/edgelinkd run --headless
# Specify flow file and port
./target/release/edgelinkd run ./myflows.json --bind 0.0.0.0:8080All data and configuration are stored in the
~/.edgelinkdirectory by default.
Use --help to see all commands and options:
./target/release/edgelinkd --help
./target/release/edgelinkd run --helpcargo test --allRunning integration tests requires first installing Python 3.9+ and the corresponding Pytest dependencies:
pip install -r ./tests/requirements.txtThen execute the following command:
set PYO3_PYTHON=YOUR_PYTHON_EXECUTABLE_PATH # Windows only
cargo build --all
py.testEdgeLinkd can be configured through command-line arguments and configuration files.
Command-line options:
--bind <address>: Set the web server binding address (default:127.0.0.1:1888)--headless: Run without the web UI for production deployments--user-dir <path>: Specify custom user directory for flows and settings
Configuration file:
You can also configure the web UI through the configuration file (edgelinkd.toml):
[ui-host]
host = "0.0.0.0"
port = 1888The 5.0.9 upgrade branch bundles the Node-RED 5.0.9 editor. Building it requires
Node.js 22.9 or later. The admin API does not grant cross-origin access by default.
The editor supports Monaco (default), Ace, and the basic editor through
web.editorTheme.codeEditor.lib; an unknown editor name falls back to basic.
Theme schemes are declared through web.editorTheme.schemes (light and dark).
Third-party login and authentication code exchange are outside the current runtime
scope: POST /auth/token returns HTTP 501 with error: "not_supported".
File nodes support the built-in UTF-8, UTF-16, binary, hex and base64 encodings. The
nodes_file_encodings Cargo feature (enabled in default builds) also enables the
legacy text encodings provided by encoding_rs; minimal builds can disable it.
For additional single-byte code pages, enable file_encodings_legacy (included in
full). Its pure Rust tables are generated from the pinned iconv-lite version,
with the MIT attribution retained. Regenerate using
node scripts/generate_file_encodings.cjs; no Node.js library is needed at runtime.
To run the optional encoding oracle tests, build the Python extension with
cargo build -p edgelink-pymod --features edgelink-core/file_encodings_legacy, set
EDGELINK_FILE_ENCODINGS_LEGACY=1, and run the file-node pytest suites. Use the same
environment variable when generating the spec report for a build with this feature.
Release 5.0.9: This branch is based on Node-RED v5.0.9 and includes the integrated editor and Rust runtime.
New: Integrated Web UI: EdgeLinkd now includes a complete Node-RED web interface for flow design and management. The web UI is fully compatible with Node-RED's editor and provides the same user experience while running on the high-performance Rust runtime.
Web UI Features:
- ✅ Complete Node-RED editor interface
- ✅ Flow design and editing
- ✅ Node palette with all supported nodes
- ✅ Deploy flows directly from the browser
- ✅ Real-time flow execution monitoring
- ✅ Debug panel integration
- ✅ Settings and configuration management
- ✅ Import/Export flows functionality
The heavy check mark ( ✔️ ) below indicates that the supported behavior has passed the ported Node-RED integration tests. A checked node can still have deliberately scoped gaps; use the live Node-RED spec coverage page for detailed results.
The live Node-RED spec coverage page lets you compare the latest master report with published releases and search individual tests.
Regenerate the report and chart with:
python scripts/specs_diff.py 3rd-party/node-red \
--svg-output tests/REDNODES-SPECS-DIFF.svgDefault builds include the native Rust serial in, serial out, serial request,
serial control and cbor plug-ins. Disable nodes_serialport or nodes_cbor
when selecting features for a minimal build. Editor assets are copied from the
pinned 3rd-party/node-red-nodes submodule; Node.js is not needed at runtime.
The CBOR plug-in passes all five ported upstream specs and supports a configurable
message property. The Python test bridge preserves binary values with
{"$__el_type":"Buffer","data":[0,127,255]}; see the
Buffer bridge contract for validation and nested values.
Serial CTS/DSR output control is explicitly unsupported; real-device serial
loopback testing has not been performed on this development host.
Check out our milestones to get a glimpse of the upcoming features and milestones.
We welcome contributions! Whether it's:
- Bug reports and feature requests
- Documentation improvements
- Code contributions and new node implementations
- Testing on different platforms
Note: Please make meaningful contributions, or watch and learn. Simply modifying the README or making non-substantive changes will be considered malicious behavior.
Please read CONTRIBUTING.md for details.
If EdgeLinkd saves you memory and improves your edge deployments, consider supporting development:
Please refer to ISSUES.md for a list of known issues and workarounds.
We welcome your feedback! If you encounter any issues or have suggestions, please open an issue.
- Website: https://oldrev.github.io/edgelinkd
- Contact me: E-mail: oldrev@gmail.com
- Discord: https://discord.gg/XJstgANe26
This project is licensed under the Apache 2.0 License - see the LICENSE file for more details.
Copyright © Li Wei and other contributors. All rights reserved.
This project is a Rust reimplementation of Node-RED (https://nodered.org/), which is developed by the OpenJS Foundation and licensed under the Apache License, Version 2.0.
This project includes software developed at The OpenJS Foundation (https://openjsf.org/).
The engine and runtime kernel were developed by the author. LLM tools assisted with the implementation of peripheral nodes; those changes remain subject to human review and tests.
