Skip to main content

What is DejaOS

๐ŸŒ Overviewโ€‹

DejaOS is a JavaScript runtime environment purpose-built for embedded devices, enabling low-cost, resource-constrained smart hardware to run JavaScript code efficiently. By adopting JavaScript as the primary development language, DejaOS dramatically lowers the barrier and cost for embedded development, making the process simpler and more productive.

DejaOS has been successfully deployed in various IoT scenarios, demonstrating excellent performance and development efficiency.


โš™๏ธ Architectureโ€‹

DejaOS is built on the following core components:

  • Mip / ARM Linux: Provides system-level process, thread, and resource management
  • QuickJS: A lightweight, fast JavaScript engine supporting the ES2020 standard
  • LVGL: A popular open-source embedded graphics library, supporting rich UI development in both C and JavaScript

๐Ÿ“š Featuresโ€‹

DejaOS offers a comprehensive set of JavaScript APIs and system capabilities:

๐Ÿ”Œ Hardware Interface Librariesโ€‹

  • GPIO, PWM, UART, RS-485, RS-232, USB, Wiegand, Watchdog
  • Capturer, ALSA, NFC, QRCode, BLE, Face Recognition, and more

๐ŸŒ Networking & Communication Protocolsโ€‹

  • Net, TCP, TCP Server, MQTT, UDP, HTTP, Web Server, OSDP, etc.

๐Ÿ–ผ๏ธ Graphics Libraryโ€‹

  • Build GUIs in JavaScript, fully compatible with native LVGL features

๐Ÿ› ๏ธ Utility Librariesโ€‹

  • Threads, encryption/decryption, logging, EventBus, NTP, SQLite, and more

๐Ÿ“ฆ Third-Party Librariesโ€‹

  • Supports importing ESM-format third-party JavaScript libraries via import

โš™๏ธ Native C Library Integrationโ€‹

  • Integrate native C libraries and expose them to JavaScript

๐Ÿš€ Development Workflowโ€‹

๐Ÿ“ฅ Environment Setupโ€‹

๐Ÿ”ง Device Preparationโ€‹

  1. Acquire a development device
  2. Connect the device to your computer (VSCode) via USB

๐Ÿงช Quick Startโ€‹

๐Ÿ“ฆ Build & Deployโ€‹

  1. Acquire production devices
  2. Use VSCode to package your project as a .dpk installer
  3. Deploy via OTA or use the DPK installer tool for serial installation

๐Ÿค Supportโ€‹

If you have any questions, feel free to contact us:

๐Ÿ“ง Email: service@dxiot.com

We are happy to assist you!