frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Hover over your UI element to get its exact location in code

https://loerei.github.io/HoverSource/
2•Loerei•1h ago

Comments

Loerei•1h ago
I found that describing where a broken UI is and taking screenshots for AI agents really sucks. I’m too lazy to explain an indescribable visual bug or capture a millisecond-long flash. I also don’t want to remember which file defines an element, whether it's right in the .tsx or a problem with the Parent Styles in .css. And even if you can point out the exact file, your agent still has to dig through thousands of lines of code to know what on earth you're yapping about.

In a 7700-file monorepo like Cal.com, simply giving the right file in the prompt for your agent saves about 68.9% of execution time and 94.2% of the tokens your agent needs to digest. HoverSource gives all the needed information and further pushes it to -88.5% time and -94.5% tokens, basically skipping the entire digging session and jumping straight to reasoning and executing. The save is linear to how big your codebase is.

I want to save tokens, but don’t want to spend my time and energy digging manually, and a junior dev tossed into a monorepo definitely doesn't either. So?

I built HoverSource: a zero-invasive UI-to-Code inspector. In plain English, it translates what you see into what the AI needs, just by hovering your mouse. Under the hood, it extracts the precise DOM context and exact line-and-column source locations straight to your clipboard.

There is also Design Mode, which generates a design layout specification block. It directs the AI on how to position a new element relative to existing ones, basically saving you from ambiguous "put it in the top-right corner under the header" prompts.

I support a wide range of frameworks, including React, Vue, Svelte, Angular, SolidJS, Preact, Astro, and Vanilla JS/TS. Most work perfectly fine out of the box by hooking into the internal data structures—like Virtual DOM instances or React Fiber nodes. Most modern frameworks naturally attach internal metadata to DOM elements during development; you just need to install HoverSource with npm and run it in your project with hs start or hs dev. Vue, Angular, and Vanilla are a little more stubborn, so I built invasive mode for them, either during compile-time or runtime.

For Vue: You just need a quick compile-time setup (`hs install --vue`). This hooks into the compiler to inject source metadata directly into the DOM dataset, making sure the overlay can catch exactly where your components live.

For Angular: Similar story. You run `hs install --angular` to set up compile-time tagging. It uses custom transformers to explicitly map template elements to their source files and lines via attributes like ngSourceFile, since Angular doesn't hand those out for free in dev mode.

For Vanilla: It goes the runtime monkey-patching route. The overlay intercepts core browser APIs like document.createElement and the innerHTML setter. Whenever an element is instantiated, it captures the V8 stack trace in the background, extracts the exact file and line, and sticks it into a data-hs-source attribute on the fly.

Either way, you need at most 3 steps to make it work. Or you can also try it live with zero config at https://loerei.github.io/HoverSource/.

Show HN: Microsoft releases Flint, a visualization language for AI agents

https://microsoft.github.io/flint-chart/#/
54•chenglong-hn•1h ago•22 comments

Show HN: Follow London Trains in 3D

https://ride.nexttrain.london/
96•mgranados•4d ago•43 comments

Show HN: Foreman, a self-hosted LLM gateway for cost aware model routing

https://github.com/Northwood-Systems/foreman
2•AndrewLiu96•1h ago•0 comments

Show HN: Monogram, AI app with on the fly generation

https://www.monogram.ai/
8•edouard1234567•1h ago•3 comments

Show HN: Requirements Engineering with Formal Verification

https://fizzbee.ai/
9•jayaprabhakar•1h ago•0 comments

Show HN: Davit, a Apple Containers UI

https://davit.app
374•xinit•1d ago•95 comments

Show HN: Hover over your UI element to get its exact location in code

https://loerei.github.io/HoverSource/
2•Loerei•1h ago•1 comments

Show HN: Kastor – Terraform-style specs for AI agents

https://github.com/weirdGuy/kastor
29•weirdguy•3h ago•17 comments

Show HN: Rowboat – Open-source, local-first alternative to Claude Desktop

https://github.com/rowboatlabs/rowboat
209•segmenta•1d ago•90 comments

Show HN: Neil the Seal Game

https://neiltheseal.app/
80•dalemhurley•3d ago•65 comments

Show HN: Chiptune Radio

https://chiptune-radio.alephvoid.com/
71•bootbloopers•18h ago•15 comments

Show HN: Maps for e-scooters (hills and battery routing)

https://battmap.com
2•thepaulthomson•3h ago•2 comments

Show HN: Pug.sh – open-source product analytics

https://pug.sh/
9•BajajScooter•6h ago•5 comments

Show HN: Free Mermaid Diagram Editor

https://moxiedocs.com/mermaid-diagram-editor
49•ghosts_•19h ago•12 comments

Show HN: PostgreSQL performance and cost across 23 EC2 instance types

https://postgres.saneengineer.com
94•anivan_•1d ago•19 comments

Show HN: Docx-CLI: agents read/edit Word docs using 1/2 the time and tokens

https://github.com/kklimuk/docx-cli
68•kirillklimuk•1d ago•30 comments

Show HN: Fast, native Mac file manager (filters, fuzzy find, 9 MB, no Electron)

https://whimfiles.com
97•whimbyte•1d ago•68 comments

Show HN: Halo – open-source, tamper-evident runtime evidence for AI agents

https://github.com/bkuan001/halo-record
37•brian_kuan•1d ago•23 comments

Show HN: Pretend to Vibe Code, but Meditate

https://tomreinert.de/no-effort/
5•tom2948329494•2h ago•4 comments

Show HN: your website as a TUI, over SSH right now

11•keepamovin•18h ago•5 comments

Show HN: Turbo – An open-source, fast HTTP server with a real-time config GUI

https://turbo.okzgn.com
8•okzgn•18h ago•2 comments

Show HN: Pulpie – Models for Cleaning the Web

https://usefeyn.com/blog/pulpie-pareto-optimal-models-for-cleaning-the-web/
101•snyy•2d ago•25 comments

Show HN: Ghostmeet – Self-hosted meeting transcription and summaries

https://ghostmeet.sshlab.dev/
16•swq115•17h ago•7 comments

Show HN: I built an AI spritesheet generator for game developers

https://www.autosprite.io
4•autosprite•20h ago•0 comments

Show HN: OCR Buddy: local browser OCR for code, formulas (LaTeX) and tables

https://github.com/Fanfulla/OCR-buddy
6•Fanfulla•21h ago•0 comments

Show HN: Jot, a menu bar app that catches a thought before it's gone

https://jot.arunbrahma.com
5•masterbrewer•12h ago•5 comments

Show HN: Codex-profiles – isolated Codex CLI/Desktop profiles

https://ducksss.github.io/codex-profiles/
3•chaipinzheng•12h ago•0 comments

Show HN: Baerly-storage, a document DB that runs per request, no DB server

https://github.com/Gusto/baerly-storage
17•baerbaerbaer•1d ago•1 comments

Show HN: Context Warp Drive – Deterministic context folding for AI agents

https://github.com/dogtorjonah/context-warp-drive
10•Dr_Jonah•1d ago•5 comments

Show HN: Homegames. An open-source game platform I've been making for 8 years

https://homegames.io
227•homegamesjoseph•2d ago•55 comments