Branchwell

Clearwake / app

Latest: App source: CI workflows by Branchwell, 44 min ago

📁 .github
📁 assets
📁 crates
📁 fixtures
📁 scripts
📁 web
📄 .gitignore143 B
📄 Cargo.lock108.5 KB
📄 Cargo.toml411 B
📄 LICENSE1.2 KB
📄 README.md2.3 KB

Clearwake

A quieter browser, written entirely in Rust.

Clearwake reads web pages into clean text, links and pictures. Scripts never run. Ads and trackers are blocked before they load, with no off switch, no allowlist and no exceptions. Bookmarks stay on your device. There is no account.

Where it runs

PlatformBuildHow
Mac (Apple Silicon and Intel)scripts/package-mac.shegui window
Windows (x64)scripts/package-windows.shegui window
Linux (x86-64, glibc 2.28+)scripts/package-linux.shegui window
Android (8.0+)scripts/package-android.shegui on NativeActivity
Webscripts/build-web.shegui in WebAssembly, pages loaded through clearwake.ai/fetch
Glimmercrates/clearwake-glimmernative Glimmer window, drawn by Glimmer's own kernel

Layout

  • crates/clearwake-core: the engine. Web addresses, the HTML reader and the always-on filter (filters.txt). no_std with integer math only, so it also runs inside the Glimmer kernel.
  • crates/clearwake-app: the app for Mac, Windows, Linux, Android and the web (egui).
  • crates/clearwake-glimmer: Clearwake as a Glimmer window (glimmer-ui). Builds for x86_64-unknown-none. The kernel loads pages and hands them over; until its network stack is wired in, the window shows its welcome page.
  • crates/clearwake-fetch: the filter behind clearwake.ai/fetch, the page loader for the web version (a web page can't read other sites directly). A tiny WebAssembly module with no imports; pages/ holds the Pages Function that asks it about every address and redirect.

Build and test

cargo test -p clearwake-core
cargo run -p clearwake --release -- https://example.com
cargo build -p clearwake-core --release --target x86_64-unknown-none        # Glimmer target
(cd crates/clearwake-glimmer && cargo build --release --target x86_64-unknown-none)
(cd crates/clearwake-fetch && cargo build --release --target wasm32-unknown-unknown)

What it does not do yet

Clearwake does not run JavaScript or apply page styles, so pages that only work with scripts show less, and logins that need scripts won't work. Pictures are shown; video and audio are not. There are no tabs yet.

Released into the public domain under the Unlicense.