Skip to content
← Public packages

@kentcdodds/cloudflare-connect-pse-hyperframes

I Built Your Personal Software Ecosystem: Kent C. Dodds's Cloudflare Connect 2026 talk deck, built with HyperFrames. How Kody gives every user one of everything on Cloudflare.

FollowForkOpen app

Files

21-cloudflare-data.html

54 lines · 5.1 KB · HTML
<section data-id="cloudflare-data" data-label="One user's Kody: data" class="slide dt">
	<style>
		.dt .hub { flex-direction: row; gap: 18px; padding: 18px 34px; --accent: var(--sky); }
		.dt .hub .d { font-size: 32px; }
		.dt .hub code { font-size: 40px; color: var(--ink); font-weight: 700; }
		.dt .cell { width: 384px; align-items: flex-start; text-align: left; padding: 18px 22px 20px; gap: 6px; }
		.dt .cell .t { font-size: 36px; gap: 12px; }
		.dt .cell .t .ico { font-size: 38px; }
		.dt .cell .d { font-size: 28px; font-family: var(--mono); color: var(--body); }
		.dt .divider { position: absolute; left: 832px; top: 0; bottom: 10px; width: 0; border-left: 3px dashed var(--line); }
	</style>
	<h2 data-enter>One user's Kody: data</h2>
	<div class="stage" data-enter>
		<span class="divider" aria-hidden="true"></span>
		<svg class="wires" aria-hidden="true">
			<path class="wire" data-name="a1" data-from="ha" data-to="a-art" data-route="vh"></path>
			<path class="wire" data-name="a2" data-from="ha" data-to="a-do" data-route="vh"></path>
			<path class="wire" data-name="a3" data-from="ha" data-to="a-d1" data-route="vh"></path>
			<path class="wire" data-name="a4" data-from="ha" data-to="a-r2" data-route="vh"></path>
			<path class="wire" data-name="a5" data-from="ha" data-to="a-vec" data-route="vh"></path>
			<path class="wire" data-name="a6" data-from="ha" data-to="a-kv" data-route="vh"></path>
			<path class="wire" data-name="b1" data-from="hb" data-to="b-art" data-route="vh"></path>
			<path class="wire" data-name="b2" data-from="hb" data-to="b-do" data-route="vh"></path>
			<path class="wire" data-name="b3" data-from="hb" data-to="b-d1" data-route="vh"></path>
			<path class="wire" data-name="b4" data-from="hb" data-to="b-r2" data-route="vh"></path>
			<path class="wire" data-name="b5" data-from="hb" data-to="b-vec" data-route="vh"></path>
			<path class="wire" data-name="b6" data-from="hb" data-to="b-kv" data-route="vh"></path>
		</svg>
		<div class="node hub" data-node="ha" style="left: 408px; top: 52px"><span class="d">user</span><code>u_8f2c</code></div>
		<div class="node cell cf" data-node="a-art" style="left: 198px; top: 232px"><span class="t"><span class="ico ico-cf-artifacts"></span>Artifacts</span><span class="d">your package repos</span></div>
		<div class="node cell cf" data-node="a-do" style="left: 618px; top: 232px"><span class="t"><span class="ico ico-cf-do"></span>Durable Objects</span><span class="d">idFromName("u_8f2c")</span></div>
		<div class="node cell cf" data-node="a-d1" style="left: 198px; top: 432px"><span class="t"><span class="ico ico-cf-d1"></span>D1</span><span class="d">user_id = 'u_8f2c'</span></div>
		<div class="node cell cf" data-node="a-r2" style="left: 618px; top: 432px"><span class="t"><span class="ico ico-cf-r2"></span>R2</span><span class="d">your mail</span></div>
		<div class="node cell cf" data-node="a-vec" style="left: 198px; top: 632px"><span class="t"><span class="ico ico-cf-vectorize"></span>Vectorize</span><span class="d">your own namespace</span></div>
		<div class="node cell cf" data-node="a-kv" style="left: 618px; top: 632px"><span class="t"><span class="ico ico-cf-kv"></span>Workers KV</span><span class="d">your bundles</span></div>
		<div class="node hub" data-node="hb" style="left: 1256px; top: 52px"><span class="d">user</span><code>u_31d7</code></div>
		<div class="node cell cf" data-node="b-art" style="left: 1046px; top: 232px"><span class="t"><span class="ico ico-cf-artifacts"></span>Artifacts</span><span class="d">their package repos</span></div>
		<div class="node cell cf" data-node="b-do" style="left: 1466px; top: 232px"><span class="t"><span class="ico ico-cf-do"></span>Durable Objects</span><span class="d">idFromName("u_31d7")</span></div>
		<div class="node cell cf" data-node="b-d1" style="left: 1046px; top: 432px"><span class="t"><span class="ico ico-cf-d1"></span>D1</span><span class="d">user_id = 'u_31d7'</span></div>
		<div class="node cell cf" data-node="b-r2" style="left: 1466px; top: 432px"><span class="t"><span class="ico ico-cf-r2"></span>R2</span><span class="d">their mail</span></div>
		<div class="node cell cf" data-node="b-vec" style="left: 1046px; top: 632px"><span class="t"><span class="ico ico-cf-vectorize"></span>Vectorize</span><span class="d">their own namespace</span></div>
		<div class="node cell cf" data-node="b-kv" style="left: 1466px; top: 632px"><span class="t"><span class="ico ico-cf-kv"></span>Workers KV</span><span class="d">their bundles</span></div>
	</div>
	<p class="brand">kody.codes</p>
	<aside class="notes">
		Multi-tenant by construction. Artifacts holds a Git repo per package, job and app. Durable
		Objects are namespaced per user with idFromName(userId): JobManager for cron alarms,
		Mailbox for email, RunLog for history, StorageRunner for each storage id, with SQLite
		inside. D1 holds the relational rows, and every user-owned row carries user_id. R2 holds
		raw email and attachments. Vectorize gives each user their own namespace. Workers KV holds
		published bundles keyed by commit. Two users with the same package name land on different
		objects and different rows.
	</aside>
</section>