- GET /api/projects now returns writable: canWrite(req) + token_required, so the
backoffice no longer claims it can save when ADMIN_TOKEN is set (PUT answered 403)
- PUT response exposes database + backup (forward-slash relative paths), drop the
dead payload.backup assignment
- fail fast with a Thai hint when the database cannot be opened (permissions or
corrupt file) instead of an unhandled stack trace
- AGENTS.md: document the two response fields
- server/db.mjs: schema (site + projects), transactional replace, WAL, VACUUM INTO backups (keep 10), JSON export, first-run seed from data/projects.json
- publish.mjs: read/write through the database, export mirror JSON for git/static/offline, validate duplicate project_id
- ui/data.js: read live data from /api/projects first, fall back to data/projects.json
- Dockerfile/compose/.env.example: DB_PATH, drop experimental sqlite warning flag
- docs: AGENTS.md + README describe the database layer and traps
- server: GET /api/local-projects scans sibling folders for index.html
(title from <title>/<h1>, generic titles fall back to the folder name,
sorted by newest edit) and GET /projects/<folder>/ serves that folder
- both endpoints are loopback-only; node_modules/.git/.hermes blocked and
path traversal rejected; WORKSPACE_DIR=none disables the feature
- home: new 'โปรเจคในเครื่อง' list (2 columns >=700px) that hides itself when
the API is absent, so the live static site never shows fake rows
- SW skips /projects/* so other projects' files are never cached; version 2026.11.19.5
- docs: README/AGENTS/DESIGN cover the endpoints, the loopback rule and the layout
- drop the SSL note from hero meta, footer column and meta description
- footer becomes two columns; ssl_note removed from data schema, payload and server serializer
- content-only change: service worker version unchanged (network-first)