The 11.8 KB Binary Strangler Fig: Replacing a 166 MB Monolith Without Forking It
The 11.8 KB Binary Strangler Fig
Replacing a 166 MB Monolith Without Forking It
Milestone: Track 29 & Track 30 (sections/chromium-build/chrome-facade/b8g_chrome_facade.cc, pushed live toawesome-os/chromium.googlesource.com@layer/chrome-facade).
Motto: „Nunquam ante, numquam iterum“
1. The Architectural Breakthrough
For two decades, every organization that wanted to customize Chromium — Brave, Electron, NW.js, Carbonyl, Vivaldi, Edge, Opera, Arc — paid the exact same brutal tax:
- Fork a 42,375-file C++ repository,
- Maintain hundreds of invasive
.patchfiles acrosschrome/,content/,viz/, andheadless/, - Spend days rebasing every 4 weeks when Google ships a new milestone.
The Strangler-Fig Binary Facade breaks that cycle permanently.
Out of the entire 166.41 MB of compiled chrome.dll, chrome.exe literally only calls ONE exported C function:
// Windows x64
int __cdecl ChromeMain(HINSTANCE instance, void* sandbox_info, int64_t exe_entry_point_ticks);
// Linux x86_64 ELF
int ChromeMain(int argc, const char** argv);
Nothing else crosses the executable boundary.
2. How the Binary Facade Works
By placing a zero-header, zero-STL b8g_chrome_facade (149 KB Win64 DLL / 11.8 KB Linux x86_64 ELF .so) in front of chrome_real.dll / libchrome_real.so:
- Pre-Line-1 Interception (
1.996 msmeasured on real silicon): - Before line 1 of upstream Chromium executes, our facade boots:
- Hot-swappable
B8gCloudSyncAbi(oss/google/localviaB8G_CLOUD_SYNC_PROVIDER), - Shared-V8
b8g_libnode_abi(0 Bduplicated V8), - Our W^X (
RW → RX) origin-scoped in-memory linker & zero-headerB8G-ABIdispatch tables. - 100% Binary-Transparent Forwarding:
- Resolves
ChromeMainfromchrome_real.dll(orB8G_CHROME_REAL_DLL) and forwards exact arguments & return code. - Works transparently with even unmodified stock
chrome.exe. - Progressive Strangler-Fig Replacement:
- Every subsystem inside the 166 MB monolith can now be replaced one zero-header
B8G-ABIslice at a time — without ever maintaining a fragile C++ patch queue.
3. Single-Machine Cross-Compilation (Zero WSL, Zero Docker)
Because the facade and every B8G-ABI module depend strictly on <stddef.h> + <stdint.h> (no C++ STL across boundaries, no bloated sysroots), Zig 0.14.1 cross-compiles native Linux x86_64-linux-gnu ELF64 .so binaries directly on Windows 11 in under a second:
| Target | Compiler | Binary | Size | Verified Proof | ||||
|---|---|---|---|---|---|---|---|---|
| Windows x64 | .\bin\clang++ |
b8g_chrome_facade.dll |
149 KB |
`[PASS] intercepted ChromeMain in 1996 us \ | cloud_sync=1 (oss) \ | libnode=1 \ | real_chrome=1 \ | forwarded_rc=0xBEA` |
| Linux x86_64 ELF | .\bin\zig c++ -target x86_64-linux-gnu |
libb8g_chrome_facade.so |
11.8 KB |
is_elf=True (0x7F 'E' 'L' 'F'), packaged in b8g-chrome-abi-linux-x64.tar.gz |
4. Why This Matters Beyond Chromium
This pattern is universal. Every legacy software monolith on Earth (chrome.dll, libobs.dll, msedgewebview2.exe, node.exe, System.Management.Automation.dll) enters through a tiny, frozen C entry point.
You do not need a 500-engineer team to replace a monolith. You wrap its entry point in an 11.8 KB zero-header cross-compiled facade, project clean B8G-ABI boundaries behind it, and strangle the monolith from the inside out — at the speed of intent.
Back to The White Dragon Book Index · The Sovereign Chrome Stack Architecture