@invisibleloop/pulse 0.7.3 → 0.8.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/docs/public/docs.css +6 -2
- package/docs/src/pages/home.js +53 -53
- package/package.json +1 -1
- package/public/.pulse-ui-version +1 -1
package/docs/public/docs.css
CHANGED
|
@@ -683,6 +683,7 @@ a:hover {
|
|
|
683
683
|
font-weight: 700;
|
|
684
684
|
letter-spacing: -0.02em;
|
|
685
685
|
margin: 0.75rem 0 1.25rem;
|
|
686
|
+
text-align: center;
|
|
686
687
|
}
|
|
687
688
|
|
|
688
689
|
.ai-first-lead {
|
|
@@ -691,6 +692,9 @@ a:hover {
|
|
|
691
692
|
line-height: 1.75;
|
|
692
693
|
max-width: 72ch;
|
|
693
694
|
margin-bottom: 3rem;
|
|
695
|
+
text-align: center;
|
|
696
|
+
margin-left: auto;
|
|
697
|
+
margin-right: auto;
|
|
694
698
|
}
|
|
695
699
|
|
|
696
700
|
.ai-cols {
|
|
@@ -751,10 +755,10 @@ a:hover {
|
|
|
751
755
|
}
|
|
752
756
|
|
|
753
757
|
.ai-col-list li::before {
|
|
754
|
-
content: "
|
|
758
|
+
content: "✓";
|
|
755
759
|
position: absolute;
|
|
756
760
|
left: 0;
|
|
757
|
-
color: var(--
|
|
761
|
+
color: var(--accent);
|
|
758
762
|
}
|
|
759
763
|
|
|
760
764
|
.ai-col--pulse .ai-col-list li {
|
package/docs/src/pages/home.js
CHANGED
|
@@ -37,7 +37,7 @@ export default {
|
|
|
37
37
|
route: '/',
|
|
38
38
|
meta: {
|
|
39
39
|
title: 'Pulse — The spec-first web framework',
|
|
40
|
-
description: 'Pulse is a server-first
|
|
40
|
+
description: 'Pulse is a server-first Node.js framework with zero runtime dependencies. One spec object per page — server data, state, mutations, and view in plain JS. Streaming SSR, security headers, and production caching are enforced by the architecture.',
|
|
41
41
|
styles: ['/pulse-ui.css', '/docs.css'],
|
|
42
42
|
},
|
|
43
43
|
state: {},
|
|
@@ -67,9 +67,9 @@ export default {
|
|
|
67
67
|
</svg>
|
|
68
68
|
</div>
|
|
69
69
|
<div class="hero-badge">v${version} — EARLY ACCESS</div>
|
|
70
|
-
<p class="hero-kicker">A Node.js framework
|
|
71
|
-
<h1 class="hero-title">
|
|
72
|
-
<p class="hero-subtitle">
|
|
70
|
+
<p class="hero-kicker">A server-first Node.js framework. Zero runtime dependencies.</p>
|
|
71
|
+
<h1 class="hero-title">One spec. One way to build. Production quality by design.</h1>
|
|
72
|
+
<p class="hero-subtitle">Each page is a single plain JS object — server data, client state, mutations, and view co-located in one place. Streaming SSR, security headers, and production caching are enforced by the framework, not left to configuration.<br><strong>Designed for AI agents. Simple enough to write yourself.</strong></p>
|
|
73
73
|
<div class="hero-ctas">
|
|
74
74
|
<a href="/getting-started" class="btn-primary">Get Started</a>
|
|
75
75
|
<a href="/spec" class="btn-secondary">Read the Spec</a>
|
|
@@ -94,30 +94,30 @@ export default {
|
|
|
94
94
|
<div class="home-stat-divider"></div>
|
|
95
95
|
<div class="home-stat">
|
|
96
96
|
<span class="home-stat-value">100</span>
|
|
97
|
-
<span class="home-stat-label">Lighthouse score</span>
|
|
97
|
+
<span class="home-stat-label">Lighthouse score, by design</span>
|
|
98
98
|
</div>
|
|
99
99
|
</section>
|
|
100
100
|
|
|
101
101
|
<section class="how">
|
|
102
102
|
<div class="how-inner">
|
|
103
|
-
<h2 class="section-label">
|
|
103
|
+
<h2 class="section-label">The idea</h2>
|
|
104
104
|
<div class="how-steps">
|
|
105
105
|
<div class="how-step">
|
|
106
106
|
<div class="how-step-num">1</div>
|
|
107
|
-
<h3>
|
|
108
|
-
<p>Everything
|
|
107
|
+
<h3>The spec is the page</h3>
|
|
108
|
+
<p>Everything a page needs lives in one plain JS object — server data, client state, mutations, and view. One format, no split files, no hidden conventions.</p>
|
|
109
109
|
</div>
|
|
110
110
|
<div class="how-connector" aria-hidden="true"></div>
|
|
111
111
|
<div class="how-step">
|
|
112
112
|
<div class="how-step-num">2</div>
|
|
113
|
-
<h3>
|
|
114
|
-
<p>
|
|
113
|
+
<h3>The schema is the contract</h3>
|
|
114
|
+
<p>Every spec is validated at startup. Either it's correct or it's rejected — no ambiguity, no misconfiguration that surfaces later in production.</p>
|
|
115
115
|
</div>
|
|
116
116
|
<div class="how-connector" aria-hidden="true"></div>
|
|
117
117
|
<div class="how-step">
|
|
118
118
|
<div class="how-step-num">3</div>
|
|
119
|
-
<h3>
|
|
120
|
-
<p>Streaming SSR, security headers, and
|
|
119
|
+
<h3>The framework is the guarantee</h3>
|
|
120
|
+
<p>Streaming SSR, security headers, and production caching come from the architecture. You write the product logic. The framework ships the quality.</p>
|
|
121
121
|
</div>
|
|
122
122
|
</div>
|
|
123
123
|
</div>
|
|
@@ -126,8 +126,8 @@ export default {
|
|
|
126
126
|
<section class="home-code">
|
|
127
127
|
<div class="home-code-inner">
|
|
128
128
|
<div class="home-code-header">
|
|
129
|
-
<h2>Everything
|
|
130
|
-
<p>Server
|
|
129
|
+
<h2>Everything a page needs. Nothing it doesn't.</h2>
|
|
130
|
+
<p>Server fetchers, client state, mutations, and view are co-located in one object. No split files. No magic exports. The spec <strong>is</strong> the page — readable, predictable, complete.</p>
|
|
131
131
|
</div>
|
|
132
132
|
<div class="home-code-block">
|
|
133
133
|
${codeWindow({ content: exampleSpec, filename: 'src/pages/dashboard.js', lang: 'JavaScript' })}
|
|
@@ -136,26 +136,26 @@ export default {
|
|
|
136
136
|
</section>
|
|
137
137
|
|
|
138
138
|
<section class="ai-first">
|
|
139
|
-
<div class="section-label">
|
|
140
|
-
<h2 class="ai-first-title">
|
|
141
|
-
<p class="ai-first-lead"
|
|
139
|
+
<div class="section-label">AI + Pulse</div>
|
|
140
|
+
<h2 class="ai-first-title">The constraint is the point. For humans and agents alike.</h2>
|
|
141
|
+
<p class="ai-first-lead">Pulse was designed around a simple observation: when there is only one correct way to build a page, every page is built correctly — whether you wrote it or an AI did. The spec format is the advantage. The schema is the enforcement.</p>
|
|
142
142
|
<div class="ai-cols">
|
|
143
143
|
<div class="ai-col">
|
|
144
|
-
<h3 class="ai-col-title
|
|
144
|
+
<h3 class="ai-col-title">For developers</h3>
|
|
145
145
|
<ul class="ai-col-list">
|
|
146
|
-
<li>
|
|
147
|
-
<li>
|
|
148
|
-
<li>
|
|
149
|
-
<li>
|
|
146
|
+
<li>One format to learn — server, state, mutations, view in one place.</li>
|
|
147
|
+
<li>Production quality is the starting point, not a final audit.</li>
|
|
148
|
+
<li>Specs are short, self-contained, and easy to review.</li>
|
|
149
|
+
<li>Nothing to misconfigure — the framework doesn't give you the choice.</li>
|
|
150
150
|
</ul>
|
|
151
151
|
</div>
|
|
152
152
|
<div class="ai-col ai-col--pulse">
|
|
153
|
-
<h3 class="ai-col-title ai-col-title--good">
|
|
153
|
+
<h3 class="ai-col-title ai-col-title--good">For AI agents</h3>
|
|
154
154
|
<ul class="ai-col-list">
|
|
155
|
-
<li>One
|
|
156
|
-
<li>
|
|
157
|
-
<li>
|
|
158
|
-
<li>
|
|
155
|
+
<li>One valid structure per page — agents can't pick the wrong pattern.</li>
|
|
156
|
+
<li>The schema rejects bad output at startup, not in production.</li>
|
|
157
|
+
<li>Security, SSR, and caching can't be accidentally omitted.</li>
|
|
158
|
+
<li>Consistent output across agents, sessions, and team members.</li>
|
|
159
159
|
</ul>
|
|
160
160
|
</div>
|
|
161
161
|
</div>
|
|
@@ -164,7 +164,7 @@ export default {
|
|
|
164
164
|
<section class="versus">
|
|
165
165
|
<div class="section-label">How Pulse compares</div>
|
|
166
166
|
<h2 class="versus-title">Constraints enforced. Not recommended.</h2>
|
|
167
|
-
<p class="versus-sub">Pulse enforces
|
|
167
|
+
<p class="versus-sub">Pulse enforces correctness out of the box. Other frameworks leave production quality to the developer.</p>
|
|
168
168
|
<div class="versus-table-wrap table-sticky-col">
|
|
169
169
|
<table class="versus-table">
|
|
170
170
|
<thead>
|
|
@@ -195,13 +195,13 @@ export default {
|
|
|
195
195
|
<tr>
|
|
196
196
|
<th scope="row">SSR out of the box</th>
|
|
197
197
|
<td class="v-yes">Streaming SSR, zero config</td>
|
|
198
|
-
<td class="v-partial">Yes, but client hydration adds JS
|
|
198
|
+
<td class="v-partial">Yes, but client hydration adds JS on every page</td>
|
|
199
199
|
<td class="v-partial">Yes, but requires an adapter and client runtime on every page</td>
|
|
200
200
|
</tr>
|
|
201
201
|
<tr>
|
|
202
202
|
<th scope="row">Client JS shipped</th>
|
|
203
|
-
<td class="v-yes">~4 kB brotli
|
|
204
|
-
<td class="v-no">50
|
|
203
|
+
<td class="v-yes">~4 kB brotli on first visit; 0 kB on static pages</td>
|
|
204
|
+
<td class="v-no">50–200 kB+ depending on features used</td>
|
|
205
205
|
<td class="v-partial">~15 kB brotli</td>
|
|
206
206
|
</tr>
|
|
207
207
|
<tr>
|
|
@@ -224,7 +224,7 @@ export default {
|
|
|
224
224
|
</tr>
|
|
225
225
|
<tr>
|
|
226
226
|
<th scope="row">Production build step</th>
|
|
227
|
-
<td class="v-yes">
|
|
227
|
+
<td class="v-yes">Server needs none — <code>node server.js</code> is production. Client bundles are optional.</td>
|
|
228
228
|
<td class="v-no">Required — <code>next build</code></td>
|
|
229
229
|
<td class="v-no">Required — <code>vite build</code></td>
|
|
230
230
|
</tr>
|
|
@@ -243,24 +243,24 @@ export default {
|
|
|
243
243
|
</svg>
|
|
244
244
|
</div>
|
|
245
245
|
<h2>Performance by design</h2>
|
|
246
|
-
<p>
|
|
246
|
+
<p>Performance is not a Pulse feature — it is a structural outcome. A high Lighthouse score is the baseline. There is nothing to configure because the architecture makes the right choices automatically.</p>
|
|
247
247
|
</div>
|
|
248
248
|
<ul class="usp-points">
|
|
249
249
|
<li>
|
|
250
250
|
<strong>Fast LCP by design.</strong>
|
|
251
|
-
The shell
|
|
251
|
+
The shell streams to the browser instantly. Deferred segments arrive as data resolves — no blocking, no flash, no placeholder juggling.
|
|
252
252
|
</li>
|
|
253
253
|
<li>
|
|
254
254
|
<strong>~4 kB of JS on first visit.</strong>
|
|
255
|
-
The shared runtime is brotli-compressed and cached across all navigations. Subsequent pages cost 0.4–0.9 kB.
|
|
255
|
+
The shared runtime is brotli-compressed and cached across all navigations. Subsequent pages cost 0.4–0.9 kB. Static pages ship zero JS.
|
|
256
256
|
</li>
|
|
257
257
|
<li>
|
|
258
258
|
<strong>Zero CLS.</strong>
|
|
259
|
-
The shell occupies the correct layout before data arrives. No
|
|
259
|
+
The shell occupies the correct layout before data arrives. No layout shift because there is no placeholder to replace.
|
|
260
260
|
</li>
|
|
261
261
|
<li>
|
|
262
262
|
<strong>Immutable bundle caching.</strong>
|
|
263
|
-
Production bundles are content-hashed and served with <code>immutable, max-age=31536000</code>.
|
|
263
|
+
Production bundles are content-hashed and served with <code>immutable, max-age=31536000</code>. Returning visitors pay no JS cost on deploy.
|
|
264
264
|
</li>
|
|
265
265
|
</ul>
|
|
266
266
|
</div>
|
|
@@ -274,20 +274,20 @@ export default {
|
|
|
274
274
|
</svg>
|
|
275
275
|
</div>
|
|
276
276
|
<h2>Safe by design</h2>
|
|
277
|
-
<p>Security is not a plugin
|
|
277
|
+
<p>Security is not a plugin in Pulse — it is part of the response pipeline. Every response ships the headers most frameworks leave to the developer to remember to add.</p>
|
|
278
278
|
</div>
|
|
279
279
|
<ul class="usp-points">
|
|
280
280
|
<li>
|
|
281
281
|
<strong>Security headers on every response.</strong>
|
|
282
|
-
<code>X-Frame-Options</code>, <code>X-Content-Type-Options</code>, <code>Referrer-Policy</code>, <code>Permissions-Policy</code>, <code>Cross-Origin-Opener-Policy</code> —
|
|
282
|
+
<code>X-Frame-Options</code>, <code>X-Content-Type-Options</code>, <code>Referrer-Policy</code>, <code>Permissions-Policy</code>, <code>Cross-Origin-Opener-Policy</code> — set automatically, including on 404 and 500 pages.
|
|
283
283
|
</li>
|
|
284
284
|
<li>
|
|
285
285
|
<strong>Declarative state constraints.</strong>
|
|
286
|
-
<code>constraints</code> enforce min/max bounds on state after every mutation.
|
|
286
|
+
<code>constraints</code> enforce min/max bounds on state after every mutation. Values can never go out of range regardless of what the client sends.
|
|
287
287
|
</li>
|
|
288
288
|
<li>
|
|
289
289
|
<strong>Co-located validation.</strong>
|
|
290
|
-
Validation rules live next to the state they guard.
|
|
290
|
+
Validation rules live next to the state they guard. Easy to read, easy to review, impossible to misplace.
|
|
291
291
|
</li>
|
|
292
292
|
<li>
|
|
293
293
|
<strong>Guard before data.</strong>
|
|
@@ -314,16 +314,16 @@ export default {
|
|
|
314
314
|
The server is pure Node.js HTTP. No Express, no Fastify, no React. Nothing to add to <code>package.json</code> to run a production server.
|
|
315
315
|
</li>
|
|
316
316
|
<li>
|
|
317
|
-
<strong>No
|
|
318
|
-
<code>node server.js</code> is production. The build step
|
|
317
|
+
<strong>No server build step.</strong>
|
|
318
|
+
<code>node server.js</code> is production. The optional build step generates content-hashed client bundles — the server runs without it.
|
|
319
319
|
</li>
|
|
320
320
|
<li>
|
|
321
321
|
<strong>esbuild only in development.</strong>
|
|
322
|
-
The one dev dependency that compiles client bundles is esbuild. Fast,
|
|
322
|
+
The one dev dependency that compiles client bundles is esbuild. Fast, zero plugins to configure, never part of the production runtime.
|
|
323
323
|
</li>
|
|
324
324
|
<li>
|
|
325
|
-
<strong>No
|
|
326
|
-
|
|
325
|
+
<strong>No breaking upgrades.</strong>
|
|
326
|
+
Page files have no framework imports. The spec is a plain JS object. There is no framework API surface in your code to break across versions.
|
|
327
327
|
</li>
|
|
328
328
|
</ul>
|
|
329
329
|
</div>
|
|
@@ -381,15 +381,15 @@ export default {
|
|
|
381
381
|
</section>` : ''}
|
|
382
382
|
|
|
383
383
|
<section class="home-cta">
|
|
384
|
-
<h2>
|
|
384
|
+
<h2>One format. Every page. Production ready.</h2>
|
|
385
385
|
<ul class="home-cta-checks">
|
|
386
|
-
<li>
|
|
387
|
-
<li>
|
|
388
|
-
<li>
|
|
389
|
-
<li>
|
|
390
|
-
<li>
|
|
386
|
+
<li>One spec object per page — always valid, always readable</li>
|
|
387
|
+
<li>Streaming SSR and security headers, zero configuration</li>
|
|
388
|
+
<li>100 Lighthouse built into the architecture</li>
|
|
389
|
+
<li>Works with AI agents — and without them</li>
|
|
390
|
+
<li>MIT licensed, zero runtime dependencies</li>
|
|
391
391
|
</ul>
|
|
392
|
-
<p>
|
|
392
|
+
<p>Pulse is in early access. The goal is not to compete on features — it is to eliminate the class of problems that come from having too many of them.</p>
|
|
393
393
|
<div class="home-cta-actions">
|
|
394
394
|
<a href="/getting-started" class="btn-primary">Get Started</a>
|
|
395
395
|
<a href="/spec" class="btn-secondary">Read the Spec</a>
|
package/package.json
CHANGED
package/public/.pulse-ui-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.8.0
|