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

08-how-import.html

57 lines · 3.7 KB · HTML
<section data-id="how-import" data-label="How the import works" class="slide how-import">
	<style>
		.how-import .module { align-items: stretch; text-align: left; padding: 26px 40px 30px; gap: 6px; }
		.how-import .module .t { justify-content: flex-start; font-size: 40px; margin-bottom: 4px; }
		.how-import .module code { display: block; white-space: pre; font-size: 34px; line-height: 1.38; padding: 2px 12px; margin: 0 -12px; border-radius: 10px; color: var(--body); }
		.how-import .module code .s { color: var(--string); }
		.how-import .module code[data-hot="1"] { background: color-mix(in srgb, var(--green) 22%, transparent); color: var(--ink); }
		.how-import .bundle { padding: 26px 34px; }
		.how-import .bundle code { color: var(--green); font-size: 30px; }
		.how-import .dw { --accent: var(--orange-soft); padding: 28px 40px; }
		.how-import .dw .slots { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 8px; }
		.how-import .dw .slot { font-family: var(--mono); font-size: 30px; padding: 6px 18px; border-radius: 10px; border: 2px dashed var(--line); color: var(--muted); }
		.how-import .dw .slot[data-in="1"] { border-style: solid; border-color: var(--orange-soft); color: var(--ink); background: var(--orange-fill); }
	</style>
	<h2 data-enter>How the import works</h2>
	<div class="stage" data-enter>
		<svg class="wires" aria-hidden="true">
			<path class="wire" data-name="r1" data-from="module" data-to="b1" data-route="v"></path>
			<path class="wire" data-name="r2" data-from="module" data-to="b2" data-route="v"></path>
			<path class="wire" data-name="m-dw" data-from="module" data-to="dw" data-route="v" data-lane="-50"></path>
			<path class="wire" data-name="b1-dw" data-from="b1" data-to="dw"></path>
			<path class="wire" data-name="b2-dw" data-from="b2" data-to="dw"></path>
			<path class="wire" data-name="result" data-from="dw" data-to="module" data-route="v" data-lane="50"></path>
		</svg>
		<div class="node module" data-node="module" style="left: 832px; top: 150px">
			<span class="t"><span class="ico ico-claude"></span>Agent: one module, two imports</span>
			<code data-line="1">import bondAreaShades from
  <span class="s">"kody:@kentcdodds/home-controls/bond-area-shades"</span></code>
			<code data-line="2">import runMorningBriefing from
  <span class="s">"kody:@kentcdodds/morning-briefing"</span></code>
		</div>
		<div class="node bundle" data-node="b1" style="left: 236px; top: 566px">
			<span class="t">home-controls</span>
			<span class="d">published bundle</span>
			<code>v2.1 · 91e4b07</code>
		</div>
		<div class="node bundle" data-node="b2" style="left: 1420px; top: 566px">
			<span class="t">morning-briefing</span>
			<span class="d">published bundle</span>
			<code>v1.4 · 7b42d0f</code>
		</div>
		<div class="node dw cf" data-node="dw" style="left: 832px; top: 566px">
			<span class="t"><span class="ico ico-cloudflare"></span>One Dynamic Worker</span>
			<span class="slots"><span class="slot" data-slot="m">your module</span><span class="slot" data-slot="b1">home-controls</span><span class="slot" data-slot="b2">morning-briefing</span></span>
		</div>
	</div>
	<p class="brand">kody.codes</p>
	<aside class="notes">
		The specifier is not a prompt. The agent sends one module with two kody:@ imports. Each
		import resolves inside your org to that package's published bundle: the importable module
		built at publish time for the published commit, indexed in D1 with its modules in Workers
		KV. A package's own kody:@ imports are already inside its bundle. Then the module and both
		bundles become one module graph, and a Worker Loader loads it into a single Dynamic Worker
		that runs once. The result goes back to the agent. Publish a new version and the next
		import resolves to the new commit.
	</aside>
</section>