frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Refrax – my Arc Browser replacement I made from scratch

https://refrax.website/
2•kageroumado•1h ago
Open the same tab in two browser windows. In Chrome or Safari, you get two unconnected pages. In Arc, one window shows a placeholder. In Zen, it silently creates a duplicate.

In Refrax, the browser I built, both windows show the same page updating live. The same web page, in as many windows as you want.

This shouldn't be possible. WebKit's WKWebView can exist in exactly one view hierarchy at a time. With macOS 26, Apple added a SwiftUI API separating WebView from WebPage, so you can end up with multiple views referencing the same page. But if you try it, your app crashes. WebKit source code has a precondition with this comment: "We can't have multiple owning pages regardless, but we'll want to decide if it's an error, if we can handle it gracefully, and how deterministic it might even be..."

So here's how I did it.

CAPortalLayer is an undocumented private class that's been in macOS since 10.12. It mirrors a layer's composited output by referencing the same GPU memory, not copying it. Every scroll, animation, or repaint reflects instantly. This is what powers Liquid Glass effects, the iOS text selection magnifier, and ghost images during drag and drop. Apple uses portals for effects. I use them to put the same web page in two windows.

Refrax keeps one real WKWebView per tab and displays a CAPortalLayer mirror everywhere else. When you click a different window, the coordinator moves the real view there and the old window gets a portal. You can't tell which is which.

This sounds simple in theory, but making this actually work seamlessly took quite a lot of effort. Each macOS window has its own rendering context, and the context ID updates asynchronously, so creating a portal immediately captures a stale ID and renders nothing. The portal creation needs to be delayed, but delaying creates a visual gap. I capture a GPU snapshot using a private CoreGraphics function and place it behind the portal as a fallback. Another hard part is that none of it is documented. Portals are very capricious and would crash the app if you use them incorrectly. I had to inspect the headers and then disassemble the binaries to explore exactly how it works in order to build something robust.

I never worked on a browser before this, I've only been a user. I started using Arc in 2022. I remember asking for an invite, learning the shortcuts, slowly getting used to it. I didn't like it at first as it had too much Google Chrome in it for my taste, and I'd been using Safari at the time. But it grew on me, and by the time it was essentially abandoned and sold to Atlassian, I couldn't go back to Safari anymore. I tried everything: Zen, SigmaOS, Helium. None felt right, and I didn't want another Chromium fork. WebKit ships with the OS, but all you get is the rendering engine. Tabs, history, bookmarks, passwords, extensions, everything else has to be made separately. And so, being a very reasonable person, I decided to make my own Arc replacement from scratch.

And I did. Refrax is built in Swift and Objective-C with no external dependencies. The app itself is less than 30 MB. I have 393 tabs open right now using 442 MB of RAM; 150 tabs in Safari was already over 1 GB. I've been using it daily for over a month, and so have some of my friends.

The portal mirror is just one feature. The same approach, finding what Apple built for themselves and using it to create something they didn't think about, runs through the entire browser. You can tint your glass windows with adjustable blend modes and transparency. The sidebar in compact mode samples the page and matches the colors. And it has support for Firefox and Chrome extensions.

The alpha is public. Download from the linked website, enter REFRAX-ALPHA-HACKERNEWS to activate. No account needed. Telemetry is crash reports and a daily active-user ping, nothing else. And if you find a bug – I built this alone, so I'll actually read your report.

Comments

imadch•1h ago
This is a really clever use of CAPortalLayer. Feels like you're essentially bypassing the “one WKWebView per hierarchy” constraint by turning the problem into a rendering problem instead of a state problem.

Curious how you handle input events across mirrored views — does only the “real” view receive interaction and others proxy it, or is there some trick there too?

kageroumado•16m ago
The browser was made as an Arc replacement, and so has most of its features.

Features currently available in the alpha version include: Pinned tabs, tab groups, tab filtering, tab sorting, favorites (Arc model), spaces with optionally different profiles, custom download paths, and authentication via TouchID or password, RSVP reader, split-view for tabs (2, 3, or 4), and a side panel that has its own tabs, per-tab volume and audio control, link previews, custom routing rules for links, you can make all mailto: links open gmail, open all links to a domain in a specific browser, etc., automatically detects phone numbers, flight numbers, and similar info on right click and shows relevant actions, can also convert measurements, can download videos from most services with yt-dlp integration, can be controlled from Claude Code or similar, and has a DSL for the commands, blocks APIs like page visibility, disables copy-paste blocking, strips tracker parameters, shortcuts app integration, calendar integration (will remind of meetings), handoff support, auto-detects and marks tabs as unread when you receive a new message, auto-add custom search engines, can show the memory use of each tab, supports Chrome, Firefox extensions, can pin window to be always on top, make it transparent, or show on every space, windowed fullscreen, tab screenshots and video recording, quick drag and drop shelf

Show HN: Quillium, Git for Writers

https://quillium.bryanhu.com/
1•thatxliner•25s ago•0 comments

Crunchyroll's customer analytics data breached via outsourcing partner Telus

https://twitter.com/IntCyberDigest/status/2035864555805413448
1•badcryptobitch•3m ago•0 comments

ClauseGuard – AI that reviews contracts in 90s, finds hidden risks, redlines

https://www.theclauseguard.com
1•ebuyan•4m ago•0 comments

Show HN: Plot-Hole.com a daily movie puzzle I made

https://www.plot-hole.com/
1•captaincrunch•7m ago•0 comments

Migrating the American Express Payment Network, Twice

https://americanexpress.io/migrating-the-payments-network-twice/
1•madflojo•7m ago•0 comments

PewPew – real-time SSH attack visualizer, single Go binary

https://github.com/awakeelectronik/pewpew
1•awakeelectronik•16m ago•0 comments

How do we build production-ready AI systems?

https://docs.struere.dev
2•MarcoKueks•18m ago•6 comments

Men are losing a key chromosome with age and it may be deadly

https://www.sciencedaily.com/releases/2026/03/260319044711.htm
2•bookofjoe•18m ago•0 comments

Obesity may come in 11 different types, each with their own cause

https://www.newscientist.com/article/2488744-obesity-may-come-in-11-different-types-each-with-the...
1•paulpauper•20m ago•0 comments

Iconic Australian-made pinball machines preserved for generations to come

https://www.abc.net.au/news/2026-03-12/pinball-machines-collected-nfsa-hankin/105971386
3•gnabgib•27m ago•0 comments

What if Elon built a decentralized AI network?

http://heatmine.ai/
1•scharf•29m ago•0 comments

Plexus – Unified API gateway for multiple AI providers

https://github.com/mcowger/plexus
1•indigodaddy•31m ago•0 comments

How HN: A geometric framework for NP-Intermediate classes (OM Theory)

https://github.com/jumapama/OM-Theory-A-Geometric-Framework-for-NP-Intermediate-Classes
1•jumapama•32m ago•0 comments

AskAlf – Self-hosted AI workforce that runs 24/7

https://github.com/askalf/askalf
1•jsprayberry87•35m ago•0 comments

The deep cave bacteria resistant to modern medicine

https://www.bbc.com/future/article/20260318-the-deep-cave-bacteria-resistant-to-modern-medicine
1•Teever•35m ago•1 comments

Unlocking 25 Gigabit/S on 10 GbE Direct Attach Copper

https://kohlschuetter.github.io/blog/posts/2026/03/22/unlock25/
3•kohlschuetter•38m ago•0 comments

Privacy Respecting Age Controls

https://gist.github.com/devinvs/e334f7fb92f8d9b41b821a1dc8a46fde
1•devinvs•43m ago•1 comments

Health: Science Outran the System

https://juliahawkins.substack.com/p/health-how-science-outran-the-system
1•brandonb•43m ago•1 comments

The solar-powered compact car driving Tunisia's electric vehicle revolution

https://www.cnn.com/world/africa/electric-vehicle-solar-tunisia-spc
7•mooreds•54m ago•0 comments

Apply video compression on KV cache to 10,000x less error at Q4 quant

https://github.com/cenconq25/delta-compress-llm
4•polymorph1sm•55m ago•0 comments

The Onion's Exclusive Interview with Sam Altman

https://theonion.com/the-onions-exclusive-interview-with-sam-altman/
1•mooreds•55m ago•0 comments

Zprof – a comptime-configurable and minimal memory profiler for Zig allocators

https://github.com/ANDRVV/zprof
2•andrvv•56m ago•0 comments

VercelNet: The internet but only Vercel apps

https://vercelnet.vercel.app
1•aquajet•57m ago•0 comments

ForgeKV – Redis-compatible KV server in Rust that scales with cores

https://github.com/ForgeKV/forgekv
1•forgekv•57m ago•0 comments

Judge dismisses lawsuit by Sam Altman's sister accusing him of sexual abuse

https://www.reuters.com/legal/government/judge-now-dismisses-lawsuit-by-sam-altmans-sister-accusi...
2•Teever•57m ago•0 comments

Polsia Leaking Customers Secrets

https://twitter.com/NKCSS/status/2035760976377598252
3•NKCSS•1h ago•1 comments

Why I Vibe in Go, Not Rust or Python

https://lifelog.my/episode/why-i-vibe-in-go-not-rust-or-python
5•riclib•1h ago•2 comments

Hawaii storms have caused $1B in damage, governor says

https://www.bbc.com/news/articles/czxrdxn6qwqo
5•tartoran•1h ago•2 comments

Light on Glass: Why do you start making a game engine?

https://analogdreamdev.substack.com/p/light-on-glass
4•atan2•1h ago•0 comments

Claude Code for Academics [pdf]

https://github.com/aspi6246/ClaudeCodeTools/blob/main/Presentations/main.pdf
3•Anon84•1h ago•0 comments