issues
search
crispinb
/
chrello
kanban-ish front end for checkvist.com
0
stars
0
forks
source link
Minimal htmx-wasm offline prototype
#4
Open
crispinb
opened
1 year ago
crispinb
commented
1 year ago
A new approach:
htmx-based 'front end'
with a service worker redirecting REST requests to:
an in-browser WASM intermediary, which:
converts these to JSON requests, submitted to the Checkvist API
converts the responses to HTML partials, returned to the f/e
caches those responses to provide some offline capability
crispinb
commented
1 year ago
[ ] investigate
https://github.com/richardanaya/wasm-service
for the htmx / wasm basis
[ ] decide between pure hyper / axum for the wasm part
[ ] view lists (or single list) only spike:
htmx call to wasm providing canned data
add real call to checkvist api
cache the returned data for offline test
crispinb
commented
1 year ago
Potential issues:
https://web.dev/service-worker-lifecycle/
service workers have a complex lifecycle, so I doubt they can be 100% relied on. eg. force-reload (& sometimes private windows?) skip the service worker, so progressive enhancement is essential
A new approach: