Nectar, a Rust-like React that compiles to WebAssembly
Details
- External ID
- 48805857
- Source
- HN
- Company
- —
- Product
- Nectar, a Rust-like React that compiles to WebAssembly
- Website domain
- buildnectar.com
- Launched
- July 6, 2026
- Cohort
- —
- Upvotes
- 29
- Upvotes percentile
- 0.7789725209080047
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:26 p.m.
- Updated at
- Sept. 7, 2026, 9:26 p.m.
Description
After a pretty rough gig experience, I wanted to remind myself that I was a vaguely capable developer. I had recently jumped on the Rust train and wanted a Rust equivalent of React that is more performant and easier to work with. I also wondered if I could effectively eject Javascript. This project came from that... Nectar is a programming language that compiles your entire app, logic, state, and rendering, to WebAssembly. JavaScript is reduced to a roughly 10 KB syscall layer that only bridges WASM to the DOM.The origin: I set out to get React-style ergonomics with better performance, and about halfway in I realized I had hit the ceiling of what was possible going through the browser's DOM (Blink/C++) and a diffing step. So I stopped fighting it and built my own signal-driven rendering layer that compiles to WASM and updates exactly the DOM nodes that changed, in O(1), with no virtual DOM and no garbage collector.What it is right now:- One binary. The same compiler does formatting, linting, testing, a dev server, an LSP, and SSR (although SSR is underdeveloped). - Fine-grained signals. Each binding updates on its own, so there is no diffing pass. - A Rust-inspired borrow checker for compile-time safety. - Language-level keywords for the patterns you reach for constantly on the web: component, store, router, form, auth, payment. - SEO and Screen Readers. It compiles to two DOMs from the same source so the app stays visible to screen readers and crawlers.Honest status, because this is early and it is mostly one person:- The "no JavaScript" line has an asterisk. WASM cannot touch the DOM directly, so there is a small JS bridge (about 10 KB) that as of this moment I cannot overcome on major browsers. - The numbers on the site (a counter is ~10 KB versus ~387 KB for React plus JS) are real but small examples, not a full-app shootout. I would not read them as more than they are. They are intentionally poorly architected to measure throughput at massive scales. (contrived) - License is BSL 1.1, so read that before you build anything real on it.Live demo, 10,000 products with a canvas rendering engine, plus a side by side against Svelte 5: https://buildnectar.com/app/canvasSite: https://buildnectar.com Code: https://github.com/HibiscusConsulting/nectar-langI would genuinely like it torn apart. If the core bet is wrong, crush my dreams but tell me how we can make it better, please. I still am not completely sure this is even a good idea. I honestly thought this would be a lot easier to build than it has been. If I had known at the start, I would have never built it, but here we are.
Enrichment
- Theme
- browser automation and scraping for AI
- Vertical
- Horizontal
- Function
- Dev tools
- Audience
- Developer
- AI stance
- Not AI
- Project type
- Hobby / open-source project
- Normalized one-liner
- rust-like language for web assembly
- Manually corrected
- False
Could you build this?
No Creating a custom programming language and compiler that compiles a Rust-like reactive UI framework directly to WebAssembly without JavaScript requires advanced compiler design.
What it would actually take: Involves building an end-to-end compiler toolchain (lexer, parser, type checker, borrow checker/memory model, IR optimization, and code generator targeting WebAssembly directly or via LLVM/Cranelift) alongside a reactive runtime and WASM DOM manipulation bridge. The hard parts are defining safe memory semantics without a heavy GC, fine-grained reactivity in WASM, and zero-JS browser interop. This requires deep systems and compiler engineering expertise.
Discussion
18 comments analyzed.
Competitors mentioned: Svelte, Leptos, Dioxus, egui, Floem
Concerns raised: Mobile and scroll functionality broken on Android/iOS, Safari and Edge browser compatibility issues, Benchmark is misleading - 10k rows without virtualization not representative of real use cases, Initial page load performance still struggling, Custom language syntax unfamiliar vs TypeScript/JavaScript ecosystem
Feature requests: Improve mobile scrolling and interaction, Fix Safari and Edge browser support, Add virtualization or pagination for large datasets, Improve initial load performance, Better accessibility for screen readers and SEO
Competitors
Other products that read as similar to this one — 406 launches clear the similarity bar, closest 8 shown.
Attention rank: #103 of 407 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 248 days after the earliest competitor.
- Titan · hn · 2025-12-11 · 49 upvotes · similarity 0.58
- Ducklang: Achieving 100x more requests per second than NextJS · hn · 2026-01-01 · 9 upvotes · similarity 0.56
- Vanilla JavaScript refinery simulator built to explain job to my kids · hn · 2026-03-02 · 7 upvotes · similarity 0.51
- Attar · hn · 2026-09-18 · 7 upvotes · similarity 0.50
- Ant · hn · 2026-05-09 · 8 upvotes · similarity 0.49
- I vibe-coded a custom WebGPU engine for my MMO · hn · 2026-02-23 · 5 upvotes · similarity 0.48
- Domphy · hn · 2026-06-19 · 11 upvotes · similarity 0.48
- Fusor · hn · 2026-09-27 · 10 upvotes · similarity 0.48
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a dev tools tool for Sales yet.