-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
467 lines (397 loc) · 12.3 KB
/
Copy pathindex.html
File metadata and controls
467 lines (397 loc) · 12.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SpecScript.dev</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,800;0,900;1,400;1,700;1,800;1,900&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=JetBrains+Mono:wght@300;400;500&display=swap" rel="stylesheet">
<style>
*, *::before, *::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--bg: #faf9f7;
--fg: #111;
--muted: #888;
--rule: #ddd;
--accent: #111;
--serif: 'Lora', 'Georgia', serif;
--serif-display: 'Playfair Display', 'Georgia', serif;
--mono: 'JetBrains Mono', 'Courier New', monospace;
}
html {
font-size: 18px;
scroll-behavior: smooth;
}
body {
background: var(--bg);
color: var(--fg);
font-family: var(--serif);
font-weight: 400;
line-height: 1.7;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
::selection {
background: var(--fg);
color: var(--bg);
}
/* --- LAYOUT --- */
.page {
max-width: 680px;
margin: 0 auto;
padding: 0 2rem;
}
/* --- HERO --- */
.hero {
padding: 8rem 0 4rem;
opacity: 0;
animation: fadeIn 1.2s ease forwards;
}
.hero-mark {
font-family: var(--serif-display);
font-size: 5.5rem;
font-weight: 900;
letter-spacing: -0.04em;
line-height: 1.05;
margin-bottom: 0.15em;
}
.hero-mark .dot {
color: var(--muted);
}
.hero-tld {
font-family: var(--mono);
font-size: 0.95rem;
font-weight: 300;
color: var(--muted);
letter-spacing: 0.05em;
margin-bottom: 3rem;
display: block;
}
.hero-tagline {
font-family: var(--serif);
font-size: 1.65rem;
font-weight: 500;
line-height: 1.5;
max-width: 520px;
font-style: italic;
}
/* --- DIVIDER --- */
.rule {
border: none;
border-top: 1px solid var(--rule);
margin: 3.5rem 0;
}
.rule--thick {
border-top-width: 2px;
border-color: var(--fg);
}
/* --- MARKDOWN SYNTAX AS DESIGN --- */
.md-hash {
font-family: var(--mono);
font-weight: 300;
color: var(--muted);
font-size: 0.7em;
margin-right: 0.4em;
user-select: none;
}
.md-bracket {
font-family: var(--mono);
font-weight: 300;
color: var(--muted);
font-size: 0.85em;
}
.md-backtick {
font-family: var(--mono);
font-weight: 300;
color: var(--muted);
font-size: 0.75em;
}
/* --- SECTIONS --- */
.section {
padding: 2rem 0;
opacity: 0;
animation: fadeIn 0.8s ease forwards;
}
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.35s; }
.section:nth-child(4) { animation-delay: 0.5s; }
.section:nth-child(5) { animation-delay: 0.65s; }
.section:nth-child(6) { animation-delay: 0.8s; }
.section:nth-child(7) { animation-delay: 0.95s; }
.section:nth-child(8) { animation-delay: 1.1s; }
.section-heading {
font-family: var(--serif-display);
font-size: 2rem;
font-weight: 800;
letter-spacing: -0.02em;
margin-bottom: 1.2rem;
line-height: 1.2;
}
.section p {
margin-bottom: 1.2rem;
font-size: 1.1rem;
}
.section p:last-child {
margin-bottom: 0;
}
/* --- CODE / SPEC BLOCK --- */
.spec-block {
border-left: 2px solid var(--fg);
padding: 1.5rem 1.5rem;
margin: 2rem 0;
background: transparent;
}
.spec-block p {
font-family: var(--serif);
font-size: 1.05rem;
font-style: italic;
line-height: 1.65;
margin-bottom: 0.8rem;
}
.spec-block p:last-child {
margin-bottom: 0;
}
/* --- LAYER BLOCKS --- */
.layer {
margin: 2.5rem 0;
padding: 0;
}
.layer-number {
font-family: var(--mono);
font-size: 0.75rem;
font-weight: 500;
color: var(--muted);
letter-spacing: 0.12em;
text-transform: uppercase;
margin-bottom: 0.5rem;
}
.layer-title {
font-family: var(--serif-display);
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 0.7rem;
line-height: 1.25;
}
.layer p {
font-size: 1.05rem;
color: #333;
}
/* --- INLINE CODE --- */
.ic {
font-family: var(--mono);
font-size: 0.82em;
font-weight: 400;
background: rgba(0,0,0,0.04);
padding: 0.15em 0.35em;
border-radius: 2px;
}
/* --- THE EXAMPLE --- */
.example {
background: var(--fg);
color: var(--bg);
margin: 3rem -2rem;
padding: 3rem 2rem;
}
.example .page {
padding: 0;
}
.example-label {
font-family: var(--mono);
font-size: 0.7rem;
font-weight: 400;
letter-spacing: 0.15em;
text-transform: uppercase;
color: #777;
margin-bottom: 1.5rem;
}
.example pre {
font-family: var(--mono);
font-size: 0.82rem;
line-height: 1.85;
font-weight: 300;
white-space: pre-wrap;
word-wrap: break-word;
color: #ccc;
}
.example pre .comment {
color: #666;
}
.example pre .directive {
color: #fff;
font-family: var(--serif);
font-style: italic;
font-size: 0.92rem;
}
.example pre .syntax {
color: #555;
}
.example pre .key {
color: #999;
}
/* --- CTA --- */
.cta {
padding: 5rem 0;
text-align: center;
}
.cta-heading {
font-family: var(--serif-display);
font-size: 2.5rem;
font-weight: 900;
font-style: italic;
margin-bottom: 1.5rem;
line-height: 1.3;
}
.cta-link {
font-family: var(--mono);
font-size: 0.85rem;
letter-spacing: 0.05em;
color: var(--fg);
text-decoration: none;
border-bottom: 1px solid var(--fg);
padding-bottom: 0.2em;
transition: opacity 0.2s ease;
}
.cta-link:hover {
opacity: 0.5;
}
/* --- FOOTER --- */
.footer {
padding: 3rem 0 4rem;
text-align: center;
opacity: 0;
animation: fadeIn 0.8s ease 1.3s forwards;
}
.footer p {
font-family: var(--mono);
font-size: 0.7rem;
color: var(--muted);
letter-spacing: 0.05em;
}
/* --- ANIMATIONS --- */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
/* --- RESPONSIVE --- */
@media (max-width: 640px) {
html { font-size: 16px; }
.hero { padding: 5rem 0 3rem; }
.hero-mark { font-size: 3.5rem; }
.hero-tagline { font-size: 1.35rem; }
.section-heading { font-size: 1.6rem; }
.example {
margin: 2rem -1.5rem;
padding: 2rem 1.5rem;
}
.example pre { font-size: 0.75rem; }
.cta-heading { font-size: 2rem; }
}
</style>
</head>
<body>
<div class="page">
<header class="hero">
<h1 class="hero-mark">SpecScript<span class="dot">.</span></h1>
<span class="hero-tld">.dev</span>
<p class="hero-tagline">
Your documents are programs.<br>
Your prose is the programming language.
</p>
</header>
<hr class="rule rule--thick">
<div class="section">
<h2 class="section-heading"><span class="md-hash">##</span> What if markdown could execute?</h2>
<p>
SpecScript is an open specification for programmable documents. It treats every markdown content block as a typed, addressable node in a universal AST — and adds a natural language scripting layer that AI can interpret and run.
</p>
<p>
The document isn't content waiting for a program to act on it. The document <em>is</em> the program.
</p>
</div>
<hr class="rule">
<div class="section">
<h2 class="section-heading"><span class="md-hash">##</span> Three layers</h2>
<div class="layer">
<div class="layer-number">Layer 01 — Translate</div>
<div class="layer-title">Bidirectional JSON ↔ Markdown</div>
<p>
Any structured data becomes readable prose. Any prose round-trips back to structured data. A schema contract ensures determinism where you need it. AI handles the rest. Universal content translation — write once, emit anything.
</p>
</div>
<div class="layer">
<div class="layer-number">Layer 02 — Represent</div>
<div class="layer-title">Data as natural text</div>
<p>
Key-value pairs render as prose, not frontmatter. The document <em>is</em> the data. A human reads a sentence; the system reads a structured field. The content model and the content are the same thing.
</p>
</div>
<div class="layer">
<div class="layer-number">Layer 03 — Execute</div>
<div class="layer-title">Natural language scripts</div>
<p>
Embedded directive blocks run at transformation time. Written in plain language. Interpreted by AI. They can conditionally include content, generate sections from data, call external tools, or reshape the document for a target audience. The scripting language is the one you already speak.
</p>
</div>
</div>
</div>
<div class="example">
<div class="page">
<div class="example-label">A SpecScript document</div>
<pre><code><span class="syntax">---</span>
<span class="key">schema:</span> product-announcement/v1
<span class="key">output:</span> [html, pdf, slack-post]
<span class="syntax">---</span>
<span class="syntax">#</span> Introducing {{product.name}}
{{product.description}}
<span class="syntax">```spec</span>
<span class="directive">Generate a comparison table against our three nearest
competitors using the features listed in the schema.
Cite only public pricing pages.</span>
<span class="syntax">```</span>
<span class="syntax">##</span> Pricing
<span class="syntax">[</span><span class="key">price:</span> $29/mo<span class="syntax">]</span> <span class="syntax">[</span><span class="key">trial:</span> 14 days<span class="syntax">]</span>
<span class="syntax">```spec</span>
<span class="directive">If the output target is slack-post, condense everything
above into three sentences and drop the pricing table.
Keep the tone casual.</span>
<span class="syntax">```</span></code></pre>
</div>
</div>
<div class="page">
<div class="section">
<h2 class="section-heading"><span class="md-hash">##</span> The document carries its own logic</h2>
<p>
Most tools put the intelligence in the application. SpecScript puts it in the document. A conforming runtime reads the directives, interprets them via an AI pass, and emits the result. The app doesn't matter. The format does.
</p>
<div class="spec-block">
<p>
A SpecScript document is simultaneously content, data, and transformation logic. Any runtime that implements the spec can execute it. The reference implementation is <a href="https://github.com/solo-ist/prose" style="color: inherit;">Prose</a>.
</p>
</div>
</div>
<hr class="rule">
<div class="section">
<h2 class="section-heading"><span class="md-hash">##</span> Open source</h2>
<p>
SpecScript is an open specification. The format belongs to no one. Runtimes can be built in any language, for any platform, against any AI provider. If your tool reads markdown, it can read SpecScript.
</p>
<p>
We're drafting the RFC now.
</p>
</div>
<hr class="rule rule--thick">
<div class="cta section">
<p class="cta-heading">Read the spec.<br>Build a runtime.<br>Write a living document.</p>
<a href="https://github.com/solo-ist/specscript" class="cta-link">github.com/solo-ist/specscript</a>
</div>
<footer class="footer">
<p>SpecScript is a solo-ist project.</p>
</footer>
</div>
</body>
</html>