Learn/Digital FreedomOpen Source

Foundation of the Internet: Why MATA Rebuilds the Libraries Under Your Apps

Apps come and go, but the decoders, allocators and identity code beneath them stay for decades. Why MATA replaces that layer in memory-safe Rust instead of wrapping it.

Signed by M·
Wet stone arches and piers of an old masonry viaduct after rain, with dark utility cables running along the foundation courses under overcast light
Why rebuild the foundation of the internet instead of fixing apps?

Apps sit on a small set of shared libraries for images, video, speech, memory, identity and storage, mostly written in C and C++. A bug in one of them reaches every app at once. Rebuilding those libraries in memory-safe Rust removes whole bug classes from everything above them, which no app-level fix can do.

Every few years the apps on your phone change. The libraries under them do not. The code that decodes a photo, plays a video call, compresses a backup, allocates memory or checks a login was mostly written in C or C++ a long time ago, and almost every product on earth links the same few copies. That shared layer is the foundation of the internet in a literal sense: everything above it inherits its strengths and its bugs.

MATA's position is that this layer has to be replaced, not decorated. The public program for that work is described on remadewithrust.com, and the list of what has shipped is in why the rebuild matters to a household. This page is the reasoning behind it: why the bottom of the stack, why a rewrite rather than a wrapper, and why it matters to someone who just wants their family's files to stay theirs.

The Same Failure, Year After Year

Ask any security team where serious vulnerabilities come from and the answer barely moves. Buffer overflows. Use-after-free. Out-of-bounds reads in code that parses bytes from strangers: an image, a video frame, a font, a network packet. Microsoft has said for years that roughly seventy percent of the vulnerabilities in its products are memory-safety bugs, and Google reports a similar share for Chromium.

That is not a shortage of careful engineers. It is what happens when the base layer is written in a language that cannot refuse those mistakes. You can patch a C decoder forever; you cannot patch "C will let you write past the end of a buffer" out of C. US agencies have said as much: CISA's case for memory-safe roadmaps asks vendors to plan their way off memory-unsafe code, and the NIST Secure Software Development Framework points the same way.

Because the libraries are shared, a single flaw does not stay in one product. It turns up in the photo viewer, the messaging app, the browser and the file manager on the same afternoon.

What a Real Rebuild Looks Like

It is not a new social network or a new web framework. It is the dull, shared parts getting a memory-safe twin that reads and writes the same formats and protocols. Same shape at the boundary, new code inside.

The Libraries Everyone Links

A shared primitive is a library so common nobody remembers choosing it. JPEG and PNG. H.264, Opus and AV1. The allocator a process runs on. The zstd compressor in a backup tool. The code that verifies a sign-in token. The database an app assumes will be there when the network is not. The rebuild targets that list, FFmpeg-class media, Whisper-class speech, mimalloc-class allocation, OAuth-class identity and Firebase-class data, rather than a toolkit only MATA can use.

Rewrites, Not Wrappers

A Rust crate that calls libpng over FFI has not changed anything that matters. It puts a tidy interface in front of the same C heap. The rule for the rebuild is that the hot path is Rust: bounds-checked slices and a borrow checker that turns use-after-free into a compile error. Where code must talk to hardware or an existing ABI, that seam stays small and reviewed, and it is never the product. The Foundation of Trust applies the same instinct to your vault, with AES-256-GCM, Argon2id and keys in a secure chip.

Open Licences Keep It Shared

If the safe version is proprietary or copyleft, only some people can use it, and the old C stays everywhere else. So the rebuilt libraries are MIT, BSD or Apache-2.0: anyone can embed, inspect and patch the code MATA runs. The IETF kept internet protocols open so no single company owns them; permissive, memory-safe implementations keep those protocols usable after the original C libraries stop being maintained. The Electronic Frontier Foundation has long made the wider argument for infrastructure people can run without permission.

What It Changes in Your House

You never have to compile a codec to depend on the foundation of the internet. Each time a camera feed, a voice memo, a login or a file sync runs on your own hardware, it runs somebody's library. The question is which one.

Freedom Needs a Sound Base

Digital freedom means owning your money, identity, passwords, contacts, files and home devices. A local-first setup from the Freedom Guide that still runs an unsafe media stack and a pile of *-sys crates is safer in name only. Once the base is rebuilt, the outcomes are concrete: scanned letters read by OCR on your machine, voice notes transcribed in the house, logins checked on the device instead of by a provider that logs each one.

Your Devices as the Cloud

Rented cloud keeps storage, compute and identity in someone else's building and meters your access to them. A distributed cloud spreads that work across devices you hold, encrypting everything and sharing through capabilities. That only works if the database, the identity code and the codecs can run on a laptop or a small home box without a C toolchain and a vendor SDK riding along. The Eras of Digital Freedom lay out that path from a personal vault to a home computer.

Where to Read Next

For the repositories, browse github.com/remade-with-rust or the crate cards. The language case is why Rust becomes the standard, and one library worth following is the Rust FFmpeg rebuild. If you are starting with your own vault, set up Friends backup first so self-custody survives a lost phone. Replacing the foundation of the internet is slow, because every app already linked the old code, and it compounds for the same reason: each safe library is reused by everything that adopts it.

FAQ

Short answers already in this article.

What share of serious vulnerabilities come from memory-safety bugs?

Microsoft has said for years that roughly seventy percent of the vulnerabilities in its products are memory-safety bugs, and Google reports a similar share for Chromium. Buffer overflows, use-after-free and out-of-bounds reads dominate.

Which libraries count as part of that shared foundation?

The ones every product links without thinking: JPEG and PNG decoders, H.264, Opus and AV1 codecs, the process allocator, the zstd compressor, the code that verifies an identity token, and the database an app trusts to hold its state.

Is a Rust wrapper around a C library a rebuild?

No. A crate that calls libpng over FFI still runs libpng's code on libpng's heap. A rebuild means the hot path is Rust, with bounds-checked slices and the borrow checker, and any seam to hardware or an existing ABI is small and reviewed.

Why do the rebuilt libraries use permissive licences?

So anyone can embed, inspect and patch the same code MATA runs. Copyleft or a vendor licence at the bottom of the stack decides who is allowed to ship. MIT, BSD and Apache-2.0 keep that decision open.

What changes for a person once the foundation is rebuilt?

Scanned documents can be read by OCR on your own machine, voice notes transcribed without a Python service in a data centre, and logins verified on the device with no OAuth provider logging each one.