OASIS_OS

v1.6.0 · Rust 2024 · MIT / Unlicense

One OS shell.
Any pixel buffer.

OASIS_OS is an embeddable operating system framework in Rust: window manager, browser engine, terminal, 15 apps and 17 skins — rendering to a 333 MHz PSP, a desktop window, a web page or an Unreal Engine 5 viewport. Hand it a framebuffer and an input stream; it brings the rest.

Targets
5
Skins
17
Crates
51
Tests
9k+
▸ Recorded in the classic skin: draggable windows, the terminal, and the TV Guide streaming video from the Internet Archive.

01 — What it is

A whole operating environment behind twelve methods.

Not a UI toolkit: a complete shell — dashboard, windows, apps, a terminal, a browser — written once against a small set of backend traits. Core code never calls a platform API.

  1. Bring a surface

    A GPU window, a <canvas>, a game texture or a 2004 handheld’s framebuffer. Anything that can fill a rectangle and show a frame.

  2. Implement the contract

    SdiCore’s 12 required methods plus InputBackend::poll_events. One macro line fills in eight extension traits — 45 default methods for shapes, gradients, text, textures, clipping, vector paths, batching and render targets.

  3. Get the whole shell

    Windows, skins, the terminal, the browser and every app run unchanged on your surface — or skip Rust entirely and drive it from C through oasis-ffi.

// crates/oasis-types/src/backend/sdi_core.rs (doc comments trimmed)
pub trait SdiCore {
    fn init(&mut self, width: u32, height: u32) -> Result<()>;
    fn clear(&mut self, color: Color) -> Result<()>;
    fn blit(&mut self, tex: TextureId, x: i32, y: i32, w: u32, h: u32) -> Result<()>;
    fn fill_rect(&mut self, x: i32, y: i32, w: u32, h: u32, color: Color) -> Result<()>;
    fn draw_text(&mut self, text: &str, x: i32, y: i32, font_size: u16, color: Color)
    -> Result<()>;
    fn swap_buffers(&mut self) -> Result<()>;
    fn load_texture(&mut self, width: u32, height: u32, rgba_data: &[u8])
    -> Result<TextureId>;
    fn destroy_texture(&mut self, tex: TextureId) -> Result<()>;
    fn set_clip_rect(&mut self, x: i32, y: i32, w: u32, h: u32) -> Result<()>;
    fn reset_clip_rect(&mut self) -> Result<()>;
    fn read_pixels(&self, x: i32, y: i32, w: u32, h: u32) -> Result<Vec<u8>>;
    fn shutdown(&mut self) -> Result<()>;

    // provided: the bitmap font's width (override for your own fonts)
    fn measure_text(&self, text: &str, font_size: u16) -> u32 { ... }
    // provided: override to report a resized window or a bound render target
    fn viewport_size(&self) -> (u32, u32) { ... }
}

// Implement those 12 for your type, then one line buys all eight extension traits:
oasis_types::impl_sdi_defaults!(MyBackend);
  • Embeddable by design

    Backends are leaf crates; the shell is a library you tick.

  • Skinnable to the bone

    Layout, chrome, strings and shaders are TOML; a theme derives from nine colors.

  • Actually useful inside

    A from-scratch browser, 110+ commands and builtins, video, radio — 15 apps.

  • Drivable by agents

    An opt-in, loopback-only MCP server opens apps, runs commands and takes screenshots.

02 — Platform targets

Same shell, five very different screens.

Each backend maps rendering, input, audio and networking onto whatever the host provides. Same apps, same skins, same terminal — from a 4K monitor to a 4.3″ LCD.

OASIS_OS in the XP skin at 1024 by 768

Desktop

oasis-backend-sdl → oasis-app

SDL3 window, renderer, input and audio on Linux, macOS and Windows. SDL3 builds from source; no system SDL needed. Skins pick their own resolution — the XP skin above runs at 1024×768.

Video
ffmpeg (default) or openh264
JS
QuickJS-NG, on by default
Net
rustls TLS, remote terminal, MCP
OASIS_OS in the Altimit skin at 480 by 272

Raspberry Pi

oasis-backend-sdl

The same SDL3 backend boots on a Pi as a field-deployable shell — a kiosk, a cyberdeck, and the design target for a tamper-responsive briefcase build.

Video
ffmpeg or openh264
Role
Kiosk / cyberdeck shell
Net
Remote terminal over PSK
OASIS_OS in the Vaporwave skin inside a browser tab

WebAssembly

oasis-backend-wasm

Canvas 2D rendering, DOM input and HTML <audio> playback. Real web pages and YouTube play in an iframe overlaid on the canvas.

Video
Browser <video> → canvas
JS
Off (no C toolchain for wasm)
Net
fetch() only — no raw TCP
Boot it in this tab →
OASIS_OS in the Win95 skin, framed as an in-game computer

Unreal Engine 5

oasis-backend-ue5 → oasis-ffi

A software RGBA framebuffer behind a C ABI — oasis_create, oasis_tick, oasis_get_buffer — so in-game computers become interactive props.

Video
Optional oasis_video_* API
Files
GameAssetVfs with overlay writes
Link
cdylib: .dll / .so / .dylib
TV Guide window on a real PSP, over the orange PSIX-style wallpaper

PlayStation Portable

oasis-backend-psp · oasis-plugin-psp

Native sceGu rendering on a 333 MHz MIPS with 32 MB of RAM. A shell EBOOT, plus a kernel-mode PRX that draws an overlay on top of running games. Captured on real hardware.

Video
Media Engine H.264 + AAC
JS
QuickJS-NG via psp-gcc
Net
Pure-Rust TLS 1.3

03 — Skin gallery

Seventeen personalities, zero code changes.

Every capture is an unretouched frame from oasis-screenshot at the skin’s native resolution. A skin is a TOML directory in skins/, embedded at build time — copy one, edit it, and hot-reload it with the skin-dev feature.

04 — Inside the shell

Subsystems built from scratch, then made small enough to travel.

Each subsystem is its own crate with its own tests — a browser engine, a window manager, a scriptable shell, video and audio pipelines — and most of them are lean enough to run on a 32 MB handheld.

Apps
15
browser to paint
Commands
95
desktop build
Shell builtins
21
if · for · case
UI widgets
27
plus flex & grid
Shaders
8
GLSL + CPU each
Locales
7
en de es fr ja ko zh

oasis-browser · -html · -css · -http · -js

A browser engine, not a webview

Written from the parser up: WHATWG HTML, a full CSS cascade with var() resolved at computed-value time, CSS Grid, 2D and 3D transforms with perspective, @font-face, Canvas 2D and SVG — over HTTP/1.1 + HTTP/2 with an enforced CSP.

style.css · all parsed, cascaded and laid out natively
@layer base, ui;
@container sidebar (min-width: 30em) {
  .card:has(img) { display: grid; }
}
.nav {
  & a:hover { color: var(--accent); }
}
.cube {
  transform-style: preserve-3d;
  transform: perspective(600px) rotateY(32deg);
}
@scope (.card) to (.content) {
  img { border-radius: 8px; }
}
  • @media · @supports · @scope
  • backface culling
  • bidi text
  • CSS transitions
  • CSP nonces & hashes
  • RFC 6265 cookies
  • reader mode
  • JS watchdog

oasis-wm

A real window manager

Drag, resize, minimize, maximize, edge snapping with previews, Alt+Tab, five tiling layouts and open/close/minimize animations.

oasis-mcp

An MCP control server

Compiled out unless asked for. When on: Streamable HTTP on 127.0.0.1:7345, Origin/Host checks, an optional bearer token, and tools like open_app, run_command and screenshot.

oasis-terminal

A shell inside the shell

Pipes, globs, aliases, variables, if/while/for/case scripts, background jobs, tab completion and persistent history — and commands that drive the GUI.

/home/user> ls music | grep mp3
ambient_dawn.mp3
nightfall_theme.mp3
/home/user> music play music/nightfall_theme.mp3
/home/user> open Text Editor notes.txt
/home/user> skin psix-hifi

oasis-video · oasis-audio

TV Guide & Internet Radio

Internet Archive channels streamed progressively through a sliding-window buffer with deferred tail probing and CDN failover — decoded by ffmpeg, openh264, the browser, or the PSP’s Media Engine.

Classic skin media tab listing audio files

oasis-ui

27 widgets

Buttons to tree views, modals, tables, date and color pickers — plus list views, menu bars, nine-patch, focus navigation and flex/grid layout.

oasis-shader · -vector

Living wallpapers

Eight Shadertoy-style backgrounds, each with a GLSL and a CPU implementation, plus resolution-independent vector icons.

oasis-vfs · oasis-net

Files & wires

Memory, disk and UE5 game-asset filesystems behind one trait; a PSK-authenticated remote terminal; and typed VFS IPC (/var/audio, /var/wm) that scripts, plugins and agents drive.

05 — Architecture

Layers in, backends out.

51 crates: 41 workspace members for desktop, WASM and UE5, the excluded PSP backend, and nine standalone PSP-target crates. Everything above the trait boundary is platform-agnostic.

  1. Hosts
    • oasis-app
    • oasis-ffi
    • oasis-usb-host
    • desktop shell · C ABI for UE5 · PSP USB host
  2. Registry
    • oasis-apps
    • app table · host glue over core + app crates
  3. Coordination
    • oasis-core
    • dashboard · agent · plugins · scripting
  4. Apps
    • oasis-app-core
    • tv-guide
    • radio
    • media
    • file-manager
    • text-editor
    • paint
    • games
    • calculator
    • settings
    • system-monitor
  5. Engines
    • oasis-browser
    • oasis-html
    • oasis-css
    • oasis-http
    • oasis-js
    • oasis-terminal
    • oasis-video
    • oasis-audio
  6. Presentation
    • oasis-sdi
    • oasis-ui
    • oasis-wm
    • oasis-skin
    • oasis-vector
    • oasis-shader
    • oasis-rasterize
  7. Services
    • oasis-vfs
    • oasis-platform
    • oasis-net
    • oasis-mcp
    • oasis-i18n
  8. Foundation
    • oasis-types
    • oasis-test-backend
    • Color · InputEvent · geometry · errors · backend traits

Trait boundary

  • SdiCore 12 required rendering methods
  • SdiBackend 8 extension traits, 45 default methods
  • InputBackend buttons, keys, pointer, text
  • NetworkBackend TCP with pluggable TLS
  • AudioBackend tracks and streaming PCM
  • oasis-backend-sdlSDL3 · desktop & Raspberry Pi
  • oasis-backend-wasmCanvas 2D · HTML audio · browsers
  • oasis-backend-ue5RGBA framebuffer → oasis-ffi → UE5
  • oasis-backend-pspsceGu · Media Engine · PSP EBOOT
  • oasis-plugin-pspkernel PRX · ~160 KB, no oasis-core
Crates depend downward; only the hosts also link a backend from below the line. Backends implement the oasis-types traits; the PSP overlay PRX stays standalone, without oasis-core, so it stays small (about 160 KB) beside a running game. Not drawn: eight more standalone PSP tools — the recovery EBOOT, the dev loop, ME boot, PRX decrypt and four USB client / debug / trace / VBUS crates.

06 — The PSP story

Born on a 2004 handheld. Still runs there.

OASIS_OS started in early 2026 as a love letter to PSP homebrew shells like PSIX. The 480×272 default resolution is the PSP’s LCD; the d-pad navigation never left. And the PSP is still the hardest target in the tree.

OASIS_OS dashboard on real PSP hardware: app icons over the orange-to-yellow PSIX-style wallpaper
Real PSP hardware, captured over WiFi with the TCP screencap command.
TV Guide playing H.264 video decoded by the PSP Media Engine
ME Archive.org video over TLS 1.3, decoded on the Media Engine.
CPU
333 MHz
RAM
32 MB
LCD
480×272
TLS
1.3
  1. TLS 1.3 in pure Rust on firmware that ships SSL 3.0 and 2008-era root CAs.
  2. Hardware H.264 through a reverse-engineered Media Engine RPC protocol — 22 command IDs, 47 NIDs — with a kernel watchdog for a firmware deadlock.
  3. QuickJS-NG cross-compiled with pspdev’s toolchain against a hand-rolled libc shim.
  4. Zero-touch development: WiFi deploy, remote input and screen capture, a 154 KB recovery EBOOT, and a relay-driven actuator for hard reboots.

08 — Getting started

Build it for your screen.

Per-platform dependencies live in docs/getting-started.md. CI runs every step inside the rust-ci Docker image, so a local docker compose --profile ci run matches it exactly.

# SDL3 compiles from source; default features link system ffmpeg
cargo build --release -p oasis-app
cargo run --release -p oasis-app

# pick any of the 17 skins
OASIS_SKIN=psix-hifi cargo run --release -p oasis-app

# run the tests
cargo test --workspace

09 — What’s new

Faster, stricter, closer to the spec.

The latest overhaul, measured with the in-tree criterion benches. Output stayed pixel-identical: rasterizer goldens, backend parity and frame hashes of every skin.

HTML parse
3×
100 KB page: 5.2 → 1.4 ms
CSS cascade
3.2×
1,210 rules: 15.8 → 4.9 ms
Nested flex
25×
16 rows: 3.2 → 0.13 ms
Software frame
3×
XP 1024×768: 1.8 → 0.59 ms
Idle frames
−45%
20–45% cheaper: IPC files stat-polled
PSP dev servers
PSK
HMAC challenge on 9293

Boot it right here.

The WebAssembly build runs the real shell in this browser tab — all 17 skins, the terminal and the apps. No install.