Better HN
topnewbestaskshowjobs
Log inSign up

Aejkatappaja

3 karma · joined Apr 8, 2026 (7mo ago) · 15 submissions

Software Engineer | OSS Maintainer

https://aejkatappaja.com/

Submissions

comment 4mo ago · link · parent

Looks nice!

Will give it a try, you won a star

comment 4mo ago · link · parent

Nice, but genuinely curious vs a Raycast snippet: is local JSON + full-text search over history the real selling point? Because for quick capture Raycast already nails that.

comment 4mo ago · link · parent

I always recommend these lectures, awesome!

comment 7mo ago · link · parent

Thanks!

comment 7mo ago · link · parent

Thanks, let me know how it goes!

comment 7mo ago · link · parent

Thanks! Right now it relies entirely on getBoundingClientRect(), so if an element has no dimensions yet the block gets skipped.

For images/videos I added a load event listener that re-measures once the media loads and takes up space.

For elements that are truly dynamic with no initial size, the best workaround today is setting explicit dimensions via CSS (min-height, aspect-ratio, etc.) which is good practice for CLS anyway.

That said, something like data-shimmer-width / data-shimmer-height attributes to manually override sizing could work well for that use case.

Adding it to the backlog!

comment 7mo ago · link · parent

Thanks! That's just how custom elements work in React, you use the HTML tag name directly.

React 19 has native custom element support so <phantom-ui> works as-is, no wrapper needed.

Keeping it as a single HTML tag across all frameworks is the whole point.

8.

Show HN: Phantom UI – Skeleton that measures your real DOM (Web Component, 8kb)(github.com ↗)

6 points · by Aejkatappaja · 7mo ago · 8 comments