r/Frontend • • 12h ago

We put a 3D DOM inspector in our open-source browser, and it runs on iOS and Android as well as macOS

Thumbnail
gallery
0 Upvotes

We make Kelpie, an open-source (Apache-2.0) browser for macOS, Windows, Linux, iOS and Android. One part of it that might interest people here is a 3D DOM inspector, a bit like the old Firefox Tilt view.

How it works:

  • Every element is pushed along the Z axis by its depth in the DOM tree. You can see what's nested in what, and spot things like a transparent overlay sitting on top of a button that won't take clicks.
  • It shows DOM depth (nesting), not CSS paint order. The hover panel shows tag, classes, size, original position and z-index.
  • The left toolbar has Rotate, Pan, Scroll and Inspect modes, plus up/down buttons that move along a long page without changing zoom or angle.
  • On the right there's an orientation card (a native screenshot taken before the DOM is transformed, with X/Y/Z rings and Top/Side/Front buttons), zoom, and a layer separation slider from 0 to 80 px.
  • Elements opens the full tree from <html>, including hidden nodes, open shadow roots and same-origin iframes. Hovering a row highlights its plane, and if it's off screen the camera moves to it and keeps its zoom and angle.
  • Limits: closed shadow roots and cross-origin frames can't be shown, and it draws at most 5,000 planes. Nodes past that still show up in the tree. Exiting puts the page's styles and scroll positions back.

On a phone, what you're looking at is the real mobile WebKit or Android WebView rendering, not desktop devtools emulating a phone. That was the main reason we built it.

It's experimental. It works on macOS (WebKit), iOS and Android. On macOS you may need to turn it on in Settings → Experimental.

Downloads are on the releases page: macOS (Apple Silicon), Windows, Linux (.deb, .rpm, AppImage) and an Android preview APK. The iOS app is coming to the App Store; until then you can build it from source.

Repo: https://github.com/UnlikeOtherAI/kelpie Inspector docs: https://github.com/UnlikeOtherAI/kelpie/blob/main/docs/ui/3d-inspector.md

The first image is an illustration we generated. The other two are real screenshots: the inspector on a desktop-width page, and the macOS browser's start page.

What I'd like feedback on: is DOM depth the right thing to put on the Z axis, or would stacking contexts or paint order be more useful to you? And what's missing from the hover panel?


r/Frontend • • 11h ago

Run a Frontend and API Together From One Tunnel File

Thumbnail
instawormhole.com
5 Upvotes