{"by":"TonyPeakman","descendants":89,"id":45245138,"kids":[45245551,45245538,45245712,45245157,45246475,45246449,45265321,45245724,45245647,45276223,45246529,45245552,45248284,45246468,45248688,45252188,45247502,45271426],"score":80,"text":"TL;DR: dagger.js is a buildless, runtime-only micro-framework that plays nicely with native Web Components. It uses HTML-first directives (e.g. +click, +load) so you can ship a page by dropping a single &lt;script&gt; from a CDN—no bundlers, no compile step.<p>Why I built it\nModern stacks are powerful but often heavy: bundlers, compile steps, framework DSLs, local CLIs. For internal tools, small apps, and edge&#x2F;serverless deployments, I wanted something you can view-source, paste into a page, and ship.<p>What it is:<p>Runtime-only: no build or VDOM compile; hydrate behaviors directly on HTML.\nHTML directives: e.g. +click, lifecycle +load &#x2F; +loaded &#x2F; +unload &#x2F; +unloaded.\nZero APIs: dagger.js works in pure declarative mode, modules and directives provide everything you need to build your application.\nWeb-Components-first: works alongside Custom Elements; keep concerns local.\nDistributed modules: load small, focused script modules via CDN.\nProgressive enhancement: the page renders without a build step.<p>Use cases:<p>Admin panels &amp; dashboards that don’t warrant a full toolchain\nEmbed widgets, docs-sites with interactive bits\nEdge&#x2F;serverless apps where cold start and simplicity matter<p>Links<p>GitHub: <a href=\"https:&#x2F;&#x2F;github.com&#x2F;dagger8224&#x2F;dagger.js\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;dagger8224&#x2F;dagger.js</a>\nDocs&#x2F;Guide: <a href=\"https:&#x2F;&#x2F;daggerjs.org\" rel=\"nofollow\">https:&#x2F;&#x2F;daggerjs.org</a>\nExamples: <a href=\"https:&#x2F;&#x2F;codepen.io&#x2F;dagger8224&#x2F;pens\" rel=\"nofollow\">https:&#x2F;&#x2F;codepen.io&#x2F;dagger8224&#x2F;pens</a><p>I’d love feedback on edge-cases, and where it breaks. Happy to answer tough questions here.","time":1757899732,"title":"Show HN: Dagger.js – A buildless, runtime-only JavaScript micro-framework","type":"story","url":"https://daggerjs.org"}