DEJA.js Server
The essential bridge. Connect your DCC-EX CommandStation to the DEJA software ecosystem safely and securely.
Core Capabilities
๐ USB Connectivity
Maintains a stable, high-speed serial connection to your DCC-EX CommandStation. Handles rapid command dispatch without dropping packets.
๐ Real-time Telemetry
Parses raw DCC-EX responses instantly. Broadcasts layout state changes (turnouts, sensors, current draw) to connected apps with minimal latency.
๐ก Network Gateway
Exposes a robust WebSocket API. Allows Throttle, Monitor, and Cloud applications to interface securely from any device on your local network.
โก Hardware Expansion
Automatically detects and manages secondary Arduino and Pico W devices connected via USB for expanded IO control.
Built for Reliability
The DEJA.js Server is built on Node.js for cross-platform compatibility. It runs headless on Windows, Mac, Linux, or a dedicated Raspberry Pi placed near your layout. It guarantees command delivery sequence and manages throttle heartbeats automatically.
$ dejajs-server start
[INFO] Server listening on port 8080
[INFO] DCC-EX detected on /dev/ttyUSB0
[INFO] Connection established.