# Autosave System — Architecture & HTMX Migration Assessment ## Overview The admin panel has a custom JavaScript autosave system (`autosave.js`) that auto-submits forms after a 1.5s debounce. It is used on pages where content is edited with the OverType Markdown editor (static pages, form help blocks) and on structured-data forms (contacts, sidebar links). Three server-side action handlers implement the same CSRF-rotation + JSON response contract that `autosave.js` consumes. ## Architecture ``` ┌──────────────────────────────────┐ │ autosave.js │ │ ───────── │ │ Watches