frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Nucleus- web apps where document is the state, driven by CSS-like rules

https://nucleus.excom.dev/
2•joe-excom•47m ago

Comments

joe-excom•46m ago
Hi HN. I'm Joe, the solo developer behind this project. I left my consulting career 3.5 years ago; I became a farmer/rancher and have been diligently spending my remaining free time on this project.

The Nucleus stack is a few decoupled web technologies that work together as an implementation of the "ASO" architecture (stands for Adapter, State, Orchestrator). Practically, the goal of Nucleus is sophisticated, declarative, simple web apps with low-to-zero JS and no build process.

Architecturally, the "Orchestrator" is the primary innovation here. The original motivation: the web has never had an easy, native way to map data to the document. Every web framework primarily exists to fill this gap; most achieve it by keeping a copy of app state in JS memory and treating the DOM as a compile target. Yet CSS has quietly held templating-like abilities for a long time:

    span::before { content: attr(data-text); }
The "Orchestrator", dubbed "Quark", takes this idea seriously. It's a CSS derivative whose properties mutate the document, rather than style it. It can set attributes, iterate lists, stamp templates, listen for events, dispatch commands, run View Transitions, and more.

"Adapters" are certain elements (native or custom elements) that each bridge the "State" to one external protocol, such as fetch, form, history, WebAuthn, user gestures. They write only their own attributes.

"State" is simply the live DOM.

Two demos to take a look at; both have zero lines of app JS and no build process:

- The Todo demo on Nucleus' landing page is a fully RESTful app in about 30 lines of HTML, 20 lines of Quark.

- The Wrenfield PWA demo is a fictional, full-featured ecommerce site with polished features like SSG, SPA, hydration, web AR/3d models, WebAuthn, View Transitions, touch gestures. Try it on mobile to get a native-like experience. https://wrenfield.excom.dev

The Nucleus site itself is also dogfooding the stack. Opening up your inspector will show a highly declarative document, which is the live State of the app. Other examples are in the sidebar. The Nucleus stack is currently being used in production by a few companies. Open source versions of their apps are coming soon, as demos.

The stack differs from things you're probably aware of:

- HTMX - server owns logic and swaps fragments. Quark owns orchestration on the client, with the document as the only state.

- Lit and other web component frameworks - Custom elements are also part of this stack, and there can potentially be interop. But the ASO architecture advises elements to never render their own opinionated children or business logic. That is left to you.

- Datastar / Alpine - JS expressions or signals inside attrs. Quark lives in a separate, decoupled sheet and has no expressions with side effects. It does not call anything except your named pure functions.

- Blackboard pattern - architecturally, this is the closest relative. The site has an "Advanced -> Prior Art" page which discusses this.

The Nucleus stack is in beta. Here are the edges:

- Quark: unlike CSS, rules will not revert when they stop matching. You need to write the inverse, if needed. This is by design. Regardless, I'm currently exploring the architectural feasibility of rule reversion.

- Quark: certain pseudoclasses like :focus, :checked, :invalid are not observed.

- Quark and the elements rely on some fairly new browser APIs (like the Command API, Baseline 2025). Polyfills will be included in the first stable release.

- Will not play with React and certain other frameworks that lock the DOM to their own internal state. You will need a Shadow DOM as a boundary between them and the Nucleus stack.

Depending on the bundle/loading strategy you choose, the whole stack is somewhere between 1kb and a maximum of 70kb (brotli). This includes all out-of-the-box elements that provide generic functionalities like data fetching, lazy loading, and UI things like drawers, tabs, etc.

I am very keen on hearing feedback on this project. Particularly on the ASO architecture and the Quark language.

Nucleus will remain in beta for a few more weeks, as features are optimized and feedback is incorporated.

Docs: https://nucleus.excom.dev

Repo: https://github.com/excom-dev/nucleus

Architecture: https://nucleus.excom.dev/docs/adapter_state_orchestrator

How Does Yamamoto Do What He Does? Toyota-Like Mechanics

https://robbinsathletics.com/yamamoto-pitching-mechanics/
1•robbinsathletic•1m ago•0 comments

Intelligence Explosion

1•silexia•2m ago•0 comments

Secret protection must scale with software: <2ms classifier in the push path

https://github.blog/ai-and-ml/github-copilot/secret-protection-must-scale-with-software/
1•havens•3m ago•0 comments

Thinking Will Become a Hobby

https://www.spinellis.gr/blog/20261008/?hn261008
1•DSpinellis•3m ago•0 comments

Strands Box: another open source sandbox

https://github.com/strands-agents/box/
3•shenli3514•4m ago•0 comments

CrowdStrike finds possible bank hacker's CV among exposed AI logs

https://www.theregister.com/cyber-crime/2026/10/08/crowdstrike-finds-possible-bank-hackers-cv-amo...
2•sbulaev•4m ago•0 comments

Broke Prod

2•cloaky233•4m ago•1 comments

Tigrisdata/objgit: Git backed by object storage

https://github.com/tigrisdata/objgit
2•corvad•6m ago•0 comments

Bloom Pod

https://bloom.inc/pages/pod
1•whatsreal•6m ago•0 comments

Show HN: Ember – your day never goes as planned, your calendar should adjust

https://demo.emberflow.space/
2•hhhkm•7m ago•1 comments

4-hour battery storage is cheaper to install than gas turbines all across globe

https://www.solarpowerworldonline.com/2026/10/4-hour-battery-storage-is-cheaper-to-install-than-g...
3•01-_-•7m ago•1 comments

German search engine ditches Mistral, bets on Chinese open-source AI

https://www.politico.eu/article/germany-ecosia-search-engine-mistral-china-open-source-ai/
4•everybodyknows•7m ago•0 comments

The Fastest Way to Be Done

https://iamstelios.com/blog/clean-the-kitchen/
1•i8s•7m ago•0 comments

Ario: Decentralized AI Inference and Systemic Transparency Architecture

https://zenodo.org/records/23132717
1•SepehrGhanbari•9m ago•0 comments

Apps that run on your Claude or ChatGPT plan

https://bringyourownsub.com/
2•saimunshahee•9m ago•0 comments

Healthcare for Seniors

https://homehealthcarechicago.care/
1•MWApex•11m ago•0 comments

How to Engineer Flowers [audio]

https://www.asimov.press/p/flowers
1•mailyk•14m ago•0 comments

They just merged my PR for the bound on the integer multiplication problem

https://github.com/CrocSwap/integer-mult-bounds/pull/37
2•GPUboy•14m ago•1 comments

Ask HN: Thoughts on OSC 7501?

2•paaloeye•16m ago•1 comments

Show HN: Convertix – Fast browser-based image to text extractor

https://convertix-fast-imager-co.blogspot.com/p/convertix-extract-text-from-image.html
2•tanjirods•17m ago•0 comments

Cheaters and Whistleblowers in the Agent Swarm

https://institute.deepmind.com/essays/cheaters-and-whistleblowers-in-the-agent-swarm/
3•linkregister•17m ago•0 comments

New gTLD Application for .lan

https://newgtldprogram-aps.icann.org/applications/CD2694T-T26351/summary
19•mzajc•19m ago•12 comments

Introducing Spotify Technology

https://technology.spotify.com/
2•leohonexus•20m ago•0 comments

A peer-to-peer computer management framework

https://clan.lol/
1•anavid7•23m ago•0 comments

HawkEye 360 – the space RF modality imagery can't replace, down 38% since IPO

https://beyondhorizonforesight.substack.com/p/hawkeye-360-record-revenue-a-stock
2•beyondhorizonfs•23m ago•0 comments

Trump administration is suspending Microsoft from a green card program

https://apnews.com/article/h1b-visa-program-vance-microsoft-e7b3a407f822702b269ee277d21343ea
5•ndsipa_pomu•24m ago•1 comments

Watch an Unconstitutional Flock Search

https://www.404media.co/watch-an-unconstitutional-flock-search/
4•mikelgan•25m ago•1 comments

US says big tech barred from sponsoring H-1B workers for green cards

https://www.politico.com/news/2026/10/08/vance-microsoft-adobe-h-1-b-green-cards-01111603
4•kadhirvelm•25m ago•1 comments

Intro to VLIW Kernel Optimization

https://nickgregory.me/post/2026/10/07/vliw-kernel-optimization/
2•kallsyms•26m ago•0 comments

Analyzing Rust Programs with Charon

https://lwn.net/SubscriberLink/1097198/48bd9ebe2a00d3de/
1•mkesper•26m ago•0 comments