I love this.<p>And, I have my own take on it.<p>My static site generator Svekyll (<a href="https://extrastatic.dev/svekyll/svekyll-cli" rel="nofollow">https://extrastatic.dev/svekyll/svekyll-cli</a>) has an option you can add to the _config.yml: "view_source"<p>If you do that, it provides a link at the bottom of each post which says "view source to this post" If you click on that, you can see all the files used to generate that post, and then download a zip which is a fully packaged tiny svelte app that builds into that blog page.<p>For example, this blog post on embeddings has a bunch of svelte components, embeds an embedding model right inside the page and runs it via JavaScript. If you scroll all the way down, you can download the zip file, unzip it and run "npm i && npm run build && cd build && npx http-server -o" and you can see the fully built blog.<p><a href="https://webiphany.com/2024-04-29-distance-sean-shawn" rel="nofollow">https://webiphany.com/2024-04-29-distance-sean-shawn</a><p>PRs describing this feature:<p><a href="https://extrastatic.dev/svekyll/svekyll-cli/-/merge_requests/40" rel="nofollow">https://extrastatic.dev/svekyll/svekyll-cli/-/merge_requests...</a>
<a href="https://extrastatic.dev/svekyll/svekyll-cli/-/merge_requests/46" rel="nofollow">https://extrastatic.dev/svekyll/svekyll-cli/-/merge_requests...</a>
<a href="https://extrastatic.dev/svekyll/svekyll-cli/-/merge_requests/47" rel="nofollow">https://extrastatic.dev/svekyll/svekyll-cli/-/merge_requests...</a>