gitoriaLog in with ident

notes

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit3eff126d3eff126dnotes#3: installable app (manifest + own icon/favicon; notes' own sw.js kept)mre3eff126d/CONCEPT.md

2.1 KB

  1. # notes.worldapi.org — concept
  2. A notes app in Hybriel (hl:web), login via ident, offline-first later. Replaces the old `demo-notes` PWA that runs at
  3. notes.worldapi.org since 2026-08-31 (port 45000). Source of truth = the creator's words; "Decisions" are the architect's.
  4. ## The creator's words (chat, 2026-09-25, verbatim)
  5. > next i want to do the notes app. in parallel we can do the notes.worldapi.org app. we already have the md wysiwyg. the
  6. > notes have a sidebar listing the subject of the notes, ordered by last one edited. if you click on a note in the
  7. > sidebar it appears on the right in main. the notes app is then also an offline use case later. notes need to be saved
  8. > locally in the indexed db, and picked from that cache when offline. when back online it syncs with the server and
  9. > possible other changes made on other devices. there are already several demo apps for the notes case, but the
  10. > language and the framework shifted since then.
  11. > yes go ahead. make decisions on your own. if i dont like something i will request changes afterwards
  12. ## Steps (one ticket each, in this order)
  13. 1. Notes with ident login: sidebar = subjects of my notes, last edited first; click → the note on the right in main;
  14. new note, edit with the Markdown WYSIWYG editor, delete. Saved on the server.
  15. 2. Offline: notes saved in the browser's IndexedDB, read from there when offline, edits offline; back online → sync with
  16. the server and with changes from other devices.
  17. ## Decisions (architect, 2026-09-25 — changeable)
  18. - The subject = the note's first line / first heading (no separate title field).
  19. - The editor = the existing `<md-editor>` (worldapi-components, used by tickets) until it becomes a Hybriel component on
  20. components.hybriel.worldapi.org.
  21. - The old demo apps (hybriel/projects/demo-notes*) are reference only; built fresh on today's hl:web.
  22. - Storage hl:mpackdb in `storage/mpackdb/`, `@id` keys. New app on 127.0.0.1:45007, container `notes.worldapi.org`
  23. replaces the demo: at the first deploy the architect backs up the demo, stops it and points the vhost to 45007.
  24. - Sync conflicts (step 2): last write wins per note, the losing version is kept as a copy so nothing is lost.

Branches

Latest commits

  • 3eff126dnotes#3: installable app (manifest + own icon/favicon; notes' own sw.js kept)mre
  • 9883c540deploy.sh: back up live storage/.sessions/.env before every deploy (newest 5 kept)mre
  • eee693b8deploy.sh: never send .git or .gitignore to Byrodinmre
  • c8904061State of 2026-09-27, before the move to gitoriamre