r/emacs • u/Kinneyzhang • 19h ago
egfx-browser 0.6.0: A native cross-platform browser inside Emacs (WKWebView / WebKitGTK / Edge WebView2, zero CEF, zero Emacs patching)
Hi r/emacs,
I'd like to share egfx-browser 0.6.0, a native cross-platform GUI web browser that lives directly inside stock GNU Emacs 29.1+ with zero CEF bundling, zero Emacs binary patching, and zero offscreen pixel copying.
Built on egfx's GPU-less native container host, it mounts each operating system's own multi-process browser engine straight into an Emacs window:
- macOS:
WKWebView(systemWebKit.framework) - Linux:
WebKitGTK(runtimedlopenoflibwebkit2gtk-4.1.so.0, zero-devheaders, X11 and native Wayland) - Windows 11: Microsoft Edge
WebView2(pure C COM) - 4K Video Walkthrough (YouTube): https://www.youtube.com/watch?v=Gbl4Ii7MLIM
- GitHub Monorepo: https://github.com/emacs-gfx/emacs-gfx
- Standalone Package Repo: https://github.com/emacs-gfx/egfx-browser
- Docs: https://emacs-gfx.github.io/egfx-browser/
Highlights
- One Buffer per Page & 4 Switchable Tab UIs: Works with standard
C-x b,C-x 3splits, andqto close, while keeping yourmode-lineintact and limiting chrome to a single vectorheader-line. Switch live betweensidebar,popover,compact, andnonetab UIs, hibernate tabs (z), and restore closed tabs (u). - Keyboard-First Navigation: Unified
completing-readOmnibar (o/t) backed by built-in Emacs 29.1+ SQLite (history,bookmarks, multi-engine search prefixes); non-blocking overlap-free Link Hints (f/F/y f); zero-DOM-pollution counted find (//N/P); automatic modal focus (INPUTon click,C-zpassthrough,ESCstraight back to Emacs); centered floating child-frame?cheatsheet that never reflows the page. Deep Emacs Ecosystem Integration:
- Plugin-free Edit with Emacs (
eedits any live web<textarea>in an Emacs split and commits back withC-c C-c) - One-key Org-mode / Markdown clipping (
y o/y m) and nativeorg-store-link(y l) - Native
bookmark.el(C-x r m/C-x r b) and regexbrowse-urlrouting - Pure Emacs text Reader buffer (
C-u R),html-modesource view (G v),*Browser Console*JS REPL (G c), PDF/PNG export, and native DevTools (<f12>)
- Plugin-free Edit with Emacs (
- Visuals, Sessions & Privacy: Native-first MIT Dark Reader (preserves native dark sites, dynamically themes bright white pages with optional warm sepia), icon-safe custom web fonts, clean Reader Mode (
R), desktop browser cookie/bookmark import (Chrome, Arc, Edge, Brave, Firefox, etc.), pure in-memory private tabs, named multi-profile isolation, native adblock, and UserScripts/UserStyles.
Quick Start (GNU Emacs 29.1+)
git clone https://github.com/emacs-gfx/emacs-gfx
cd emacs-gfx
make -C packages/egfx native-build
make -C apps/egfx-browser nativeThen add to your config:
(add-to-list 'load-path "/path/to/emacs-gfx/packages/egfx")
(add-to-list 'load-path "/path/to/emacs-gfx/apps/egfx-browser")
(require 'egfx-browser)
(egfx-browser-open "https://emacs-gfx.github.io/egfx-browser/")Run M-x egfx-browser-doctor to check the native engine, SQLite store, and active profile. Feedback and PRs welcome!