Architecture Baseline

Cloaktail represents a radical departure from Chromium-based architectures. By stripping away GPU dependency, telemetry kernels, and auto-update infrastructure, we've reduced the binary surface area by over 75%.

Subsystem Implementation Specification Build Status
Language Kernel Zig 0.16.0-dev Memory-Safe / Low-Level Stable
JS Engine Google V8 ES2024+ JIT Integrated
Graphics Layer Skia Graphics Hardware Accelerated Stable
Automation Native CDP JSON-RPC 2.0 Functional

The Zig Kernel

The core engine is written in Zig to provide precise control over memory allocation and binary footprint. We leverage LLVM 19 for multi-architecture optimization, ensuring that Cloaktail runs at native speed across all supported platforms.

Memory Safety

  • Explicit Allocation: Comptime Checked
  • Leak Detection: Built-in GPA
  • Buffer Management: Bounds Protected

Build Artifacts

  • ReleaseSmall: ~42.8 MB
  • Debug Mode: ~188.0 MB
  • Optimization: LLVM 19 / O3

V8 Static Logic Bridge

Cloaktail statically links the Google V8 JavaScript engine. Our custom bridge layer allows the Zig kernel to initialize JS Isolates and Contexts under 1.0μs, bypassing the traditional Chromium "Content" layer overhead.

JS Capabilities

  • Spec Compliance: ECMAScript 2024+
  • JIT Support: Ignition & TurboFan
  • Snapshotting: Native Pre-warming

Bridge Safety

  • C-API Interface: Pinned Handles
  • GC Interaction: Managed Scopes
  • Bridge Latency: < 1.0μs (per-call)

Integrated Dependency Tree

Every library listed below is compiled from source and statically linked into the final Cloaktail binary to ensure absolute zero-dependency deployment and security audits.

Graphics & Layout

  • Skia (Graphics Engine)
  • Harfbuzz (Text Shaping)
  • FreeType (Font Loading)
  • LibPNG / LibJPEG (Decoders)

Infrastructure

  • ICU (Unicode Support)
  • Zlib / Brotli (Compression)
  • OpenSSL (TLS 1.3)
  • LibC++ (Static Linking)

Resource Footprint Metrics

Metrics captured on x86_64 Linux (Debian 12) using the ReleaseSmall build artifact vs. Headless Chromium v122.

Metric Cloaktail Engine Standard Headless Efficiency
Binary Size 42.8 MB ~188.0 MB +77% Savings
Cold Start (TTFB) 44.6 ms 451.2 ms 10x Performance
Idle Core Memory 18.2 MB 124.5 MB +85% Efficiency
Static Dependencies 0 Files ~12 Dlls/Sos Zero-Dep