frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Signet.js – A minimalist reactivity engine for the modern web

https://github.com/sntran/signet.js/
2•sntran•1h ago

Comments

sntran•1h ago
I built Signet.js because I wanted a reactive layer for high-performance edge applications that felt more like a browser standard than a "framework."

## The Architectural Context:

I’ve spent years working on high-performance websites and legacy CMS modernizations. I found that existing reactive frameworks often introduce excessive memory overhead or rigid DSLs that don't play well with bespoke, performant, or legacy-injected code. I wanted to see if I could build a "toolbox" instead of a "black box" that stays small.

## Design Philosophy & Trade-offs:

- Why `Proxy`? I initially explored `Object.defineProperty` to minimize bundle size, but I eventually pivoted to `Proxy`. While it adds a tiny bit of runtime trap cost, the engine-level optimizations in modern browsers make the performance impact negligible for UI cycles. More importantly, it allowed for clean, dynamic object handling without the "magic" workarounds required by descriptor-based reactivity. - Standards-First: I’m building Signet to be a thin orchestration layer. It currently leverages `@preact/signals-core` for its robustness, but the architecture is designed as a drop-in reactive layer. My roadmap is to align the internal primitive with the upcoming [TC39 Signals Proposal](https://github.com/tc39/proposal-signals), treating Signet as a bridge to native browser reactivity as it matures.

## Why did I build Signet instead of using [Alpine / petite-vue]?

The `petite-vue` Gap: Petite-vue was the gold standard for "sprinkling" interactivity, but with it no longer being maintained, there's a real need for a modern alternative that bridges the gap between pure HTML and heavy SPA frameworks.

Solving "DOM Pollution": A common friction point I found when moving to Alpine was the "messy DOM"—state-heavy applications often left behind excessive attributes and listeners that made the DOM feel cluttered. Signet is architected to be "DOM-transparent," ensuring that reactive bindings don't leave a trail of debris when components unmount.

Signal-First Architecture: By building Signet directly on a Signal primitive, I’m opting for a "Reactive-first" model. This is fundamentally cleaner than the directive-heavy, "magic-attribute" approach of previous libraries, leading to more predictable data flows and easier debugging.

## Memory Stability:

I ran a 10,000-component mount/unmount stress test using WeakRef to verify garbage collection. The results confirmed stable heap usage, proving that you can achieve leak-free reactivity with Proxy if you manage the dependency graph lifecycle correctly.

## A Note on Implementation:

I approached the development of Signet as a human architect utilizing AI agents for the implementation. My role was defining the constraints (e.g., bundle size limits, dependency lifecycle logic, memory stability) and enforcing the "clean DOM" architecture, while the AI handled the boilerplate and repetitive logic. This allowed me to iterate on the internal signal graph and performance testing at a speed that would have been impossible manually. This project is a deliberate experiment in "AI-assisted architecture"—where the human provides the technical constraints and domain expertise, and the AI acts as a high-speed implementation engine. I also let the AI implementor construct the full document site at https://sntran.github.io/signet.js/.

Anonymous Chatting App

https://tormessenger.lovable.app
1•genx__•1m ago•0 comments

Japan loses its thirst for vending machines

https://www.ft.com/content/a0e80f5d-4c42-443d-9788-2f9924c774bf
1•petethomas•4m ago•0 comments

Ladybird Browser Is in for a Rusty Future [video]

https://www.youtube.com/watch?v=fXnuR6nXJzc
1•nicoburns•4m ago•0 comments

Twistors and Unification

https://www.math.columbia.edu/~woit/wordpress/
1•gone35•12m ago•0 comments

Ask HN: Can the RAM shortage push personal computing behind forever?

1•rishabhaiover•18m ago•0 comments

Tree style invite systems reduce AI slop

https://abyss.fish/tree-style_invite_systems_reduce_AI_slop
1•y1n0•18m ago•1 comments

Ask HN: Do yall know how to connect Roku remote to fire stick

1•igotdaphone•18m ago•0 comments

Show HN: Internet Speed Limiter – throttle iPhone/iPad network for testing

https://apps.apple.com/us/app/internet-speed-limiter/id6760114671
1•thisisjaymehta•18m ago•0 comments

Rack-Mount Hydroponics

https://sa.lj.am/rack-mount-hydroponics/
4•cdrnsf•26m ago•0 comments

How Discord Stores Trillions of Messages

https://discord.com/blog/how-discord-stores-trillions-of-messages
1•thunderbong•28m ago•0 comments

Robinhood Is Hiring

https://twitter.com/JobsNowPR/status/2032866987815125447
1•qwertyuiop_•29m ago•0 comments

Queueing Theory of Traffic

https://jslandy.com/traffic-queue/
3•efavdb•34m ago•0 comments

OpenMW Xbox-UI Fork

https://ilikegothmommys.gitlab.io/openmw-xbox/
1•Acrobatic_Road•40m ago•0 comments

Free Iran War Monitor

https://iran.airealist.org/
1•msukhareva•43m ago•0 comments

This 18 year old has 12 $200 Codex Plans

https://www.youtube.com/watch?v=i4TBE3Et3I8
1•kshri24•48m ago•0 comments

Nvidia Is Planning to Launch an Open-Source AI Agent Platform

https://www.wired.com/story/nvidia-planning-ai-agent-platform-launch-open-source/
1•umangsehgal93•55m ago•0 comments

EA Lays Off Staff Following Record-Breaking Battlefield 6 Launch

https://www.ign.com/articles/ea-lays-off-staff-across-all-battlefield-studios-following-record-br...
1•andrekandre•57m ago•0 comments

Paper: AI models are faking their step by step thinking

https://twitter.com/thetripathi58/status/2032775838329090191
2•MrBuddyCasino•58m ago•0 comments

Dreamfarm product copied by large competitors

https://www.news.com.au/lifestyle/home/interiors/ripped-off-kmart-slammed-for-unaustralian-act/ne...
1•asdefghyk•1h ago•1 comments

Revanced Manager v2

https://revanced.app/announcements?id=20-release-of-revanced-manager-v2
2•super256•1h ago•0 comments

Show HN: Nimhuml – A Nim parser and serializer for HUML

https://github.com/w3Abhishek/nimhuml
1•w3abhishek•1h ago•0 comments

Young people are turning to old-school hobbies to get off their phones

https://apnews.com/article/old-school-hobbies-vintage-analog-grandma-e45fa11ae1422715b6a254004476...
7•1vuio0pswjnm7•1h ago•0 comments

Epic – a visual design editor with a built-in visual sitemap builder

https://no-edit.lovable.app/
1•theme-man•1h ago•3 comments

Show HN: An experiment in giving coding agents long-term memory

1•yacc2•1h ago•0 comments

A most elegant TCP hole punching algorithm

https://robertsdotpm.github.io/cryptography/tcp_hole_punching.html
2•Uptrenda•1h ago•0 comments

S&P 500 Concentration Approaching 50%

https://www.apolloacademy.com/sp-500-concentration-approaching-50/
4•toomuchtodo•1h ago•1 comments

How compilers should evolve in the era of LLM coding

https://twitter.com/ezyang/status/2032932628131721462
1•mfiguiere•1h ago•0 comments

FCC Chair Threatens to Revoke Broadcasters' Licenses over War Coverage

https://www.nytimes.com/2026/03/14/world/middleeast/fcc-broadcasters-iran-war.html
14•KnuthIsGod•1h ago•2 comments

I Asked 4 AI Models to Research the Parasite Cleanse Hype

https://christiantech.substack.com/p/i-asked-4-ai-models-to-research-the
1•snow_mac•1h ago•0 comments

Show HN: WebGPU and WebAssembly SIMD SHA‑256 PoW Miner

https://etherdream.github.io/hash-miner/
1•etherdream•1h ago•0 comments