patdx / worker-experiments

Mini experiments with Cloudflare workers like HTMX, etc
https://cloudflare-pages-htmx.pages.dev/
11 stars 1 forks source link
cloudflare-workers htmx

cloudflare-pages-htmx (Worker experiments)

Preview: https://cloudflare-pages-htmx.pages.dev/

It uses Vite to prebundle the browser side assets (at the moment, just htmx and tailwind).

The "pages" are generated using Cloudflare Pages functions and they render plain HTML which is served to the client.

It may be possible to improve it slightly by automatically converting static pages to html, but the server response speed is already extremely fast.

Since hydration is not needed, the server side is actually using preact and preact-render-to-string.

remix-htmx

This experiment is archived. Source available at: https://github.com/patdx/worker-experiments/tree/daa8c391928c24d9e3e8578311b086d75c013c35/packages/remix-htmx

Preview: https://remix-alpine-htmx.pmil.workers.dev/

This experiment did not work so well because while Remix supports no Javascript mode, it does not support "some javascript" mode. If I want to have htmx and tailwind bundled and hashed, Remix also seems to be bundling the full react, which defeats the purpose.

cloudflare-solid-app

This experiment is archived. Source available at: https://github.com/patdx/worker-experiments/tree/daa8c391928c24d9e3e8578311b086d75c013c35/packages/cloudflare-solid-app

Preview: https://cloudflare-solid-app.pages.dev/

Just a simple served solid start app.

The URL https://cloudflare-solid-app.pages.dev/api/hello will serve two set-cookie headers.

other archived experiments:

Future ideas: