JavaScript Runtime Environment In Embedded Device
English| 中文
Deja OS
Introduction
dejaOS is a JavaScript runtime environment designed for embedded devices, enabling low-cost, low-spec smart devices to run JavaScript code. It uses JavaScript as the development language, reducing costs and simplifying development. It make embedded application development easier. It has already shown excellent performance in various IoT scenarios.
Technical Background
dejaOS is built on the foundations of Mip/ARMLinux, QuickJS, and LVGL, enhancing development efficiency while maintaining high runtime performance.
Mip/ARMLinux:Embedded Linux with system processes, threads, and resource scheduling capabilities.Quickjs:A compact and fast JavaScript engine that supports the ES2020 standard.LVGL:The most popular free open-source embedded graphics library, allowing easy creation of beautiful UIs using C, while dejaOS enables development with JavaScript.Rich Features
dejaOS provides a comprehensive set of JavaScript Module, including:
Hardware Interface Module: GPIO, PWM, UART, RS-485, RS-232, USB, Wiegand, Watchdog, Capturer, ALSA, NFC, QRCode, BLE, Face Recognition, etc.Networking and Communication Protocol Module: Net, TCP, TCP Server, MQTT, UDP, HTTP, Web Server, OSDP, etc.Graphics Module: Supports drawing GUI screens using JavaScript, compatible with all LVGL native capabilities.Utility Module: Threads, encryption/decryption, logging, EventBus, NTP, SQLite, etc.Third-Party Module: Supports using pure JavaScript third-party module with import (ESM).Native C Library Support: Allows development through embedded native C libraries wrapped in JavaScript.The development process for dejaOS app is as follows:
Prepare Development Environment
Prepare the Device
Quick Start
Build and Publish
DPK installation package in VSCode.The main body of the project consists of five parts, as follows:
| File | Required | Function |
|---|---|---|
| .temp | NO | Store temporary files |
| dxmodules | NO | Store dependent files |
| src | YES | Project logic |
| main.js | YES | Project entry file |
| app.dxproj | YES | Project configuration file |
For a complete description of the project structure, please refer to Introduction to dejaOS Project Structure
Services For more information, please refer to https://dejaos.com If you have any questions,contact us [email protected] and let us know how we can help.
No open issues yet, or sync has not completed.