@zvndev/darkmown 2.0.1 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/CHANGELOG.md +18 -0
- package/README.md +61 -6
- package/SECURITY.md +4 -4
- package/docs/cli.md +8 -0
- package/docs/spec-alignment.md +26 -6
- package/grammar/wd-directives.gbnf +58 -0
- package/package.json +5 -1
- package/site/_/footer.wd +1 -1
- package/site/_/nav.wd +1 -0
- package/site/pages/app.wd +1 -1
- package/site/pages/blog/zero-js-by-default.md +1 -1
- package/site/pages/docs/index.wd +19 -2
- package/site/pages/index.wd +5 -3
- package/site/pages/playground/index.js +158 -0
- package/site/pages/playground/index.skin +128 -0
- package/site/pages/playground/index.wd +51 -0
- package/site/pages/showcase/index.wd +1 -1
- package/src/builder.js +15 -8
- package/src/catalog.js +586 -0
- package/src/cli.js +8 -0
- package/src/compiler/actions.js +45 -12
- package/src/compiler/collections.js +16 -11
- package/src/compiler/context.js +52 -3
- package/src/compiler/expr-ast.js +296 -0
- package/src/compiler/fetch.js +12 -4
- package/src/compiler/forms.js +78 -24
- package/src/compiler/fs-reader.js +25 -0
- package/src/compiler/includes.js +20 -15
- package/src/compiler/index.js +1 -1
- package/src/compiler/loops.js +26 -8
- package/src/compiler/media.js +21 -7
- package/src/compiler/page.js +68 -15
- package/src/compiler/predicates.js +29 -18
- package/src/compiler/reader.js +60 -0
- package/src/compiler/state.js +81 -32
- package/src/compiler/structure.js +48 -17
- package/src/compiler.js +57 -6
- package/src/grammar.js +131 -0
- package/src/headers.js +15 -13
- package/src/index.js +2 -0
- package/src/runtime.js +77 -45
- package/src/statics.js +6 -7
- package/types/compiler.d.ts +13 -0
- package/types/index.d.ts +1 -0
package/site/pages/index.wd
CHANGED
|
@@ -26,9 +26,11 @@ The left file is Markdown. It is also a running app — a live search filter, ad
|
|
|
26
26
|
|
|
27
27
|
<div class="hero-install"><code>npx @zvndev/darkmown init my-site</code><button type="button" class="copy-cmd" data-copy-cmd aria-label="Copy install command">Copy</button></div>
|
|
28
28
|
|
|
29
|
+
<p class="hero-try"><a href="/playground/">or try it in your browser →</a></p>
|
|
30
|
+
|
|
29
31
|
<ul class="hero-stats">
|
|
30
32
|
<li><strong>0 KB</strong><span>framework JS on static pages</span></li>
|
|
31
|
-
<li><strong>~7.
|
|
33
|
+
<li><strong>~7.7 KB</strong><span>one runtime, CI-enforced < 8 KB</span></li>
|
|
32
34
|
<li><strong>1</strong><span>loop and one binding to learn</span></li>
|
|
33
35
|
<li><strong>MIT</strong><span>zero runtime dependencies</span></li>
|
|
34
36
|
</ul>
|
|
@@ -112,14 +114,14 @@ Markdoc.renderers.react(content, React, {
|
|
|
112
114
|
|
|
113
115
|
</section>
|
|
114
116
|
|
|
115
|
-
:note "Static pages ship zero JavaScript. The moment a page asks for reactivity — like this very homepage — one ~7.
|
|
117
|
+
:note "Static pages ship zero JavaScript. The moment a page asks for reactivity — like this very homepage — one ~7.7 KB gzipped runtime loads (CI-enforced under 8 KB), never before. JS optional, CSS optional, always."
|
|
116
118
|
|
|
117
119
|
<section class="props">
|
|
118
120
|
|
|
119
121
|
## Three rules, no escape hatch
|
|
120
122
|
|
|
121
123
|
- **Zero-JS static.** A page with no state ships no framework JavaScript. `/markdown/` and `/docs/` prove it — open them and check the network tab.
|
|
122
|
-
- **One runtime.** Every reactive page shares the same ~7.
|
|
124
|
+
- **One runtime.** Every reactive page shares the same ~7.7 KB gzipped runtime, CI-enforced under 8 KB. No per-component bundles, no hydration tax that scales with your UI.
|
|
123
125
|
- **One loop, one binding.** `@loop … into …` is the only loop; `{ name }` is the only interpolation. Nothing else to learn, nothing else to misuse.
|
|
124
126
|
|
|
125
127
|
</section>
|