English · 简体中文
libacde is the runtime library of acde, where the desktop and every app are web pages. It embeds V8 for JavaScript, lays
out and paints pages with its own DOM (a fork of Blitz) on the GPU through wgpu
and vello, and gives pages web storage, media, WebGL / WebGPU and the acde: system modules.
It also owns the contracts between the pieces: the package manifest and its rules, the window model, desktop packages,
the SDK type declarations @acde/api, and the acde_* protocols.
libacde is the Rust package libacde (library name acde), built as an rlib and as a C library with the header
include/acde.h. Two front ends link it:
- acdev: the development runtime, a host window on Linux, macOS and
Windows, plus the
acdevCLI. - acdes: the system runtime of Dopame OS on Linux (Wayland compositor, DRM/KMS, session, RDP).
Platform code comes in only through interfaces (Platform / Window in src/host), so the same runtime drives a full
OS session and a window on another desktop.
- DOM,
window,fetch,localStorage, events, Web Audio, WebGPU and the rest follow the standards: behaviour, signatures, events and errors. Standard objects get no private methods, fields or events. What is not done yet is a gap, not a look-alike. - There are two globals:
window(web compatible) andglobalThis(Node compatible). There is noacdeglobal. - System access goes through
acde:built-in modules, imported likenode:fs. They are injected into the page's V8 isolate, and the manifest'scapabilitiesdecide which ones a page may import.
import { fs } from 'acde:fs'
import self from 'acde:window'git clone https://github.com/0x00-Community/libacde.git
cd libacde
cargo buildThe Blitz fork and scene crate are included in this checkout. The remaining Git dependencies are public. Source builds bundle js/ with native esbuild or Bun. The crates.io package ships the checked bundles, so it needs no JavaScript toolchain. Details:
docs/agents/dev/build-run.md.
| Branch | JavaScript engine | Build |
|---|---|---|
main |
V8 | cargo build |
for-j8 |
j8 only; the branch for Windows on Arm | cargo build (default feature engine-j8) |
for-j8 is main plus the j8 commits; main is merged into it after each push. acdev's main pins this repository's
main, and its for-j8 pins for-j8.
- New here: docs/humans.md.
- The authoritative notes, kept in step with the code: docs/agents.md. Start with docs/agents/runtime/architecture.md; which directory owns what is in docs/agents/runtime/layout.md.
- The SDK types for writing desktops and apps:
acde-api/.
AGPL-3.0-only. Third-party code under vendor/ (including the Blitz fork) and src/napi keeps its original
licenses and copyright notices; see the license files in those directories.