Browse the web view and share pages
sklad can serve the knowledge base as read-only HTML. It has two tiers: the owner tier, which shows everything, and the share tier at /s/<id>, which shows one page to whoever holds the link. The web view is off by default and writes nothing to the knowledge base.
Prerequisites
Section titled “Prerequisites”- A deployed server, see Deploy with Docker Compose.
- Access control in front of it. The owner tier has no authentication of its own: anyone who reaches the listener reads the whole knowledge base. Put it behind a forward-auth proxy, a VPN, or another network boundary before you enable it. sklad does not read
Remote-Useror other forwarded identity headers. - Routes for
/, the note paths,/search,/links, and/s/at your proxy. The reference Caddyfile indeploy/caddy/forwards only/mcpand the OAuth metadata, so add the web routes yourself, with share links (/s/) open and everything else behind your access control.
Enable the web view
Section titled “Enable the web view”-
Set the two web settings:
Terminal window SKLAD_WEB__ENABLED=trueSKLAD_WEB__PUBLIC_BASE_URL=https://kb.example.compublic_base_urlis the origin share links are built from; the server cannot work out its own public hostname. With the web view enabled and no base URL, it refuses to start:web.enabled=true requires web.public_base_url (the public origin share links are built from, e.g. https://kb.example.com) -
Restart the server and open
https://kb.example.com/. The home page lists open tasks by due date, overdue tasks, active work, and recently changed notes. Each note lives at its vault path, with or without.md:/projects/alphaservesprojects/alpha.md, and a directory unit serves its entry file./search?q=runs the same full-text search askb_search, and anything that is not a Markdown file in the knowledge base is a 404.
The kinds in the sidebar, and which of them start expanded or appear on the home page, come from each kind’s label and nav settings in the framework definition.
Share a page
Section titled “Share a page”A share link exposes one page. It is a row in the token database, not a commit or a frontmatter flag, so minting and revoking take effect at once.
From the browser
Section titled “From the browser”- Open the note and press Share beside its title.
- Enter who the link is for and create it. The panel lists the note’s live links with their URLs, when each was created and last opened, and a revoke button.
The label is required. Asking again with a label the note already has a live link for, ignoring case and surrounding spaces, returns that link instead of minting a second one. Shared links at the foot of the sidebar opens /links, every live link in the knowledge base.
The share forms accept only same-site requests: a POST without Sec-Fetch-Site: same-origin (or a matching Origin) gets 403. Use the CLI or MCP from scripts.
From the CLI or MCP
Section titled “From the CLI or MCP”sklad share create projects/alpha --label "sent to Jane"sklad share listsklad share revoke <id>share create prints the link’s ID and URL; without a path it lets you pick the page from a list. share list --include-revoked also shows revoked links. Unlike the browser, the CLI and the MCP tools (share_create, share_list, share_revoke, which need kb:write) mint a new link every time, so you can track and revoke recipients separately.
What a recipient sees
Section titled “What a recipient sees”The shared page shows the note’s content and nothing else: no tags, dates, path, sidebar, or search. A link into the rest of the knowledge base is flattened to text with a “Not included in this share” hint; links to other sites and anchors within the page still work. The page carries a “Shared note · read-only” bar, X-Robots-Tag: noindex, nofollow, and Cache-Control: no-store.
Every failure on /s/<id>, whether the ID is unknown, malformed, or revoked, or the page is gone, returns the same 404, so nobody can probe which links exist. The reason is recorded only in the logs and in the sklad_share_lookup_failures_total{reason} metric.
Revoking a link keeps its row, so the record of what was shared with whom survives. There is no expiry.
Back up the links
Section titled “Back up the links”Share links live in the token database, auth_db_path (default state/auth.sqlite), next to bearer tokens. Losing that file revokes every link and every token. Include it in your backups.
See the sklad share reference for every flag.