ajo

03 / The runtime

Ajo Engine

A focused JavaScript runtime for sealed Ajo applications.

The compiler prepares the application before it reaches the server. The runtime then loads its sealed bytecode with a declared set of capabilities. Built on QuickJS-NG, it provides the HTTP, SQLite, crypto and fetch surfaces Kit uses.

Terminal
# Stage and seal the application.
pnpm exec kit build --compiler /path/to/ajo-toolchain/node_modules/.bin/ajo-engine-compiler

# Run it with the matching runtime.
NODE_ENV=production HOST=127.0.0.1 PORT=8080 APP_URL=http://localhost:8080 \
  /path/to/ajo-toolchain/node_modules/.bin/ajo-engine dist/ajo
01

A matching compiler and runtime pair

02

Precompiled bytecode with a closed module graph

03

Explicit runtime capabilities and filesystem roots

Part of the whole

Ajo Server supplies the host environment, TLS routing and deployment lifecycle around this runtime.

Explore the platform