Skip to content
PapyTechnologiesPublic

About

Ultra-lightweight, private, AI-powered web browser built in Rust and Tauri, with native adblocking and live streaming

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

Oxygen Logo

Ultra-lightweight, private, and AI-powered desktop browser built with Rust and Tauri 2.
Native Adblocker • Multi-Provider AI Assistant • High-Performance Live Streaming & Audio Loopback

English • Français

Rust 2024 Tauri 2 WebView2 CI Status Release v0.1.0 License: MIT Platform: Windows 10/11


📸 Showcase

Oxygen Overview

View Interface Gallery
AI Assistant Live Streaming
AI Assistant Streaming Panel
Adblocker Protection Downloads Manager
Adblocker Protection Downloads Manager

⚡ Highlights & Key Capabilities

  • Lean Memory Footprint: Engineered with Rust and optimized native WebView2 runtime flags. Features active LRU tab hibernation, strict utility sub-process mutualization (--enable-features=NetworkServiceInProcess, --renderer-process-limit=1), and working-set compaction:
    • Executable Release Binary: ~6.39 MB (compiled with size optimization opt-level = "z", LTO, and stripped symbols).
    • Rust Host Process: ~26 MB Working Set / ~7 MB Private Bytes at runtime.
    • Multi-Tab Resource Scaling: ~783 MB total system RAM with 8 concurrent heavy tabs (YouTube, Facebook, GitHub, etc.) thanks to bounded caches and native memory hibernation.
    • Inspect your real-time memory usage directly via the browser's built-in RAM diagnostic panel.
  • Native Ad & Tracker Blocker: In-engine URL and domain rule matching inspired by EasyList patterns without the overhead of heavy third-party extensions.
  • AI Assistant with Windows Credential Vault:
    • API keys stored in the Windows Credential Manager, never written to disk.
    • Multi-provider support: Anthropic (Claude), OpenAI (GPT-4o), Google (Gemini), DeepSeek, OpenRouter, and GitHub Models.
    • Transparent opt-in context inspection: page contents are only analyzed upon explicit user trigger.
  • Integrated Live Broadcasting & Screen Capture:
    • DirectX Desktop Duplication (DDA) screen capture pipeline for responsive streaming.
    • Direct RTMP broadcasting to Twitch, YouTube, Kick, or custom streaming ingest servers.
    • Native WASAPI system audio loopback: captures desktop sound directly without third-party virtual audio cables.
    • Hardware-accelerated encoding options (NVENC, QSV, AMF) via supervisor-managed external FFmpeg processes.

🖥️ System Requirements

Component Minimum Requirement Recommended
Operating System Windows 10 (64-bit, build 19041+) Windows 11 (64-bit, latest release)
Runtime Microsoft Edge WebView2 Evergreen Pre-installed on Windows 10 / 11
RAM 2 GB Available 4 GB+
Build Toolchain Rust 1.80+ (Stable) & Cargo Rust 1.82+
Live Streaming None (Core browser) FFmpeg 6.0+ on PATH or in application folder

🚀 Quickstart & Installation (5 Commands)

Clone and compile Oxygen from source in five straightforward steps:

# 1. Clone the repository
git clone https://github.com/PapyTechnologies/Oxygen.git

# 2. Navigate to the project directory
cd Oxygen

# 3. Verify toolchain dependencies and security ACLs
powershell -ExecutionPolicy Bypass -File scripts/check_acl.ps1

# 4. Run automated workspace unit tests
cargo test -p lightbrowser-core

# 5. Compile the optimized release binary
cargo build -p lightbrowser --bin Oxygen --release

The resulting optimized executable will be located at:

target\release\Oxygen.exe

Automated Setup Script: You can also run powershell -ExecutionPolicy Bypass -File scripts/setup_and_build.ps1 to automatically inspect Rust, WebView2, and FFmpeg before compiling.


📖 Step-by-Step Usage

1. Web Navigation & Tab Management

  • Launch Oxygen.exe.
  • Open tabs using Ctrl + T or the + button on the tab bar.
  • Use Ctrl + W to close tabs. Inactive background tabs are automatically trimmed to conserve RAM.

2. Shield & Tracker Blocker

  • The integrated shield operates natively at network interception level.
  • Click the Shield icon in the address bar to view the real-time count of blocked ads, analytics beacons, and trackers on the active page.

3. AI Assistant & Credential Vault

  • Open the AI panel via the sidebar button or shortcut.
  • Select your preferred model provider (Claude, GPT, Gemini, DeepSeek, etc.).
  • When prompted for an API key, enter it once. Oxygen delegates storage to the Windows Credential Manager under target identifier ai-key:<provider>.
  • Use the contextual action buttons (Summarize, Explain, Translate) to query the active page without leaving your workflow.

4. Live Streaming & Recording

  • Open the Streaming panel from the toolbar.
  • Choose your video input source (Display capture via DirectX DDA or active tab window).
  • Enable WASAPI Audio Loopback to capture game/system sound directly.
  • Enter your RTMP URL and Stream Key (stream keys are also isolated in the Windows Credential Vault).
  • Click Start Stream. Oxygen spawns and supervises the background encoding pipeline.

🏗️ Architecture & Security Model

flowchart TD
    subgraph Frontend [Tauri Frontend UI]
        UI[Tabs / Navigation / Address Bar]
        ShieldUI[Adblock Counter UI]
        AIPanel[AI Assistant Sidebar]
        StreamUI[Streaming Modal Panel]
    end

    subgraph IPC_Layer [Tauri 2 IPC Bridge]
        Commands[Rust Tauri Commands]
    end

    subgraph Native_Backend [Oxygen Native Engine]
        CoreEngine[lightbrowser-core: State & Rules]
        Adblock[URL & DNS Filter Engine]
        AudioLoopback[WASAPI Audio Loopback]
        StreamSupervisor[FFmpeg Supervisor]
        KeyringVault[Windows Credential Manager API]
    end

    subgraph Sandboxed_Runtimes [Isolated Subsystems]
        WV2[WebView2 GPU Web Tabs]
        ExtFFmpeg[External FFmpeg Pipeline]
    end

    UI <--> Commands
    ShieldUI <--> Commands
    AIPanel <--> Commands
    StreamUI <--> Commands

    Commands <--> CoreEngine
    CoreEngine <--> Adblock
    CoreEngine <--> KeyringVault
    Commands <--> AudioLoopback
    Commands <--> StreamSupervisor

    CoreEngine <--> WV2
    StreamSupervisor -. Spawns .- ExtFFmpeg
Loading

Privacy & Hardening Principles

  • Credential Storage: API secrets and streaming tokens are never persisted in plaintext, .env files, or configuration databases. They interface directly with Windows DPAPI-protected Credential Store.
  • Process Sandboxing: Untrusted web pages render inside Microsoft WebView2 sandboxed utility processes without direct filesystem access to your system.
  • Telemetry: Oxygen does not collect or send usage data. Network requests are made only to the AI provider or streaming endpoint you configure, and to the sites you visit.

📜 Third-Party Licenses & Disclaimers

Oxygen is distributed under the MIT License. It interfaces with and acknowledges the following technologies:

  • Tauri 2: Dual-licensed MIT / Apache-2.0.
  • Microsoft Edge WebView2: Proprietary redistributable runtime provided by Microsoft Corporation.
  • FFmpeg: Standalone external tool. Oxygen does not statically or dynamically link FFmpeg code; it launches it as an external sub-process. Users providing FFmpeg binaries are subject to LGPL v2.1+ or GPL v3.0+ terms depending on compile flags (e.g. --enable-gpl, --enable-libx264).
  • Filter Lists: Adblock rules are inspired by open community lists (EasyList, Peter Lowe's ad server list) distributed under MPL-2.0 / GPL-3.0.
  • Trademarks: All trademarks and logos (YouTube, Twitch, Kick, OpenAI, Anthropic, Google, Microsoft) belong to their respective copyright holders.

See THIRD_PARTY_NOTICES.md for full notices and upstream links.


🗺️ Roadmap

  • Multi-tab architecture with WebView2 Evergreen backend
  • Built-in ad & tracking network filter
  • Multi-provider AI assistant with Windows Credential Vault storage
  • WASAPI system sound loopback capture
  • Live RTMP streaming supervisor
  • Direct hardware encoding via NVENC / AMF Rust bindings (zero-FFmpeg fallback)
  • Custom user script & style injector
  • Bookmark synchronization with client-side zero-knowledge encryption
  • Linux (WebKitGTK) and macOS (WebKit) cross-platform compilation targets

🤝 Contributing

We welcome community feedback, issue reports, and pull requests! Please read our CONTRIBUTING.md and review our SECURITY.md guidelines before opening a pull request.


💖 Support & Donations

Oxygen is an independent open-source initiative created to keep desktop web browsing lean, private, and powerful. If you find Oxygen helpful, support its maintenance:


📄 License

Distributed under the MIT License. See LICENSE for details.

About

Ultra-lightweight, private, AI-powered web browser built in Rust and Tauri, with native adblocking and live streaming

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages