making a list of tricks for making static sites (just HTML/CSS/JS) that do cool or useful things

so far I have:

- store all the state in the URL
- use localStorage for state
- make a client for an API that supports cross-origin requests (like the mastodon API)
- load a bunch of data from a static JSON file

some things I've seen but haven't done myself:

- use github as your data storage (like what Decap CMS does)
- use SQLite from a static website with no backend

@b0rk https://htmx.org/ using only static endpoints?
</> htmx - high power tools for html

htmx gives you access to AJAX, CSS Transitions, WebSockets and Server Sent Events directly in HTML, using attributes, so you can build modern user interfaces with the simplicity and power of hypertext htmx is small (~14k min.gz’d), dependency-free, extendable, IE11 compatible & has reduced code base sizes by 67% when compared with react

@corpsmoderne oh man i spent a long time reading about htmx and being confused before I realized it just isn't intended for the kind of Javascript sites I like to make

@b0rk

@corpsmoderne

I'd be interested in hearing more about where htmx fits or makes sense. I don't have enough experience to discern one way or the other.