Branchwell

Clearwake / research / README.md

Show the source

Clearwake: research

Clearwake hero

Clearwake is a quiet browser written in Rust with ad blocking always on. Here is the public research on why both choices matter.

How Clearwake works

Where we are: Available for Mac, Windows, Linux, Android and the web.

Clearwake is a quiet browser written entirely in Rust with ad blocking always on. It runs no JavaScript and shows pages in a clean, reader-style view.

Rust rules out a whole class of memory bugs behind most serious browser security holes, and blocking ads cuts trackers and speeds up pages.

How it works

  1. Fetch. Clearwake loads the page and strips ads and trackers.
  2. Read. Pages show in a clean view with no scripts.
  3. Stay safe. Memory-safe Rust code throughout.

How it keeps going

It is free. It is built and kept going by our own small team, with no ads and no selling of anyone's data.

How we're organized

  • Clearwake
    • Browser engine
    • Apps for each platform
    • Filters and privacy

Everyone on the team grows through the same three levels: Explorer (starting out), Builder (growing) and Guide (on the way to mastery).

What we've decided

  • Rust only.
  • No iPhone version.

What comes next

  • Tabs.

Start your own

Nothing here is secret. Anyone can copy how Clearwake works and open their own version.

  1. Read this page. Everything about how Clearwake works is here and in the public sources below. Our designs, specs and plans are public domain.
  2. Pick your name and place. Choose your own name and where you will start. You do not need to ask us, and you do not need to call it Clearwake.
  3. Build the team. Start with the roles in the chart above. One person can hold several roles at first.
  4. Follow the steps. Run it the way the "How it works" steps describe, then improve on it.
  5. Share back. Publish what you learn, so the next person can start further ahead.

The research

Key sources

  • Memory safety
    The Chromium Projects, 2020
    The team behind the most widely used browser engine found that around 70 percent of its serious security bugs were memory safety problems, the kind of bug that memory-safe languages such as Rust are designed to prevent.
  • The case for memory safe roadmaps
    CISA, NSA, FBI and international partners, 2023
    Cybersecurity agencies from several countries urged software makers to move to memory-safe languages, naming Rust among the options, because it removes a whole class of common vulnerabilities.
  • Cyber criminals impersonating brands using search engine ads
    FBI Internet Crime Complaint Center, 2022
    The FBI warned that criminals buy search ads that imitate real brands to lead people to fake sites, and suggested using an ad blocking extension as one way to stay safe.
  • Ad-blocking: a study on performance, privacy and counter-measures
    Garimella, Kostakis and Mathioudakis (arXiv), 2017
    Measuring real page loads, researchers found that blocking ads made pages load faster, used less data and cut the number of third-party trackers contacted.
  • A proactive approach to more secure code
    Microsoft Security Response Center, 2019
    Microsoft found that about 70% of the security fixes it shipped each year were for memory safety bugs, the kind of mistake that memory-safe languages like Rust rule out.
  • Eliminating memory safety vulnerabilities at the source
    Google Security Blog, 2024
    As Android wrote new code in memory-safe languages, memory safety bugs fell from 76% of its vulnerabilities in 2019 to 24% in 2024, without rewriting the old code.
  • How unique is your web browser?
    Eckersley, Privacy Enhancing Technologies Symposium, 2010
    Of nearly half a million browsers tested, about 84% could be told apart by their settings alone, with no cookies at all. Browsers can track people just by how they are set up.
  • Online tracking: a 1-million-site measurement and analysis
    Englehardt and Narayanan, ACM CCS, 2016
    Crawling the top million websites, researchers found tracking on most of them, run by a small number of large companies, and documented new hidden ways sites fingerprint visitors.

Rust and memory safety in practice

  • Memory-safety challenge considered solved? An in-depth study with all Rust CVEs
    Xu et al., ACM Transactions on Software Engineering and Methodology (arXiv), 2021
    The authors went through every publicly reported memory-safety vulnerability in Rust libraries and traced where each came from. Almost all of them involved code marked unsafe, which means safe Rust largely keeps its promise, but the small unsafe parts deserve the closest review.
  • Understanding memory and thread safety practices and issues in real-world Rust programs
    Qin et al., ACM PLDI, 2020
    This study examined real bugs in widely used Rust projects, including a browser engine. Memory bugs clustered around unsafe code, while some concurrency bugs still slipped through, a useful reminder that Rust narrows the risk without removing every kind of mistake.
  • How do programmers use unsafe Rust?
    Astrauskas et al., ACM OOPSLA, 2020
    Looking across thousands of public Rust packages, researchers found that most contain no unsafe code at all, and where it appears it is usually small and wrapped behind a safe interface. That pattern is what makes it practical to audit a large Rust program.
  • Is Rust used safely by software developers?
    Evans, Campbell and Soffa, ICSE (arXiv), 2020
    A large scan of Rust libraries found that unsafe code is used directly by a minority of packages but reached indirectly by many more through dependencies. Choosing dependencies carefully matters as much as writing safe code yourself.
  • An interview study on the use, comprehension and perceived risks of unsafe Rust
    Höltervennhoff et al., USENIX Security, 2023
    Interviews with Rust developers showed they mostly treat unsafe code with care and try to keep it small, but are not always sure they have it right. Clear guidelines and tooling for those few risky spots help.
  • Implications of rewriting a browser component in Rust
    Mozilla Hacks, 2019
    Mozilla reviewed past security bugs in the style engine it later rewrote in Rust and concluded that most of them would have been prevented by the language. It is a concrete browser example of the memory-safety argument.
  • Oxidation: Rust in Firefox
    Mozilla Wiki
    Mozilla's running record of which parts of Firefox are written in Rust and why. It shows a browser can adopt Rust step by step, starting with the parts that handle untrusted input.
  • Fearless concurrency in Firefox Quantum
    The Rust Blog, 2017
    Engineers describe how Rust let them style web pages in parallel after earlier attempts in C++ had failed because thread bugs were too hard to avoid. Safety and speed can come together.

Malicious ads and why blocking helps

Filter lists and tracker blocking

Living without page scripts

  • Breaking bad: quantifying the addiction of web elements to JavaScript
    Chaqfeh et al., ACM Transactions on Internet Technology (arXiv), 2023
    The researchers measured what actually breaks when scripts are turned off. Many pages kept their main reading content while ads, trackers and extras disappeared, though some interactive sites became unusable. That trade is the core of a script-free reading browser.
  • Web Almanac: JavaScript
    HTTP Archive, 2020
    A yearly survey of millions of sites shows the typical page ships a large and growing amount of script, much of it never needed for reading. Script is often the heaviest cost on phones and slow devices.
  • Web Almanac: third parties
    HTTP Archive, 2020
    Most pages load code from outside companies, including ads, analytics and social widgets. Each one adds weight and a new party that can see the visit.
  • Web Almanac: page weight
    HTTP Archive, 2022
    This chapter tracks how heavy web pages have become over time and which kinds of files make up that weight. Stripping pages to their text and images cuts much of it.

Reader views and calmer pages

  • The impact of web browser reader views on reading speed and user experience
    Li et al., ACM CHI, 2019
    In a large online experiment, people read somewhat faster in a simplified reader view, and many preferred it, though the gains varied by person and page. It supports offering a clean view by default while letting readers adjust it.
  • SpeedReader: reader mode made fast and private
    Ghasemisharif et al., The Web Conference (WWW), 2019
    The authors built a reader mode that converts pages before they load extra resources, and found big drops in data use and load time along with fewer third parties contacted. It shows reader views can be a speed and privacy tool, not just a style choice.

Live page: https://clearwake.ai/research

Our summaries are public domain (CC0): copy and share them freely. Each original source belongs to its authors. Nothing here is medical, legal or financial advice.

Get it

git clone https://branchwell.ai/clearwake.git