-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
296 lines (272 loc) · 35.5 KB
/
Copy pathindex.html
File metadata and controls
296 lines (272 loc) · 35.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>btravstack — an expressive, robust TypeScript backend</title>
<meta name="description" content="Type-safe building blocks for the TypeScript backend: contracts for AMQP & Temporal, and errors as values.">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<!-- btravstack design system: tokens + base theme (see theme/README.md) -->
<link rel="stylesheet" href="theme/theme.css">
<link rel="icon" type="image/svg+xml" href="assets/beetroot.svg">
<link rel="icon" type="image/png" sizes="32x32" href="assets/favicon-32.png">
<link rel="apple-touch-icon" sizes="180x180" href="assets/apple-touch-icon.png">
<meta property="og:title" content="btravstack — an expressive, robust TypeScript backend">
<meta property="og:description" content="Type-safe building blocks for the TypeScript backend: contracts for AMQP & Temporal, and errors as values.">
<meta property="og:image" content="https://btravstack.github.io/assets/og-btravstack.png">
<meta property="og:url" content="https://btravstack.github.io/">
<meta property="og:type" content="website">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="btravstack — an expressive, robust TypeScript backend">
<meta name="twitter:description" content="Type-safe building blocks for the TypeScript backend: contracts for AMQP & Temporal, and errors as values.">
<meta name="twitter:image" content="https://btravstack.github.io/assets/og-btravstack.png">
</head>
<body>
<div data-screen-label="btravstack landing" style="min-height:100vh;background:radial-gradient(1100px 560px at 50% -120px, var(--bg-grad), var(--bg) 62%);color:var(--text);font-family:var(--sans)">
<header style="position:sticky;top:0;z-index:50;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);background:rgba(21,16,28,0.66);border-bottom:1px solid var(--border)">
<div style="max-width:1180px;margin:0 auto;padding:0 28px;height:68px;display:flex;align-items:center;justify-content:space-between;gap:24px">
<a href="#top" style="display:flex;align-items:center;gap:11px;text-decoration:none">
<svg viewBox="0 0 100 124" width="26" height="32" fill="none" style="display:block"><g transform="translate(50,30)"><g transform="rotate(-33)"><path d="M0,3 C-6,-7 -6,-18 0,-27 C6,-18 6,-7 0,3 Z" fill="#2C8B4E"></path></g><g transform="rotate(33)"><path d="M0,3 C-6,-7 -6,-18 0,-27 C6,-18 6,-7 0,3 Z" fill="#2C8B4E"></path></g><path d="M0,5 C-6.5,-7 -6.5,-19 0,-30 C6.5,-19 6.5,-7 0,5 Z" fill="#3DAE62"></path></g><path d="M50,30 C29,28 17,42 17,57 C17,77 38,100 50,107 Z" fill="#CE3D80"></path><path d="M50,30 C71,28 83,42 83,57 C83,77 62,100 50,107 Z" fill="#8E1A52"></path><path d="M30,46 C26,53 27,65 33,74" stroke="#EE9CC4" stroke-width="3.2" stroke-linecap="round" opacity="0.5"></path><path d="M50,107 C49,114 47,118 44,122" stroke="#7A1646" stroke-width="2.6" stroke-linecap="round"></path><path d="M50,107 C51,114 53,117 56,120" stroke="#7A1646" stroke-width="2.6" stroke-linecap="round"></path></svg>
<span style="font-family:var(--sans);font-weight:800;font-size:22px;letter-spacing:-0.5px"><span style="color:var(--accent)">btrav</span><span style="color:var(--text)">stack</span></span>
</a>
<nav style="display:flex;align-items:center;gap:4px">
<a class="navlink nav-hide" href="#philosophy">Philosophy</a>
<a class="navlink nav-hide" href="#projects" style="margin-right:6px">Projects</a>
<a href="https://github.com/btravstack" target="_blank" rel="noopener" class="cta-ghost" style="display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:var(--text);font-weight:700;font-size:14px;padding:9px 15px;border:1px solid var(--border-2);border-radius:10px;transition:background .15s,border-color .15s">
<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path></svg>
GitHub
</a>
</nav>
</div>
</header>
<section id="top" style="position:relative;text-align:center;padding:104px 28px 86px;overflow:hidden">
<div style="position:absolute;top:30px;left:50%;transform:translateX(-50%);width:560px;max-width:90vw;height:380px;background:radial-gradient(closest-side, rgba(224,88,154,0.30), transparent 72%);filter:blur(8px);animation:glowpulse 6s ease-in-out infinite;pointer-events:none;z-index:0"></div>
<div style="position:relative;z-index:1;max-width:900px;margin:0 auto">
<div style="display:inline-flex;animation:floaty 6s ease-in-out infinite;filter:drop-shadow(0 18px 40px rgba(142,26,82,0.45))">
<svg viewBox="0 0 100 124" width="116" height="144" fill="none"><g transform="translate(50,30)"><g transform="rotate(-33)"><path d="M0,3 C-6,-7 -6,-18 0,-27 C6,-18 6,-7 0,3 Z" fill="#2C8B4E"></path></g><g transform="rotate(33)"><path d="M0,3 C-6,-7 -6,-18 0,-27 C6,-18 6,-7 0,3 Z" fill="#2C8B4E"></path></g><path d="M0,5 C-6.5,-7 -6.5,-19 0,-30 C6.5,-19 6.5,-7 0,5 Z" fill="#3DAE62"></path></g><path d="M50,30 C29,28 17,42 17,57 C17,77 38,100 50,107 Z" fill="#CE3D80"></path><path d="M50,30 C71,28 83,42 83,57 C83,77 62,100 50,107 Z" fill="#8E1A52"></path><path d="M30,46 C26,53 27,65 33,74" stroke="#EE9CC4" stroke-width="3.2" stroke-linecap="round" opacity="0.5"></path><path d="M50,107 C49,114 47,118 44,122" stroke="#7A1646" stroke-width="2.6" stroke-linecap="round"></path><path d="M50,107 C51,114 53,117 56,120" stroke="#7A1646" stroke-width="2.6" stroke-linecap="round"></path></svg>
</div>
<h1 style="margin:26px 0 0;font-family:var(--sans);font-weight:800;letter-spacing:-2.5px;line-height:0.95;font-size:clamp(52px,9vw,92px)"><span style="color:var(--accent)">btrav</span><span style="color:var(--text)">stack</span></h1>
<p style="margin:22px auto 0;max-width:560px;font-size:clamp(20px,2.6vw,26px);font-weight:600;line-height:1.3;color:var(--text)">An expressive, robust TypeScript backend.</p>
<p style="margin:16px auto 0;max-width:600px;font-size:17px;line-height:1.6;color:var(--muted)">A small stack of type-safe building blocks for Node — contracts for your messaging and workflows, and a principled way to handle errors. Define things once, let the types flow everywhere.</p>
<div style="display:flex;flex-wrap:wrap;gap:14px;justify-content:center;margin-top:34px">
<a href="https://github.com/btravstack" target="_blank" rel="noopener" class="cta-primary" style="display:inline-flex;align-items:center;gap:9px;text-decoration:none;background:var(--accent);color:#1a0c14;font-weight:700;font-size:15.5px;padding:13px 22px;border-radius:12px;box-shadow:0 12px 30px -10px rgba(224,88,154,0.6);transition:filter .15s">
<svg width="18" height="18" viewBox="0 0 16 16" fill="currentColor"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path></svg>
Explore the org
</a>
<a href="#projects" class="cta-ghost" style="display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:var(--text);font-weight:700;font-size:15.5px;padding:13px 22px;border:1px solid var(--border-2);border-radius:12px;transition:background .15s,border-color .15s">See the packages</a>
</div>
<div style="display:flex;flex-wrap:wrap;gap:9px;justify-content:center;margin-top:30px">
<span style="font-family:var(--mono);font-size:13px;color:var(--muted);background:rgba(255,255,255,0.04);border:1px solid var(--border);padding:6px 12px;border-radius:999px">amqp-contract</span>
<span style="font-family:var(--mono);font-size:13px;color:var(--muted);background:rgba(255,255,255,0.04);border:1px solid var(--border);padding:6px 12px;border-radius:999px">temporal-contract</span>
<span style="font-family:var(--mono);font-size:13px;color:var(--muted);background:rgba(255,255,255,0.04);border:1px solid var(--border);padding:6px 12px;border-radius:999px">unthrown</span>
</div>
</div>
</section>
<section id="philosophy" style="max-width:1180px;margin:0 auto;padding:34px 28px 8px">
<p style="margin:0;font-family:var(--mono);font-size:13px;letter-spacing:1.5px;text-transform:uppercase;color:var(--accent)">Why btravstack</p>
<h2 style="margin:14px 0 0;font-weight:800;letter-spacing:-1px;line-height:1.08;font-size:clamp(28px,4vw,40px);max-width:680px">Building blocks for the TypeScript backend.</h2>
<p style="margin:16px 0 0;max-width:640px;font-size:16.5px;line-height:1.65;color:var(--muted)">Each package is small, focused and does one thing well — but they share a worldview: your interfaces are contracts, failure is part of the type, and the compiler should catch what tests can't.</p>
<div class="grid-3" style="display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:34px">
<div style="background:var(--card);border:1px solid var(--border);border-radius:16px;padding:22px">
<div style="width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:rgba(224,88,154,0.12);border:1px solid rgba(224,88,154,0.25);color:var(--accent);font-family:var(--mono);font-weight:600;font-size:15px">01</div>
<h3 style="margin:16px 0 0;font-weight:700;font-size:18px;letter-spacing:-0.3px;color:var(--text)">Contracts, not guesswork</h3>
<p style="margin:9px 0 0;font-size:14.5px;line-height:1.6;color:var(--muted)">Declare your interface once. Types, autocompletion and validation flow to every call site — publisher, consumer, worker and client.</p>
</div>
<div style="background:var(--card);border:1px solid var(--border);border-radius:16px;padding:22px">
<div style="width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:rgba(224,88,154,0.12);border:1px solid rgba(224,88,154,0.25);color:var(--accent);font-family:var(--mono);font-weight:600;font-size:15px">02</div>
<h3 style="margin:16px 0 0;font-weight:700;font-size:18px;letter-spacing:-0.3px;color:var(--text)">Errors as values</h3>
<p style="margin:9px 0 0;font-size:14.5px;line-height:1.6;color:var(--muted)">Model failure in the type system. Anticipated errors are returned, not thrown — only a true defect ever escapes up the stack.</p>
</div>
<div style="background:var(--card);border:1px solid var(--border);border-radius:16px;padding:22px">
<div style="width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:rgba(224,88,154,0.12);border:1px solid rgba(224,88,154,0.25);color:var(--accent);font-family:var(--mono);font-weight:600;font-size:15px">03</div>
<h3 style="margin:16px 0 0;font-weight:700;font-size:18px;letter-spacing:-0.3px;color:var(--text)">Validated at the edges</h3>
<p style="margin:9px 0 0;font-size:14.5px;line-height:1.6;color:var(--muted)">Standard-Schema validation runs at every network boundary, so malformed data never makes it past the door of your service.</p>
</div>
</div>
</section>
<section id="projects" style="max-width:1180px;margin:0 auto;padding:64px 28px 40px">
<p style="margin:0;font-family:var(--mono);font-size:13px;letter-spacing:1.5px;text-transform:uppercase;color:var(--accent)">The packages</p>
<h2 style="margin:14px 0 30px;font-weight:800;letter-spacing:-1px;font-size:clamp(28px,4vw,40px)">Three libraries, one stack.</h2>
<div class="grid-3" style="display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px">
<div class="pcard" style="display:flex;flex-direction:column;background:var(--card);border:1px solid var(--border);border-radius:20px;padding:26px">
<div style="display:flex;align-items:center;justify-content:space-between;gap:12px">
<div style="display:flex;align-items:center;gap:11px;min-width:0">
<img src="https://cdn.jsdelivr.net/gh/btravstack/amqp-contract@main/docs/public/logo-dark.svg" onerror="this.onerror=null;this.src='assets/logos/amqp-contract-dark.svg'" width="46" height="46" alt="amqp-contract logo" loading="lazy" style="display:block;flex:none">
<span style="display:inline-flex;align-items:center;font-family:var(--mono);font-size:11.5px;font-weight:600;letter-spacing:0.5px;text-transform:uppercase;color:var(--accent);background:rgba(224,88,154,0.1);border:1px solid rgba(224,88,154,0.22);padding:5px 10px;border-radius:999px">Messaging</span>
</div>
<span style="display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:600;color:var(--faint)">
<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"><path d="M8 1.3l2.06 4.17 4.6.67-3.33 3.24.78 4.58L8 11.8l-4.11 2.16.78-4.58L1.34 6.14l4.6-.67L8 1.3z"></path></svg>
<span class="star-count" data-repo="btravstack/amqp-contract">18</span>
</span>
</div>
<h3 style="margin:18px 0 0;font-weight:800;font-size:23px;letter-spacing:-0.6px;color:var(--text)">amqp-contract</h3>
<code style="display:inline-block;margin:7px 0 0;font-family:var(--mono);font-size:13px;color:var(--accent)">@amqp-contract/contract</code>
<p style="margin:14px 0 0;min-height:92px;font-size:14.5px;line-height:1.6;color:var(--muted)">Type-safe contracts for AMQP & RabbitMQ. Define your exchanges, queues and messages once — get types and runtime validation on both ends.</p>
<ul style="list-style:none;margin:18px 0 0;padding:0;display:flex;flex-direction:column;gap:9px">
<li style="display:flex;align-items:flex-start;gap:9px;font-size:14px;line-height:1.4;color:var(--text)"><svg width="15" height="15" viewBox="0 0 16 16" fill="none" style="margin-top:2px;flex:none"><path d="M2.5 8.5l3 3 8-8" stroke="#46B86C" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"></path></svg><span>End-to-end type safety</span></li>
<li style="display:flex;align-items:flex-start;gap:9px;font-size:14px;line-height:1.4;color:var(--text)"><svg width="15" height="15" viewBox="0 0 16 16" fill="none" style="margin-top:2px;flex:none"><path d="M2.5 8.5l3 3 8-8" stroke="#46B86C" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"></path></svg><span>Reliable retry with Dead Letter Queues</span></li>
<li style="display:flex;align-items:flex-start;gap:9px;font-size:14px;line-height:1.4;color:var(--text)"><svg width="15" height="15" viewBox="0 0 16 16" fill="none" style="margin-top:2px;flex:none"><path d="M2.5 8.5l3 3 8-8" stroke="#46B86C" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"></path></svg><span>AsyncAPI 3.0 generation</span></li>
</ul>
<div class="codeblk" data-copy="pnpm add @amqp-contract/contract" title="Click to copy" style="margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:10px;font-family:var(--mono);font-size:12.5px;background:rgba(0,0,0,0.35);border:1px solid var(--border);border-radius:11px;padding:11px 13px;color:var(--text)">
<span style="min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"><span style="color:var(--accent);user-select:none">$ </span>pnpm add @amqp-contract/contract</span>
<svg width="15" height="15" viewBox="0 0 16 16" fill="none" style="flex:none;opacity:0.6"><rect x="5.5" y="5.5" width="8" height="8" rx="1.5" stroke="currentColor" stroke-width="1.4"></rect><path d="M3.5 10.5h-1A1.5 1.5 0 0 1 1 9V2.5A1.5 1.5 0 0 1 2.5 1H9a1.5 1.5 0 0 1 1.5 1.5v1" stroke="currentColor" stroke-width="1.4"></path></svg>
</div>
<div style="display:flex;align-items:center;gap:18px;margin-top:20px;padding-top:18px;border-top:1px solid var(--border)">
<a href="https://github.com/btravstack/amqp-contract" target="_blank" rel="noopener" class="repolink" style="display:inline-flex;align-items:center;gap:7px;text-decoration:none;color:var(--text);font-weight:700;font-size:14px">
<svg width="15" height="15" viewBox="0 0 16 16" fill="currentColor"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path></svg>
Repo
</a>
<a href="https://btravstack.github.io/amqp-contract" target="_blank" rel="noopener" class="repolink" style="display:inline-flex;align-items:center;gap:7px;text-decoration:none;color:var(--muted);font-weight:700;font-size:14px">Docs
<svg width="13" height="13" viewBox="0 0 16 16" fill="none"><path d="M5 3.5h7.5V11M12.5 3.5L3.5 12.5" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"></path></svg>
</a>
</div>
</div>
<div class="pcard" style="display:flex;flex-direction:column;background:var(--card);border:1px solid var(--border);border-radius:20px;padding:26px">
<div style="display:flex;align-items:center;justify-content:space-between;gap:12px">
<div style="display:flex;align-items:center;gap:11px;min-width:0">
<img src="https://cdn.jsdelivr.net/gh/btravstack/temporal-contract@main/docs/public/logo-dark.svg" onerror="this.onerror=null;this.src='assets/logos/temporal-contract-dark.svg'" width="46" height="46" alt="temporal-contract logo" loading="lazy" style="display:block;flex:none">
<span style="display:inline-flex;align-items:center;font-family:var(--mono);font-size:11.5px;font-weight:600;letter-spacing:0.5px;text-transform:uppercase;color:var(--accent);background:rgba(224,88,154,0.1);border:1px solid rgba(224,88,154,0.22);padding:5px 10px;border-radius:999px">Workflows</span>
</div>
<span style="display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:600;color:var(--faint)">
<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"><path d="M8 1.3l2.06 4.17 4.6.67-3.33 3.24.78 4.58L8 11.8l-4.11 2.16.78-4.58L1.34 6.14l4.6-.67L8 1.3z"></path></svg>
<span class="star-count" data-repo="btravstack/temporal-contract">7</span>
</span>
</div>
<h3 style="margin:18px 0 0;font-weight:800;font-size:23px;letter-spacing:-0.6px;color:var(--text)">temporal-contract</h3>
<code style="display:inline-block;margin:7px 0 0;font-family:var(--mono);font-size:13px;color:var(--accent)">@temporal-contract/contract</code>
<p style="margin:14px 0 0;min-height:92px;font-size:14.5px;line-height:1.6;color:var(--muted)">Type-safe contracts for Temporal.io. End-to-end types and automatic validation across workflows, activities and clients.</p>
<ul style="list-style:none;margin:18px 0 0;padding:0;display:flex;flex-direction:column;gap:9px">
<li style="display:flex;align-items:flex-start;gap:9px;font-size:14px;line-height:1.4;color:var(--text)"><svg width="15" height="15" viewBox="0 0 16 16" fill="none" style="margin-top:2px;flex:none"><path d="M2.5 8.5l3 3 8-8" stroke="#46B86C" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"></path></svg><span>Zod validation at every boundary</span></li>
<li style="display:flex;align-items:flex-start;gap:9px;font-size:14px;line-height:1.4;color:var(--text)"><svg width="15" height="15" viewBox="0 0 16 16" fill="none" style="margin-top:2px;flex:none"><path d="M2.5 8.5l3 3 8-8" stroke="#46B86C" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"></path></svg><span>Compile-time implementation checks</span></li>
<li style="display:flex;align-items:flex-start;gap:9px;font-size:14px;line-height:1.4;color:var(--text)"><svg width="15" height="15" viewBox="0 0 16 16" fill="none" style="margin-top:2px;flex:none"><path d="M2.5 8.5l3 3 8-8" stroke="#46B86C" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"></path></svg><span>Result / Future error handling</span></li>
</ul>
<div class="codeblk" data-copy="pnpm add @temporal-contract/contract" title="Click to copy" style="margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:10px;font-family:var(--mono);font-size:12.5px;background:rgba(0,0,0,0.35);border:1px solid var(--border);border-radius:11px;padding:11px 13px;color:var(--text)">
<span style="min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"><span style="color:var(--accent);user-select:none">$ </span>pnpm add @temporal-contract/contract</span>
<svg width="15" height="15" viewBox="0 0 16 16" fill="none" style="flex:none;opacity:0.6"><rect x="5.5" y="5.5" width="8" height="8" rx="1.5" stroke="currentColor" stroke-width="1.4"></rect><path d="M3.5 10.5h-1A1.5 1.5 0 0 1 1 9V2.5A1.5 1.5 0 0 1 2.5 1H9a1.5 1.5 0 0 1 1.5 1.5v1" stroke="currentColor" stroke-width="1.4"></path></svg>
</div>
<div style="display:flex;align-items:center;gap:18px;margin-top:20px;padding-top:18px;border-top:1px solid var(--border)">
<a href="https://github.com/btravstack/temporal-contract" target="_blank" rel="noopener" class="repolink" style="display:inline-flex;align-items:center;gap:7px;text-decoration:none;color:var(--text);font-weight:700;font-size:14px">
<svg width="15" height="15" viewBox="0 0 16 16" fill="currentColor"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path></svg>
Repo
</a>
<a href="https://btravstack.github.io/temporal-contract" target="_blank" rel="noopener" class="repolink" style="display:inline-flex;align-items:center;gap:7px;text-decoration:none;color:var(--muted);font-weight:700;font-size:14px">Docs
<svg width="13" height="13" viewBox="0 0 16 16" fill="none"><path d="M5 3.5h7.5V11M12.5 3.5L3.5 12.5" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"></path></svg>
</a>
</div>
</div>
<div class="pcard" style="display:flex;flex-direction:column;background:var(--card);border:1px solid var(--border);border-radius:20px;padding:26px">
<div style="display:flex;align-items:center;justify-content:space-between;gap:12px">
<div style="display:flex;align-items:center;gap:11px;min-width:0">
<img src="https://cdn.jsdelivr.net/gh/btravstack/unthrown@main/docs/public/logo-dark.svg" onerror="this.onerror=null;this.src='assets/logos/unthrown-dark.svg'" width="46" height="46" alt="unthrown logo" loading="lazy" style="display:block;flex:none">
<span style="display:inline-flex;align-items:center;font-family:var(--mono);font-size:11.5px;font-weight:600;letter-spacing:0.5px;text-transform:uppercase;color:var(--accent);background:rgba(224,88,154,0.1);border:1px solid rgba(224,88,154,0.22);padding:5px 10px;border-radius:999px">Errors</span>
</div>
<span style="display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:600;color:var(--faint)">
<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"><path d="M8 1.3l2.06 4.17 4.6.67-3.33 3.24.78 4.58L8 11.8l-4.11 2.16.78-4.58L1.34 6.14l4.6-.67L8 1.3z"></path></svg>
<span class="star-count" data-repo="btravstack/unthrown">1</span>
</span>
</div>
<h3 style="margin:18px 0 0;font-weight:800;font-size:23px;letter-spacing:-0.6px;color:var(--text)">unthrown</h3>
<code style="display:inline-block;margin:7px 0 0;font-family:var(--mono);font-size:13px;color:var(--accent)">unthrown</code>
<p style="margin:14px 0 0;min-height:92px;font-size:14.5px;line-height:1.6;color:var(--muted)">Explicit errors as values — with a separate defect channel for the unexpected. Only a true defect ever throws, and only at unwrap.</p>
<ul style="list-style:none;margin:18px 0 0;padding:0;display:flex;flex-direction:column;gap:9px">
<li style="display:flex;align-items:flex-start;gap:9px;font-size:14px;line-height:1.4;color:var(--text)"><svg width="15" height="15" viewBox="0 0 16 16" fill="none" style="margin-top:2px;flex:none"><path d="M2.5 8.5l3 3 8-8" stroke="#46B86C" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"></path></svg><span>Errors as values, typed in E</span></li>
<li style="display:flex;align-items:flex-start;gap:9px;font-size:14px;line-height:1.4;color:var(--text)"><svg width="15" height="15" viewBox="0 0 16 16" fill="none" style="margin-top:2px;flex:none"><path d="M2.5 8.5l3 3 8-8" stroke="#46B86C" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"></path></svg><span>A separate defect channel</span></li>
<li style="display:flex;align-items:flex-start;gap:9px;font-size:14px;line-height:1.4;color:var(--text)"><svg width="15" height="15" viewBox="0 0 16 16" fill="none" style="margin-top:2px;flex:none"><path d="M2.5 8.5l3 3 8-8" stroke="#46B86C" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"></path></svg><span>Zero runtime dependencies</span></li>
</ul>
<div class="codeblk" data-copy="pnpm add unthrown" title="Click to copy" style="margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:10px;font-family:var(--mono);font-size:12.5px;background:rgba(0,0,0,0.35);border:1px solid var(--border);border-radius:11px;padding:11px 13px;color:var(--text)">
<span style="min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"><span style="color:var(--accent);user-select:none">$ </span>pnpm add unthrown</span>
<svg width="15" height="15" viewBox="0 0 16 16" fill="none" style="flex:none;opacity:0.6"><rect x="5.5" y="5.5" width="8" height="8" rx="1.5" stroke="currentColor" stroke-width="1.4"></rect><path d="M3.5 10.5h-1A1.5 1.5 0 0 1 1 9V2.5A1.5 1.5 0 0 1 2.5 1H9a1.5 1.5 0 0 1 1.5 1.5v1" stroke="currentColor" stroke-width="1.4"></path></svg>
</div>
<div style="display:flex;align-items:center;gap:18px;margin-top:20px;padding-top:18px;border-top:1px solid var(--border)">
<a href="https://github.com/btravstack/unthrown" target="_blank" rel="noopener" class="repolink" style="display:inline-flex;align-items:center;gap:7px;text-decoration:none;color:var(--text);font-weight:700;font-size:14px">
<svg width="15" height="15" viewBox="0 0 16 16" fill="currentColor"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path></svg>
Repo
</a>
<a href="https://btravstack.github.io/unthrown" target="_blank" rel="noopener" class="repolink" style="display:inline-flex;align-items:center;gap:7px;text-decoration:none;color:var(--muted);font-weight:700;font-size:14px">Docs
<svg width="13" height="13" viewBox="0 0 16 16" fill="none"><path d="M5 3.5h7.5V11M12.5 3.5L3.5 12.5" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"></path></svg>
</a>
</div>
</div>
</div>
</section>
<section style="max-width:1180px;margin:0 auto;padding:30px 28px 80px">
<div style="position:relative;overflow:hidden;background:linear-gradient(120deg, rgba(142,26,82,0.35), rgba(224,88,154,0.12));border:1px solid var(--border-2);border-radius:24px;padding:46px 40px;text-align:center">
<h2 style="margin:0;font-weight:800;letter-spacing:-0.8px;font-size:clamp(24px,3.4vw,34px);color:var(--text)">Build backends you can trust the types of.</h2>
<p style="margin:14px auto 0;max-width:520px;font-size:16px;line-height:1.6;color:var(--muted)">Star the projects, open an issue, or just read the docs. Everything is MIT-licensed and built in the open.</p>
<div style="display:flex;flex-wrap:wrap;gap:14px;justify-content:center;margin-top:26px">
<a href="https://github.com/btravstack" target="_blank" rel="noopener" class="cta-primary" style="display:inline-flex;align-items:center;gap:9px;text-decoration:none;background:var(--accent);color:#1a0c14;font-weight:700;font-size:15px;padding:12px 22px;border-radius:12px;transition:filter .15s">View on GitHub</a>
</div>
</div>
</section>
<footer style="border-top:1px solid var(--border);background:rgba(0,0,0,0.2)">
<div class="foot-grid" style="max-width:1180px;margin:0 auto;padding:48px 28px 30px;display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:32px">
<div>
<div style="display:flex;align-items:center;gap:10px">
<svg viewBox="0 0 100 124" width="24" height="30" fill="none"><g transform="translate(50,30)"><g transform="rotate(-33)"><path d="M0,3 C-6,-7 -6,-18 0,-27 C6,-18 6,-7 0,3 Z" fill="#2C8B4E"></path></g><g transform="rotate(33)"><path d="M0,3 C-6,-7 -6,-18 0,-27 C6,-18 6,-7 0,3 Z" fill="#2C8B4E"></path></g><path d="M0,5 C-6.5,-7 -6.5,-19 0,-30 C6.5,-19 6.5,-7 0,5 Z" fill="#3DAE62"></path></g><path d="M50,30 C29,28 17,42 17,57 C17,77 38,100 50,107 Z" fill="#CE3D80"></path><path d="M50,30 C71,28 83,42 83,57 C83,77 62,100 50,107 Z" fill="#8E1A52"></path><path d="M50,107 C49,114 47,118 44,122" stroke="#7A1646" stroke-width="2.6" stroke-linecap="round"></path><path d="M50,107 C51,114 53,117 56,120" stroke="#7A1646" stroke-width="2.6" stroke-linecap="round"></path></svg>
<span style="font-family:var(--sans);font-weight:800;font-size:19px;letter-spacing:-0.5px"><span style="color:var(--accent)">btrav</span><span style="color:var(--text)">stack</span></span>
</div>
<p style="margin:14px 0 0;font-size:13.5px;line-height:1.6;color:var(--faint);max-width:240px">Type-safe building blocks for the TypeScript backend. Open source, MIT.</p>
</div>
<div style="display:flex;flex-direction:column;gap:11px">
<p style="margin:0 0 4px;font-size:12px;letter-spacing:1px;text-transform:uppercase;color:var(--faint);font-weight:700">Packages</p>
<a class="foot-link" href="https://github.com/btravstack/amqp-contract" target="_blank" rel="noopener">amqp-contract</a>
<a class="foot-link" href="https://github.com/btravstack/temporal-contract" target="_blank" rel="noopener">temporal-contract</a>
<a class="foot-link" href="https://github.com/btravstack/unthrown" target="_blank" rel="noopener">unthrown</a>
</div>
<div style="display:flex;flex-direction:column;gap:11px">
<p style="margin:0 0 4px;font-size:12px;letter-spacing:1px;text-transform:uppercase;color:var(--faint);font-weight:700">Docs</p>
<a class="foot-link" href="https://btravstack.github.io/amqp-contract" target="_blank" rel="noopener">amqp-contract</a>
<a class="foot-link" href="https://btravstack.github.io/temporal-contract" target="_blank" rel="noopener">temporal-contract</a>
<a class="foot-link" href="https://btravstack.github.io/unthrown" target="_blank" rel="noopener">unthrown</a>
</div>
<div style="display:flex;flex-direction:column;gap:11px">
<p style="margin:0 0 4px;font-size:12px;letter-spacing:1px;text-transform:uppercase;color:var(--faint);font-weight:700">Org</p>
<a class="foot-link" href="https://github.com/btravstack" target="_blank" rel="noopener">GitHub</a>
<a class="foot-link" href="https://www.npmjs.com/~btravers" target="_blank" rel="noopener">npm</a>
</div>
</div>
<div style="max-width:1180px;margin:0 auto;padding:18px 28px 34px;border-top:1px solid var(--border);display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between">
<span style="font-size:13px;color:var(--faint)">MIT © 2026 <a class="foot-link" href="https://github.com/btravers" target="_blank" rel="noopener" style="color:var(--muted)">Benoit Travers</a></span>
<a class="foot-link" href="https://github.com/btravers" target="_blank" rel="noopener" style="font-family:var(--mono);font-size:12px;color:var(--faint)">@btravers · betterave 🇫🇷</a>
</div>
</footer>
<div id="toast" role="status" aria-live="polite" style="display:none;position:fixed;bottom:26px;left:50%;transform:translateX(-50%);z-index:80;background:var(--card-soft);border:1px solid var(--border-2);color:var(--text);font-family:var(--mono);font-size:13px;padding:11px 16px;border-radius:11px;box-shadow:0 18px 40px -16px rgba(0,0,0,0.8)">Copied <span id="toast-text" style="color:var(--accent)"></span></div>
</div>
<script>
(function () {
var toast = document.getElementById('toast');
var toastText = document.getElementById('toast-text');
var timer;
document.querySelectorAll('[data-copy]').forEach(function (el) {
el.addEventListener('click', function () {
var text = el.getAttribute('data-copy');
if (navigator.clipboard && navigator.clipboard.writeText) {
navigator.clipboard.writeText(text).catch(function () {});
}
toastText.textContent = text;
toast.style.display = 'block';
clearTimeout(timer);
timer = setTimeout(function () { toast.style.display = 'none'; }, 1600);
});
});
// Live GitHub star counts (falls back to the static numbers on any error).
function formatStars(n) {
return n >= 1000 ? (n / 1000).toFixed(n >= 10000 ? 0 : 1).replace(/\.0$/, '') + 'k' : String(n);
}
document.querySelectorAll('.star-count[data-repo]').forEach(function (el) {
fetch('https://api.github.com/repos/' + el.getAttribute('data-repo'), {
headers: { Accept: 'application/vnd.github+json' }
})
.then(function (r) { return r.ok ? r.json() : Promise.reject(r.status); })
.then(function (d) {
if (typeof d.stargazers_count === 'number') {
el.textContent = formatStars(d.stargazers_count);
}
})
.catch(function () {});
});
})();
</script>
</body>
</html>