Skip to content

Latest commit

 

History

History
71 lines (51 loc) · 3.2 KB

README.md

File metadata and controls

71 lines (51 loc) · 3.2 KB

libacde

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.

Front ends

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 acdev CLI.
  • 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.

Web APIs stay standard

  • 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) and globalThis (Node compatible). There is no acde global.
  • System access goes through acde: built-in modules, imported like node:fs. They are injected into the page's V8 isolate, and the manifest's capabilities decide which ones a page may import.
import { fs } from 'acde:fs'
import self from 'acde:window'

Building

git clone --recurse-submodules https://github.com/0x00-Community/libacde.git
cd libacde
cargo build

The Blitz fork (vendor/blitz) and acde-scene are private GitHub repositories fetched over ssh. Without access to them a clean build does not resolve its dependencies. Building also needs bun: build.rs bundles js/ into the binary. Details: docs/agents/dev/build-run.md.

Branches

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.

Docs

License

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.