Concept
Overview
What HenniOKF brings along, which pages exist and who sees which.
What it is about
HenniOKF is a viewer for bundles in the Open Knowledge Format (OKF): folders
of Markdown pages with YAML front matter and an index.md per folder. It
reads bundles and shows them; it never changes one.
This first phase is the foundation: sign-in, accounts with roles,
administration for the admin, a status page, this documentation and a user
interface in two languages. Reading bundles comes with the next phase; the
start page says so until then. The plan of all phases is in SPEC.md.
What the application does
- Reading is public. The start page and the documentation need no account. Everything else requires signing in: in the browser with username and password or a passkey, as an agent with an API key. See Security.
- Four roles for accounts: reviewer, editor, admin and LLM. A visitor who is not signed in is a guest. Only the admin creates accounts. See Roles and permissions.
- The first admin is created on a fresh instance with the instance token. See The first admin.
- Two languages: the UI speaks English and German. The switch "EN | DE"
in the header keeps the choice in the cookie
locale. See Languages. - Settings behind the gear in the header, only for the admin: the tiles "User management" and "Status".
- The status page shows configuration and version. See The status page.
- This documentation under
/docs. See The documentation in the application.
Pages
| Address | What is there | Who |
|---|---|---|
/ | the start page | everyone |
/docs | this documentation | everyone |
/sign-in | sign-in, on a fresh instance the first admin | everyone |
/account | password, passkeys, sign out | every account |
/settings | the administration areas as tiles | admin |
/users | accounts, roles, API keys | admin |
/status | configuration and version | admin; everyone while the instance is not configured |
Whoever opens a protected page without signing in comes to /sign-in and
back afterwards. Whoever lacks the permission comes to the start page. All
addresses with their methods are listed under Routes.
Roles
| Permission | Guest | Reviewer | Editor | Admin | LLM |
|---|---|---|---|---|---|
read the start page and /docs | yes | yes | yes | yes | yes |
| own account | no | yes | yes | yes | yes |
| settings, users, status | no | no | no | yes | no |
| API keys | no | no | no | no | yes |
What the reviewer and the editor additionally do (comments, ratings, tags, jobs) arrives with the later phases.
The shell
Every page has the same shell: at the top the header with the name, which
leads to the start page, the menu and the language switch; at the bottom
the footer. The menu stands as a bar on a wide screen and behind a button on
a narrow one. It shows "Documentation", for the admin the gear, and the name
of the signed-in account, which leads to /account. Without signing in it
shows "Documentation" and "Sign in". In the footer the admin sees the link
"Status".
Search engines are excluded: every page carries noindex, nofollow. The app
icon and the manifest are reachable without signing in, so that browsers and
home screens find them.
Next: Setup.