NIRVANA SOVEREIGN BROWSER ENGINE · RUST EDITION 2024

Stop wrapping Chromium. Build from bare bytes.

Almost every mobile browser embeds Blink, WebKit, or GeckoView. Nirvana Browser Engine is an independent 13-crate Pure-Rust rendering stack built from scratch—currently rendering real HTML, CSS, and sandboxed JS pages cleanly in early active R&D, with full web standards ahead on the roadmap.

WORKSPACE ARCHITECTURE
13 Crates
Pure Rust Edition 2024
MEMORY SAFETY
12 / 13
#![forbid(unsafe_code)]
STRESS BENCHMARK
100 / 100
Live sites · 0 panics
UNIT & INTEGRATION
218 Tests
Android ARM64 .so (24 MB)
DIAGRAMMATIC ARCHITECTURE · 01

How Nirvana turns network bytes into pixels.

Every stage runs inside memory-safe Rust crates before crossing one std::panic::catch_unwind-guarded JNI bridge into the Android shell.

INTERACTIVE 6-STAGE PIPELINE · RAW BYTES TO PIXELS

Click or tap any stage to inspect the Rust crates inside it

12 / 13 Crates #![forbid(unsafe_code)]
01Network, TLS & AdBlocknirvana_net · nirvana_adblock · nirvana_url#![forbid(unsafe_code)]02HTML5 & Arena DOMnirvana_html · nirvana_dom#![forbid(unsafe_code)]03CSS3 & Cascadenirvana_css · nirvana_style#![forbid(unsafe_code)]04Sandboxed JS Runtimenirvana_js#![forbid(unsafe_code)]05Layout & Typographynirvana_layout · nirvana_font#![forbid(unsafe_code)]06DisplayList, Raster & JNInirvana_gfx · nirvana_core · nirvana_androidConfined JNI FFI (catch_unwind)
STAGE 01

Network, TLS & AdBlock

#![forbid(unsafe_code)]

Pure-Rust HTTPS networking with native uBlock/ABP filtering before bytes hit the parser.

nirvana_netnirvana_adblocknirvana_url
  • ureq + rustls TLS stack with automatic IPv4 fallback for stalled dual-stack hosts
  • RFC 6265 CookieJar with HttpOnly isolation, CSP enforcement & Mixed-Content checks
  • Native ABP/uBlock domain trie blocks ads, trackers & scriptlets in-stack
DIAGRAMMATIC ARCHITECTURE · 02

13 modular crates & compile-time safety boundary.

Twelve crates enforce #![forbid(unsafe_code)] at compile time. Only nirvana_android bridges the JVM via DirectByteBuffer blit and lock-free prefetch snapshots.

13-CRATE WORKSPACE TOPOLOGY

Strict Safety Boundary: Kotlin UI ↔ Confined JNI ↔ Safe Rust Core

Android Kotlin App Shell (MainActivity · NirvanaView · SurfaceView Blit)Lock-free NavExecutor + 10-Worker Prefetch Pool → DirectByteBuffer zero-copy canvas copyBOUNDARY: nirvana_android (unsafe_code = "allow" · std::panic::catch_unwind on every JNI FFI call)Exposes NavSnapshot prefetch, IME editing buffers, hit-testing, Reader View & Find-in-Page to JVMPURE RUST SAFE CORE — 12 CRATES ENFORCING #![forbid(unsafe_code)] AT COMPILE TIMENETWORK & SHIELDnirvana_netureq + rustls · IPv4 fallback · CSPnirvana_adblocknirvana_urlRFC 3986 URLs + uBlock domain trieDOCUMENT & CASCADEnirvana_html · nirvana_domWHATWG tokenizer · NodeId arenanirvana_css · nirvana_stylevar(), @media, RuleIndex cascadeRUNTIME & GEOMETRYnirvana_js (boa_engine)ES2024 sandbox · DOM & storage shimsnirvana_layoutBlock / Inline / Flex / Grid / TableRASTER & COREnirvana_gfx (tiny-skia)DisplayList · RGBA · PNG/WebP/GIFnirvana_font · nirvana_corefontdue Typeface · Point/Rect/Rgba
CrateLayerSafety PolicyResponsibility
nirvana_urlNetwork & Security#![forbid(unsafe_code)]RFC 3986 parser, base resolution & host/query handling
nirvana_netNetwork & Security#![forbid(unsafe_code)]ureq + rustls TLS, IPv4 fallback, CookieJar, CSP & SOP
nirvana_adblockNetwork & Security#![forbid(unsafe_code)]ABP/uBlock domain trie, cosmetic CSS & scriptlet defusers
nirvana_domDocument & Style#![forbid(unsafe_code)]Arena-backed DomTree with typed NodeId & mutation flags
nirvana_htmlDocument & Style#![forbid(unsafe_code)]WHATWG streaming tokenizer & depth-guarded TreeBuilder
nirvana_cssDocument & Style#![forbid(unsafe_code)]CSS3 tokenizer, @media/@supports, var() & specificity
nirvana_styleDocument & Style#![forbid(unsafe_code)]RuleIndex cascade, inheritance & computed style tree
nirvana_jsRuntime & Geometry#![forbid(unsafe_code)]Boa ES2024 sandbox, bounded loops, DOM & storage shims
nirvana_fontRuntime & Geometry#![forbid(unsafe_code)]Embedded TrueType rasterization & metrics via fontdue
nirvana_layoutRuntime & Geometry#![forbid(unsafe_code)]Block, Inline, Flex, Grid, Table layout & hit-testing
nirvana_gfxRuntime & Geometry#![forbid(unsafe_code)]DisplayList, tiny-skia 32-bit RGBA canvas & image decoders
nirvana_corePlatform & Core#![forbid(unsafe_code)]Shared geometry primitives & unified pipeline foundations
nirvana_androidPlatform & CoreConfined JNI FFINavSnapshot prefetch, ByteBuffer blit & catch_unwind JNI
GLOBAL ENGINE LANDSCAPE

Why independent browser engines matter.

Today's production web rests largely on three corporate/foundation engines—Blink, Gecko, and WebKit—alongside independent from-scratch efforts like Ladybird and Servo. Nirvana aims to bring a fresh sovereign Rust engine from India.

EngineOrganization / CreatorStatusCore LanguageScope & Reality
BlinkGoogle / ChromiumMajor ProductionC++Powers Chrome, Edge, Brave, Opera & Android WebView
GeckoMozillaMajor ProductionC++ / RustPowers Firefox & GeckoView; independent non-Chromium core
WebKitAppleMajor ProductionC++Powers Safari & iOS browsers (originated from KHTML)
LadybirdLadybird InitiativeIndependent AlphaC++ / SwiftSpun out of SerenityOS; building a from-scratch engine
ServoLinux FoundationIndependent ResearchRustParallel Rust browser engine originally started by Mozilla
Nirvana EngineAbhiraj Aryan · Nirvana TeamEarly Active R&DPure Rust (2024)13-crate mobile engine: renders real HTML/CSS/JS pages today; full web standards in progress
HARDWARE, ROBOTICS & SPACE LAB

Embedded systems, autonomous bots, drones & space dreams.

Before diving into Rust browser internals, my engineering started with soldering irons, Arduino, ESP8266, motors, sensors, and flight controllers.

ESP8266 · Cloud TelemetryBuilt & Tested

Global Cloud-Controlled Rover

A connected RC rover driven over the internet from anywhere in the world—bridging a web control interface through a cloud relay straight into an ESP8266 Wi-Fi microcontroller.

Remote Web UIAnywhere on EarthCloud RelayInternet PacketESP8266 MCUWi-Fi TelemetryMotor Drive4WD Chassis
ESP8266 Wi-Fi MCUGlobal Cloud RelayMotor Driver BridgeLive Command Framing
Arduino · Wireless LinkBuilt & Tested

Wi-Fi & Bluetooth Control Vehicles

Low-latency local wireless cars engineered with both Wi-Fi socket control and Bluetooth serial pairing for responsive handheld steering.

Wi-Fi Socket AppBluetooth SerialController + PWMF / B / L / R StatesDifferential DriveLow-Latency Motion
Local Wi-Fi AP/STABluetooth SerialDifferential DriveCustom Chassis Wiring
Arduino · Sensor ControlBuilt & Tested

Line-Following & Human-Following Robots

Closed-loop autonomous bots using infrared reflectance arrays to lock onto floor tracks and ultrasonic distance sensing to track and follow a person smoothly.

IR + UltrasonicTrack / Target ReadArduino ControlError CorrectionL / R Wheel SpeedClosed Feedback Loop
IR Reflectance ArrayUltrasonic RangefinderFeedback Steering LoopPWM Speed Control
Quadcopter · Flight BuildBuilt & Tested

Budget Working DIY Drones

Cost-optimized working quadcopters built from accessible parts—focusing on thrust-to-weight balance, motor/ESC wiring, and stable flight tuning.

RX + IMU GyroPitch / Roll / YawFlight MixerStabilization Loop4× ESC + MotorsCW / CCW Thrust
4-Motor Thrust BalanceESC Power DistributionIMU StabilizationLow-Cost Airframe
Arduino Nano · Space DreamResearch & Future Goal

KalamSat-Inspired Pico-Satellite R&D

Long-term aerospace research inspired by India's 64-gram KalamSat mission—exploring ultra-light Arduino Nano sensor payloads for high-altitude telemetry once aerospace-grade hardware and a dedicated team come together.

Micro PayloadArduino Nano StudyTelemetry SensorsTemp · Pressure · GyroFuture MissionR&D · KalamSat Inspired
Inspired by KalamSat (64g)Arduino Nano Payload StudySensor Telemetry ArchitectureFuture Moonshot Goal
OPEN-SOURCING IN RUST · MADE IN INDIA

Ready to inspect the Rust source or collaborate?

Follow the open-source browser engine rollout on GitHub or explore the full suite of shipped Android apps.