mdnest User Guide
mdnest is a privately-hosted markdown notes app. Your notes are plain .md files on disk, and mdnest provides a clean web interface to browse, edit, and organize them. It works for personal use (single-user mode) or team collaboration (multi-user mode with role-based access, namespace-scoped admins, and corporate SSO), and scales up to an organization-wide, active/active deployment on Kubernetes (see kubernetes.md).
If you're an end-user being added to your team's mdnest, read Logging In and The Sidebar below — that's enough to get going. The rest is reference. If you also have admin scope, see Roles & administration further down.
Getting Started
Logging In
Open mdnest in your browser (your admin will give you the URL). The login screen adapts to how the server is configured:
- Multi-user mode with SSO (typical team install): a single Sign in with <provider> button (Google, Okta, Microsoft Entra, etc.). Click it, complete the IdP flow on the IdP's page, and you're back in mdnest. Your admin must have invited your corporate email first — otherwise you'll see "account is not authorized on this server" after the IdP round-trip.
- Multi-user mode (local): enter the credentials your admin provided. 2FA may be required on first sign-in or if your admin enabled
REQUIRE_2FA. - Single-user mode (personal install): enter the username and password from
mdnest.conf'sMDNEST_USER/MDNEST_PASSWORD.
A successful login gives you a 30-day session. The browser stores a JWT in localStorage; closing the tab doesn't sign you out, but clearing site data does.
After login your name and IdP profile picture appear at the bottom of the sidebar. The picture refreshes from the IdP on every sign-in (since profile-picture URLs at Google etc. rotate).
Your First Note
- In the sidebar, select a namespace (the dropdown at the top).
- Click the New Note button in the toolbar.
- Enter a filename (e.g.,
hello.md). - Start typing in the editor. Your changes are saved when you stop editing.
The Sidebar
The left sidebar contains two key elements:
Namespace Selector
The dropdown at the top of the sidebar lists all configured namespaces. Each namespace corresponds to a separate directory on the host machine. Select a namespace to browse its file tree.
Folder Tree
Below the namespace selector, the folder tree shows all files and folders in the selected namespace. Folders appear before files, and both are sorted alphabetically.
- Click a folder to expand or collapse it.
- Click a file to open it in the editor.
- Hidden files (those starting with
.) are not shown. This keeps.gitdirectories and other dotfiles out of the way. - The tree remembers which folders you had open, per namespace (v3.11.4+). A refresh or namespace switch restores your expanded folders instead of re-expanding everything; the folder holding the currently-open file auto-reveals but can still be collapsed.
- A large file asks first (v4.8.15+). A file over 1 MB opens only after you confirm, and then as plain text: the Basic editor, without the Live editor or the preview, which could freeze the page on a file that size. Files over 5 MB are not listed in the tree, and mdnest does not open a file over 10 MB.
- A link that cannot be opened says why (v4.8.15+): you have no access to its workspace or note, or the note was moved or deleted. You stay where you were.
On mobile, tap the hamburger menu icon in the top-left corner to show or hide the sidebar.
Roles & administration (multi-user mode)
mdnest has three user roles. Most teammates are collaborators — only people who manage the install or a specific team's namespace get an admin role.
| Role | Scope | What they can do |
|---|---|---|
| Super-admin | Global | Manage every user, every namespace, every grant. Promote / demote between roles, reset 2FA, delete users, sync any namespace. There must always be at least one super-admin. |
| Admin | Per-namespace (one or more) | Within their namespaces only — invite teammates, create / edit / revoke grants, promote co-admins, trigger git-sync. Implicit read+write on those namespaces. Cannot reset 2FA, delete users, or change global roles. |
| Collaborator | Per-grant only | Read or write only on the specific namespaces / paths the admin has granted them. No admin panel button. |
Where each role comes from:
- Super-admin is set in
mdnest.confviaADMIN_EMAILS=ops@example.com,you@example.com(auto-promoted on every server startup), or by another super-admin: admin panel → People → open the person → tick Super-admin. - Admin is namespace-scoped, assigned per namespace. Admin panel → People → open the person → Make admin of…, or Namespaces → open the namespace → Make admin next to the person. The promotion auto-grants the user
writeaccess on/of that namespace and bumps theirusers.rolefromcollaboratortoadmin; removing their last namespace turns them back into a collaborator. - Collaborator is the default for newly-invited users. They get explicit
access_grantsrows for the namespaces / paths the inviting admin scoped them to.
If you can see the Admin button in the top-right of the app, you have at least namespace-admin scope. The admin panel shows your scope as a yellow Admin of: <namespace list> badge so you know what you're managing. Super-admins see "Admin of: (none)" and full reign over everything.
The admin panel
The panel has three tabs for access, and each answers one question:
- People: what can this person reach? Click a person to see their role, their groups, the namespaces they administer, their direct access, and a Can reach list that adds it all up, with the reason for each line ("via qa-team", "via Direct", "via Admin"). Everything about one person is changed from that card.
- Groups: who is in a group, and what the group can reach. Give access to a group once and every member gets it.
- Namespaces: who can reach this namespace? Each namespace lists everyone with access, directly or through a group, and who administers it. Give access takes a person or a group. A namespace admin can pick anyone with an account, including people who have no access yet; with more than six people, type in the Find box next to the list to narrow it by name, email or group.
Git backup and adding namespaces. Where a namespace comes from depends on how notes are stored:
- Plain files (every
setup.shinstall). A namespace is a folder listed inmdnest.conf(MOUNT_name=/path, then./mdnest-server reload), and git backup is done by git-sync. The Namespaces tab says so and offers nothing else, because settings saved there would never be used. - Git storage (
STORAGE_BACKEND=git, the Helm chart). Super-admins get + Add namespace, which creates a namespace together with the git repository it backs up to. Each namespace card has a Git backup section showing the repository and whether the last sync worked, with Set up backup, Pause / Resume and Remove namespace. Below the list, Git connections holds a git host and token saved once; each namespace backed up through a connection gets its own repository,<address>/<namespace>.git. A namespace can also back up to a repository of its own.
Access from an IdP (OIDC) group is read from the sign-in token, so it is not part of Can reach.
API Tokens (super-admins): every person's API tokens, with the owner, so you can see who connects CLI, MCP or API clients and Revoke a token someone no longer needs. Your own tokens stay in Settings → API Tokens, which only ever lists yours.
Adding a person
Admin panel → People → + Add person:
- Email: required. In SSO / Firebase mode this is also the IdP login key; in local mode it's just an identifier.
- Username + temporary password: only shown in local mode. In SSO and Firebase mode, identity comes from the IdP and the form is email-only.
- Super-admin: super-admins only.
- Groups (optional, super-admins): tick the groups the person joins. To run access entirely through groups, tick a group and leave the namespace empty.
- Namespace access: optional for super-admins; you choose the namespace, folder and permission, and can also make them admin of it. Required for a namespace admin, who can only add people to namespaces they administer.
The invited user can sign in immediately — no email confirmation is sent. Tell them the URL and they're in.
Resetting a forgotten password (v3.6.0+, local provider only)
A user forgot their password? Two paths, depending on what role they hold and who's doing the reset:
From the Admin Panel (super-admins, for collaborators and namespace-admins):
- Open the admin panel → People.
- Click the person, then Reset password.
- Type a temporary password twice. Send it over a secure channel (Slack DM, password manager — not email).
- The user logs in with the temp password and is immediately forced to pick their own. The temp password becomes single-use; nothing else in the app is reachable until they change it.
The button is hidden for super-admin rows on purpose — see below.
From the host shell (super-admins resetting another super-admin, or any case where you don't want a UI round-trip):
./mdnest-server reset-password user@example.com
Prompts twice with hidden input, pipes the password into the backend container via stdin (so it never appears in ps, your shell history, or process arguments). The same forced-change flow applies on next login. Works for any user role, including super-admins.
Why super-admins can't reset other super-admins from the UI: if any super-admin can change any other super-admin's password from the web app, one compromised super-admin account is enough to lock out every other super-admin. The host CLI gates the same operation behind shell access to the server — a much higher bar — so the legitimate "my colleague forgot their super-admin password" case is still a one-line fix, while a compromised web session can't escalate.
This whole feature is local-provider only. In Firebase / SSO mode the IdP owns the password — reset it there.
Creating Notes and Folders
There are two ways to create notes and folders.
Toolbar Buttons
At the top of the sidebar:
- + Folder -- creates a new folder. You will be prompted for a name.
- + Note -- creates a new markdown file. You will be prompted for a filename.
- + Tasks -- creates a new
.tasks.mdtask list (when the task board is enabled). It opens on the task board, showing its own tasks. - + Drawing -- creates a new
.excalidraw.mddrawing (when drawings are enabled). - + Slides -- creates a new Marp slide deck (when slides are enabled). A dialog asks for the name and title, the theme (the themes of Admin > Marp Themes first, then Marp's built-in ones) and the look of the whole deck (a class such as
lightordark). Then pick the slides: a theme with slide templates offers each kind of slide it has (title, section divider, cards, metrics, timeline…), so you can take all of them or only some, and each becomes one slide with its own style. A theme without templates offers a title slide and a content slide. Size (16:9 or 4:3), slide numbers, header and footer complete it, and a live preview shows the deck before you create it. On a desktop a deck opens in split view, text on the left and slides on the right, and the slide shown follows the cursor as you type. A view you pick for a deck is kept for that deck only.
Where new items are created (clarified in v4.2.1): click a folder in the tree to aim these buttons at it — the folder is highlighted, and each button's tooltip names the destination. Click the root row at the top of the tree to aim them back at the top level. With nothing selected they follow the folder of the note you have open, falling back to the workspace root. Creating from a folder's right-click menu always targets that folder, regardless of what is selected.
Context Menu
Right-click (desktop) or long-press (mobile) on a file or folder in the tree. The menu shows the item's name at the top, then its actions in groups, always in the same order:
- New note / New folder / New drawing / New slides / New chat, Paste here (folders and the namespace root) -- create inside that folder. Paste here makes a new note from the text on your clipboard, such as a note copied with "Copy file contents" on another mdnest.
- Rename, Move to…, Copy to… -- renaming a file without an extension keeps the original one (
notes.mdrenamed tosummarybecomessummary.md). Move to… and Copy to… open one picker for a namespace, a folder and a name; it is touch-friendly, which matters on mobile, where drag-and-drop is off. - Download (a file) or Download as zip (a folder, keeping its folders), Copy file contents (notes, as plain text), Copy browser link (notes, the link the address bar shows, which the CLI also accepts), Copy path for CLI (an
mdnest://address the CLI and agents accept) - History and, in multi-user mode, Authors (files)
- Manage access (admins, on folders and the root)
- Delete -- always last, on its own, in red
Actions you have no right to (for example Rename on a read-only folder) are not shown.
Editing
Editor Modes
mdnest has two editing modes, switchable from the toolbar when in editor-only view:
Basic Mode (default) -- a plain-text area where you write raw markdown. Simple, fast, no rendering overhead. Includes a formatting toolbar for bold, italic, headings, links, code, lists, and checkboxes. Press Tab to indent.
Live Mode -- Obsidian-style rich editing built on Crepe (the same editor Milkdown's official playground uses). Markdown renders inline as you type:
- Type
**bold**and it renders bold immediately - Type
## Headingand it renders as a heading - Tables are click-to-edit -- single click any cell to start typing, tab between cells
- Checkboxes are clickable (native SVG icons)
- Mermaid diagrams render in-place with Source/Preview/Fullscreen/Copy/Zoom buttons; pasting raw mermaid source auto-wraps it in a ```mermaid` fence
- Click any mermaid node label to edit it directly on the diagram
- Paste from Google Docs or Confluence -- auto-converts to markdown
- Full formatting toolbar: Undo, Redo, Bold, Italic, Strikethrough, Code, Headings, Lists, Blockquote, Link, Code block, Table with row/column controls
- Undo / Redo (v3.6.1+): the curved-arrow buttons at the start of the toolbar. Same as
Cmd+Z/Cmd+Shift+Z(orCtrl+Z/Ctrl+Shift+Z) on the keyboard. macOS usesCmd+Shift+Zfor redo, notCmd+Y. - Block-edit menu (v3.10.0+): hover the left margin of any block for a drag-handle +
+insert button. The+button (or typing/anywhere) opens a slash menu with Heading 1-6, Code block, Math, Image, Horizontal rule, Table, and more. - Block-handle toggle (v3.11.0+): the grip button at the start of the toolbar hides the left drag/
+handle so content uses the full width — handy on mobile (where it's hidden by default). Typing/still opens the slash menu with the handle hidden. The choice is remembered per browser. - Inline + block math (v3.10.0+):
$inline$and$$block$$render via KaTeX. - Image upload (v3.10.0+): insert an image block from the slash menu and click "Upload" — or just paste an image from the clipboard. Uploads land next to the current note.
- Last-opened file remembered per workspace (v3.10.0+): switching workspaces and switching back restores whichever file you had open in that workspace, with its scroll position. Bookmark a URL with
#namespace/path/to/note.mdto override.
Live Mode is only available in editor-only view (the pen icon). Split view always uses Basic Mode with a separate preview pane.
Board / Editor — the first button in the toolbar swaps to name where it takes you: on a note it says Board and opens the task board for the whole workspace; on the board it says Editor and brings you back. The Basic · Live switch beside it decides how you edit the note, so it disappears while the board is open — there is no note on screen for it to act on.
Changes are saved automatically in both modes. There is no manual save button -- your edits are sent to the backend as you type. As of v3.6.1, autosave will refuse to truncate a non-empty note to empty (a defensive guard against editor bugs that could otherwise wipe content); to deliberately empty a file, delete it via right-click → Delete.
Recovering lost content
If you lose content -- accidental delete, a stuck undo, fat-fingered overwrite -- there are three recovery paths depending on whether you've enabled the optional git-sync sidecar.
In-app History (v3.7.0+, fastest)
Right-click any note → History. A modal opens listing the most recent 50 git-sync commits affecting that file, newest first. Click any commit to preview its content, then click Restore this version to write that older content back. The restoration itself goes through the regular save path, so it's also versioned -- if you restore to the wrong commit, the History modal can take you back.
If git-sync isn't configured for the namespace, the modal tells you so and points at the setup hint. In multi-user installs, if other people are currently viewing the same file, the modal warns you and asks for confirmation before restoring; they see an info banner explaining what happened so it's not a silent surprise.
With git-sync (manual, via the git remote)
If git-sync/keys/ has any SSH key, every namespace is being auto-committed to the corresponding git remote on a regular cadence (default 600s -- tunable via GIT_SYNC_INTERVAL in mdnest.conf). Every change you've made is in commit history. You haven't lost it.
Recover via the git remote (e.g. GitHub):
- Open the namespace's git repo (e.g.
https://github.com/<you>/<namespace>/commits/main). - Find a
sync: <UTC-timestamp>commit before the loss. Click into it. - Browse to the file. Click Raw or use the file viewer to see the old content.
- Copy the content back into the mdnest editor and save -- it'll be picked up by the next sync cycle and re-committed alongside the original history.
Recover via shell (if you have access to the host):
# List recent sync commits with timestamps
docker exec mdnest-git-sync-1 sh -c 'cd /data/notes/<namespace> && git log --oneline -30'
# View the file at a specific commit
docker exec mdnest-git-sync-1 sh -c 'cd /data/notes/<namespace> && git show <commit-hash>:path/to/note.md'
# Or restore the whole file in place (will be saved + re-synced)
docker exec mdnest-git-sync-1 sh -c 'cd /data/notes/<namespace> && git checkout <commit-hash> -- path/to/note.md'
The recovery gap is at most one git-sync cycle (default 10 minutes; lower the cycle in mdnest.conf if recovery latency matters more to you than commit volume).
Without git-sync
If git-sync/keys/ is empty, no remote backup exists. Recovery options narrow:
- macOS Time Machine, ZFS snapshots, or any host-level filesystem snapshotting.
- An external mdnest CLI write history (if you used
mdnest write-- the file at the time of write is in your shell history). - Otherwise, the content is gone from mdnest's data layer.
Strong recommendation: if you keep anything important in mdnest, enable git-sync. It's the difference between "10 minutes of edits at risk" and "everything since the last good copy is gone."
For the common case, the in-app History modal (v3.7.0+) handles it without leaving mdnest -- the manual paths above are still useful for renamed files, bulk recoveries, or restoring multiple files at once.
Sync health indicator (v3.11.4+). When git-sync is enabled, the sidebar shows its status. If the background sync ever breaks (a diverged history it can't fast-forward, a rejected push, an unreachable remote), you'll see a red ✕ with "Git sync broken" and the reason on hover — instead of a stale "Synced X ago" that hides the problem. Admins get a Retry button that runs a commit + pull + push immediately. The daemon also self-heals most divergence on its own each cycle.
Live Preview
The preview pane renders your markdown in real time as you type. The following elements are supported:
- Standard markdown: headings, bold, italic, links, images, blockquotes, code blocks, tables, horizontal rules
- Fenced code blocks with syntax highlighting
- Mermaid diagrams
- Task checkboxes
- Inline and referenced images (including uploaded images)
Editor and Preview Layout
On desktop, the editor and preview appear side by side.
On mobile, you toggle between editor and preview views since there is not enough screen space for both.
Wikilinks and internal links (v3.11.5+)
mdnest understands Obsidian-style [[wikilinks]], so vaults imported from Obsidian keep their internal links working.
Supported forms:
| You write | It links to |
|---|---|
[[Meeting Notes]] |
the note Meeting Notes.md |
[[projects/Roadmap]] |
a note by path (the .md is optional) |
[[Roadmap|the plan]] |
the same note, shown as the plan |
[[Setup#Install]] |
the Install heading inside Setup.md |
[[#Install]] |
the Install heading in the current note |
In the preview, a resolved wikilink is a highlighted internal link — clicking it opens the target note in place (no page reload), while middle-click and Ctrl/Cmd+Click open it in a new tab. A [[#heading]] link just scrolls to that heading, and [[note#heading]] opens the note scrolled to it. If the target note doesn't exist, the link renders muted and dashed so you can tell it's broken.
How targets resolve: an exact path first (with or without .md), then a case-insensitive match on the note's name; if two notes share a name, the one with the shortest path wins — the same rules Obsidian uses.
Ordinary relative markdown links to .md files — [the roadmap](../projects/Roadmap.md) — also navigate inside the app now, instead of opening a dead link in a new tab.
In the Live editor, [[...]] spans are highlighted; Ctrl/Cmd+Click opens the target (a plain click just places the cursor so you can edit). The stored file is never rewritten — the markdown on disk stays exactly [[...]]. Wikilinks inside inline code (`[[x]]`) or fenced code blocks are left as literal text, not links.
Mermaid Diagrams
mdnest renders Mermaid diagrams inside fenced code blocks tagged with mermaid.
Syntax:
```mermaid
graph TD
A[Start] --> B{Decision}
B -->|Yes| C[Do something]
B -->|No| D[Do something else]
C --> E[End]
D --> E
```
This renders as an interactive diagram in the preview pane. Mermaid supports many diagram types including flowcharts, sequence diagrams, Gantt charts, class diagrams, and more. Refer to the Mermaid documentation for the full syntax reference.
Getting the text back out
A rendered diagram's labels are still text, and you can take them with you (v4.1.3+):
- Select them. Drag across a label in the preview or in the fullscreen viewer. In fullscreen, a drag that starts on a label selects it; a drag starting anywhere else still pans the diagram.
- Copy all of it. Hover a diagram and click Copy text (next to the expand button), or use the Copy text button in the fullscreen viewer's toolbar. Every label lands on the clipboard, one per line, in diagram order — faster than selecting by hand on a zoomed or panned diagram.
Live Collaboration
Requires multi-user mode with
ENABLE_LIVE_COLLAB=trueinmdnest.conf.
When live collab is on, mdnest opens a WebSocket from your browser to the backend on sign-in. While that connection is open, the app fans real-time events between everyone editing in the same namespace:
- Presence. Initials in the file toolbar, next to the comments button, show who else has the same note open right now. The tooltip names them.
- Cursors. When a teammate is editing the same note in Live mode, you see their cursor as a thin coloured caret with their name on it. Cursor positions update in real time.
- Typing indicator. When someone is actively typing, their initial pulses faintly and "is typing…" appears beside it, so you know to expect changes.
- Shared editing. Two or more people in the same markdown note, in the Live editor, edit one shared copy of it: everyone's typing appears for the others as they type, nothing anyone types is lost, and one of the browsers saves the merged note. Changes made outside mdnest while you edit (git-sync, the CLI, an agent) are merged in. Front matter is left exactly as it is. While someone else is in the note, the Basic editor switches to Live. Drawings, chats and slide decks keep the old behaviour. Details and limits: collab.md. Shared editing needs a single backend server; see the warning there.
- Conflict banner. Only where shared editing does not apply (drawings, chats, decks, Basic mode alone, or an install with
SHARED_EDITING=false): if someone else saved the note while you had unsaved edits, your next save is refused instead of overwriting theirs, and a banner offers to reload. - Tree refresh. When someone else creates / renames / deletes a file in your namespace, your sidebar updates within a second without a manual refresh. This covers changes made through mdnest; a write that lands straight on the filesystem (a git-sync pull, an editor on the host) sends no event, and is picked up by the sidebar's own 30-second refresh instead — that refresh runs whether or not live collab is on.
Live collab is gated on the WebSocket hub being up. If /api/ws is unreachable (server restart, proxy hiccup, a network that blocks websockets), the editor still works and saves as usual: you just lose the presence, cursors, typing together and auto-tree-refresh until the connection is back (the app retries with backoff). The small dot in the toolbar says which: green "Live", or grey "Not live" after a couple of seconds without a connection. A note never waits for the connection before you can type.
In single-user mode or when ENABLE_LIVE_COLLAB=false, none of this loads — there's nothing to collaborate on.
Inline Comments
Requires multi-user mode with live collaboration enabled (
AUTH_MODE=multiandENABLE_LIVE_COLLAB=true). Each comment is tied to a real user account and relies on the WebSocket hub. In single-user mode or when live collab is off the comment UI is hidden.
Leave feedback on any part of a note without touching its content.
Adding a comment
- Open a note in Live editor mode.
- Select the text you want to comment on. A small 💬 Comment button appears next to the selection.
- Click it — the comment panel slides out on the right with the quoted text above the reply box.
- Type your message and press Enter (use Shift+Enter for a newline). The selected text is now highlighted in bright yellow inside the editor.
You can also open the panel without a selection via the speech-bubble icon in the toolbar and leave a general note-level comment.
Yellow highlights
Every active comment anchor stays highlighted in the editor while you browse the note — you see at a glance which passages have been discussed. Highlights are transparent in the browser print dialog and in PDF exports, so they never leak into shared or printed copies.
Threaded replies
Click Reply on any open thread to continue the conversation under the main comment. Replies show in an indented box below the parent, share the parent's anchor, and stay grouped together. Press Enter to send, Esc to cancel.
Jumping between comments and text
- Click any yellow highlight in the editor to open the sidebar and pulse the matching thread into view.
- Click Go To on any thread in the sidebar to scroll the editor to the commented text — the highlight briefly pulses so you can't miss it.
Resolving, reopening, deleting
- Resolve collapses the thread into the "Resolved" section at the bottom of the sidebar. Resolved threads stop highlighting their text.
- Reopen brings a resolved thread back to active and restores its highlight.
- Delete is available to the comment's author and to admins. Soft-deleted comments are removed from the sidebar and the JSONL file keeps a
deletedAttimestamp.
Comments survive file moves
Every note carries an invisible <!-- mdnest:<uuid> --> marker at its bottom that's stripped on GET and re-injected on save. Comments are stored at <namespace>/.mdnest/comments/<uuid>.jsonl. Moving or renaming a file preserves the UUID inside the content, so its comment history follows it — no broken links.
Stickies (v4.5.0+)
A private scratch pad that follows you rather than the note you have open. Click Stickies on the right of the toolbar (with Chats and Pages) and a board slides in from the right; on a phone it opens full screen.
- + New sticky adds an empty card at the top and puts the cursor in its title. The title shares the top row with the card's controls, so an untitled sticky costs no space.
- Below the title is free text for whatever the note is, and + to-do adds a checklist. A sticky is usually a small list rather than one yes/no thing, so ticking happens per item: Enter opens the next line, Backspace on an empty line removes it, and the card header shows progress like
2/5. A card whose whole checklist is done fades and strikes its title — it stays where it is rather than jumping to the bottom. - A card with no checklist is just a note. It never counts as unfinished and never gets struck through.
- Each card also has a colour dot for one of five colours, and a × to delete it.
- If the board can’t be loaded (the server restarting, a dropped connection), you get a Try again button rather than an empty board. Editing is held until it loads, so a failed read can never overwrite what’s on the server.
- Everything saves by itself about half a second after you stop typing. The header says Saving… while a save is in flight and Not saved in red if one failed — nothing is hidden behind a silent autosave here.
- The toolbar icon carries a badge counting unfinished to-dos across every sticky — things left to do, not notes containing something. A blank line does not count until you write in it.
- The board is available even with no file open, and while the task board is showing — those are exactly the moments you want to jot something down.
Stickies and comments share the right-hand panel, so opening one closes the other. Drag the panel's left edge to resize it; the width is remembered. When chat is on and the window is wide enough, the panel can also show a chat (see A chat next to your note).
The full board
The expand button in the panel header opens the same stickies full screen, as a corkboard. Drag a card by its top bar to put it wherever you like — the position is saved, so the board looks the same next time you open it. Dragging is by the top bar rather than the whole card so that clicking into the text to fix a typo places the cursor instead of starting a drag.
- A card you have never dragged has no position at all. Those are dealt onto a grid, filling the first free space, so a new sticky never lands hidden underneath one that is already there.
- Tidy up clears every stored position and puts the whole board back on the grid. It asks first — there is no undo — and it only appears once something has actually been moved.
- Drag a card's bottom-right corner to make it wider or narrower; the width is saved per card. Only the width — the height follows whatever you type, so a card grows as you add to-dos rather than clipping them.
- The board grows as you drag cards outward, and scrolls.
- Escape, or the collapse button, returns to the side panel. The × closes stickies entirely.
- The full board has its own address (
#!stickies), so a refresh or a bookmark brings you back to the board rather than to the last note you had open. The side panel deliberately does not — it sits on top of a note, and the note is what the URL should describe. The panel is still remembered across a refresh, just in your browser rather than in the link, so sharing a note URL never forces someone else's stickies open.
On a phone the board drops the free positioning and shows the same cards in a flowing grid — a corkboard you have to pan around to read one note is worse than a list.
Limits: 200 stickies per board, 200 characters of title, 4 KB of text and 50 to-dos per card; a card can be 150–600px wide. Text is plain — markdown is not rendered inside a card.
Where stickies live, and what that means
Each person gets their own board — in multi-user mode nobody else can see yours, including admins, and there is no way to share one.
Stickies never leave this server. They are stored in mdnest's secrets volume, alongside its login and API-token state, and the git-sync sidecar cannot see that volume at all. Nothing you paste into a sticky can be committed or pushed to GitHub. That is the point of the feature, and it is why there is no encryption option: the content is not travelling anywhere for encryption to protect it.
The flip side is worth being explicit about: stickies are not backed up. A regular note in a git-synced namespace has a copy on your git remote and a full history behind the History button. A sticky has neither. It survives a ./mdnest-server rebuild — the secrets volume is a declared Docker volume, not part of the container image — but if you lose the volume, you lose the board.
So: stickies are for the short-lived stuff. A phone number to call back, a command to run after lunch, three things to finish today. Anything you would be upset to lose belongs in a real note.
Task Checkboxes
Standard markdown task list syntax is supported:
- [ ] Unchecked item
- [x] Checked item
In the preview pane and Live editor, checkboxes are interactive -- clicking one toggles its state and updates the underlying markdown file automatically.
Checkboxes are also the atoms of the Task Board: any checkbox is a task, and a task can be enriched with a due date, priority, tags, sub-steps and a description written as an indented block underneath it. The full on-disk format is specified in Task Model.
Task Board
Slides: a note whose frontmatter declares
marp: truerenders as a Marp slide deck in the Preview pane — the same note you drafted the idea in is the deck you present from. Also opt-in (ENABLE_MARP=true); notes withoutmarp: trueare unaffected. + Slides in the sidebar creates a deck with its theme, styles and outline already set.
Drawings: a
.excalidraw.mdnote opens on a full Excalidraw canvas, and any note can embed one read-only with. Opt-in (ENABLE_EXCALIDRAW=true); see Excalidraw.A drawing is still a markdown file, so the toolbar offers Basic · Drawing (v4.2.1+): Drawing is the canvas, Basic shows the markdown behind it (the scene JSON plus the mirrored text elements). Live is deliberately not offered for drawings — the rich editor would reformat the scene and corrupt it, the same reason Marp decks are edited as raw text. Drawings open in dark mode to match the app, with a light/dark toggle in the canvas footer; that choice is per browser and is never written into the note, so the file stays portable and two people can view one drawing differently.
Opt-in: the board appears only when the operator sets
ENABLE_TASK_BOARD=true(see setup). If you don't see the board button, that's why.
The task board gathers every task-list item in a namespace and presents it as a kanban board or a flat list. Because tasks live in your notes, the board is just a view of them -- editing on the board edits the note, and editing the note updates the board.
Opening it. Click Board in the toolbar. The board replaces the editor pane (the sidebar and header stay put) and is scoped to the current namespace.
Task lists open on the board. A note that is only tasks (headings and blank lines aside, each task with its fields, sub-tasks and notes) and any .tasks.md file open straight on the board, on This note. Leave it with Editor and that note opens in the editor from then on; Board brings the board back for it. Opening a task's note from the board shows the note, and opening a prose note next closes a board that opened by itself.
Getting back. Either works: the same button now reads Editor, or use the back button at the start of the board's own header, which names the note you came from (← my-note.md).
A link of its own (v4.5.2+). The board has its own address, #!board/<workspace>/<note>, so a browser refresh keeps you on the board instead of dropping you back into the editor, and a board can be bookmarked or shared. The link keeps the workspace and the note you opened it from, so the back button and the This note scope still work after a refresh. Back and forward open and close it like any other page.
Lots of columns. The board scrolls horizontally when the columns don't fit, so a wide board stays reachable on a narrow window.
Lots of tasks. A column shows 100 cards at a time, and the List view 200 (v4.5.2+), each with a Show more button; the number beside the column name is always the true total. On a big board the Sort control matters, because it decides which cards are on that first page: leave it on Note order to see tasks in the order they appear in your notes, or switch to Due date, then priority to bring the urgent ones to the front. Your choice is remembered.
Views.
- Kanban / List -- a toggle at the top left. Kanban shows one column per board column (drag a card between columns to change its status — grab it anywhere, and drop anywhere in the target column's lane, including below its last card or on a collapsed column; hold a card at the board's left or right edge to scroll to columns off-screen); List shows tasks grouped by note with quick checkboxes.
- Workspace / This note / All workspaces -- when a note is open, scope the board to the whole namespace, just the current note, or (v4.2.0+) every workspace you can access. In the cross-workspace view each card shows which workspace it came from; creating tasks and editing columns are hidden there, since both belong to one specific workspace.
- 📁 Folder (v4.8.15+) -- with the board open, click a folder in the tree to see the tasks of that folder and its sub-folders, or right-click a folder (or the workspace root) and pick Task board. The folder's button stays next to Workspace to come back to it. A folder board shows the tasks you can read there, like the workspace board.
Filtering (v4.2.0+). A filter bar narrows the loaded tasks by title text, tags (click chips to toggle; matching is OR) and assignee (All / Me / Unassigned / a member). It applies to every scope and both views, and filters before grouping, so it's instant with no extra round-trip.
Assignees (v4.2.0+). A task can carry an assignee, picked from the workspace's members in the task editor: everyone with access to it, through their own grant or an access group (v4.8.15+). New tasks default to you. In single mode, where there's no member list, it's a free-choice field.
Relations (v4.2.0+). A task can declare depends-on, blocked-by and related-to links to other tasks, shown on the card and resolved by each task's stable ref.
Sub-tasks gate closing (v4.2.0+). A task with unresolved sub-steps can't be closed — checking it done, dragging it to a Done column, and saving an edit into one are all refused, with the reason shown. Tick the remaining steps first. This is enforced by the server, so it holds however you reach it.
Cards. Each card shows the title, a priority badge, the due date (red when overdue), tags, workload, its milestone and a step progress bar. More expands the steps (tick them off individually) and the description. The foot of the card shows who created the task and when.
Milestones. Milestones, next to List and Kanban, shows one card per milestone: its dates and how many days are left (or how late it is), its progress (done tasks plus the done sub-tasks of open ones) and, with a start date, the share of the period already gone (marked behind when time runs ahead of the work), its participants and its late or blocked tasks. Click a card to open the milestone's page: tasks and sub-tasks done, what needs attention, the tasks added since the start, a breakdown by column, the participants with their open and done tasks, and the tasks by column. The page has its own link (#!milestones/<workspace>/<id>) to share; Show on the Kanban filters the board to the milestone. If you can write to the workspace you can add, edit, close, reopen and delete milestones there, and pick a task's milestone in the task editor. See Task Model.
(v4.8.15+) Click a task on a milestone page to open it in full on the right of the page: edit it in place and Save, or just read it without write access. Milestones follow the board's scope: on a folder or a note only the milestones with tasks there are listed and their progress counts those tasks; over All workspaces each workspace's milestones show in their own section, and a card opens the milestone in its workspace.
Creating a task. Click + New task to open the editor: title, target note (defaults to the board's default note), column, due date, priority, workload, assignee, milestone, tags, steps and a description. The task is appended to the chosen note (created if it doesn't exist), with who created it and when.
Editing a task. Click ✎ edit on any card or list row to open the same editor pre-filled; saving rewrites the whole task in its note.
Columns & default note. Columns… opens Board settings, where you name the columns, set the status value each one writes, mark the Done column, and choose the default note for new tasks. This is stored per namespace in .mdnest/board.json.
See Task Model for the exact markdown a task compiles to, and the API Reference for the endpoints.
Chats
Chats, on the right of the toolbar next to Pages and Stickies, lists
the chats in the current workspace (a picker switches workspace). Where there
is room it opens in the side panel, and the panel's ⤢ button
opens the full chats view; on a phone or a narrow window it opens full screen
directly. Chat is on by default; ENABLE_CHAT=false turns it off. A chat is just a note tagged mdnest-chat: true, and each
message is appended to it, so people here and agents using mdnest chat
talk in the same file. Create one with + New, or right-click a folder →
New chat. Connect an agent gives a ready-to-paste prompt for
Claude Code, Codex or any agent with a shell. Type @ to mention someone. Details: chat.md.
A chat next to your note (v4.8.8+)
To keep a note on screen while you chat, open the chat in the full chats view and click Pin to side panel (the button with a panel icon in the chat's header). You go back to the note or board you came from, with the chat docked on the right in the side panel. The side panel is the same one that holds your stickies (and, with HTML pages on, the Pages list). The Chats, Pages and Stickies buttons on the right of the toolbar switch it between them; the panel's header names what is showing. The button for what is showing looks pressed; clicking it again closes the panel.
- Expand in the docked chat opens it full screen. Back returns to your note with the chat still docked.
- The unsent message and the spot you were reading are kept when you switch to Stickies or Pages, expand, pin or close the panel.
- Drag the panel's left edge to resize it, or focus the edge and use the arrow keys. The width you pick is kept whether the panel shows Chat, Stickies or Pages. Stickies and Pages can be as narrow as 260px; a chat needs at least 520px, so a narrower panel widens while a chat shows and goes back to your width after. The panel never leaves the editor narrower than 400px. The width, what it shows and the docked chat are remembered in this browser. If the chat is deleted, or you lose access to it, the panel shows the chat list instead.
- A chat docks only when there is room for it next to the editor. On smaller windows and phones there is no Pin button and Chats opens full screen.
- Escape closes an open menu or popup first, then the panel. Links to a chat still open it full screen.
Image Upload
mdnest supports uploading images directly into your notes.
Paste from Clipboard
Copy an image to your clipboard (e.g., take a screenshot) and paste it into the editor. The image is uploaded automatically and a markdown image reference is inserted at the cursor position.
Drag and Drop
Drag an image file from your file manager and drop it onto the editor. The image is uploaded and a reference is inserted.
Uploaded images are saved in the same directory as the current note. They are served through the /api/files/ endpoint and rendered in the preview.
Drag and Drop (Files and Folders)
You can reorganize your notes by dragging items in the sidebar tree.
- Drag a file onto a folder to move it into that folder.
- Drag a folder onto another folder to nest it.
- Drop onto an open folder's contents — the space below its rows, or one of the files inside it — to move the item into that folder (v4.2.1+).
- Drop onto the root row at the top of the tree to move an item back to the top level (v4.2.1+).
The move happens within the same namespace. Cross-namespace moves are not supported.
Moving, copying and downloading (v4.7.0+)
Move to… and Copy to… (right-click, or long-press on a phone) open one picker. Choose a namespace, a folder, and the name it should have there. With many folders, type in Search folders… above the list: every word you type must appear in the folder's path (so proj api finds Projects/backend/api), results show their full path, and Enter picks the top one.
+ New folder adds a folder to the list, under the folder you selected. It is created only when you confirm, so cancelling leaves nothing behind.
For a folder, the picker says how much will move before you confirm, for example "move 37 files (12 MB)", and warns when a folder is large. While it runs, it shows how long it has been going. A large move finishes on the server even if you close the window. While you choose, mdnest checks the destination with the server and tells you before you confirm:
if something with that name is already there (nothing is ever overwritten; change the name or pick another folder),
if you lack access there, or
if the folder is too large.
Move confirms only when the check passes.
- Moving keeps each note's identity, so its comments travel with it. Between namespaces the original is removed only after the copy has been checked. If you move the note you have open, the editor follows it.
- Copying makes new notes. They start with no comments.
- Links (symbolic links) inside a folder stop it from being moved or copied.
Download saves a file. Download as zip saves a folder with everything in it, keeping its folders; the .git and .mdnest folders are left out. Folders larger than the server's limits (500 files / 100 MB by default) are refused with the actual counts, so you can pick a subfolder. A large download can be cancelled from the status bar.
Between two mdnest servers: right-click a note → Copy file contents. In the other mdnest's browser, right-click a folder → Paste here, then press Ctrl+V (⌘V), or long-press the box and choose Paste. The new note is named after the first heading, and you can change the name before creating it. The copied text pastes anywhere else too.
- The note is created there with that server's permissions. It is never written over an existing one; you are offered a "(copy)" name instead.
- Images and attachments the note links to are not carried along; you are told which.
- A note over 1 MB is too big for the clipboard. Download it instead.
If someone moves or deletes the note you are editing, mdnest says so instead of saving it back at the old place. Copy your text from the banner if you need it.
Context Menu
The context menu provides quick actions for files and folders in the sidebar.
| Platform | How to open |
|---|---|
| Desktop | Right-click on a file or folder |
| Mobile | Long-press on a file or folder |
Folder context menu options:
- New Note -- create a note inside this folder
- New Folder -- create a subfolder
- Rename -- rename the folder
- Move to… / Copy to… -- to another folder or namespace (see Moving, copying and downloading)
- Download as zip -- the whole folder
- Paste here -- a note copied from another mdnest
- Delete Folder -- remove the folder and all its contents
File context menu options:
- Rename -- rename the file
- Move to… / Copy to… -- to another folder or namespace
- Download -- save the file
- Copy file contents -- the note as plain text, for pasting anywhere or into Paste here on another server
- Delete -- remove the file
- Attribution (v4.2.0+, multi mode) -- who created the note, who last edited it, and everyone who has contributed. Built from an activity trail of every save, cross-checked against the note's git history so edits made outside the app are still credited. Single-mode installs have no user identities to attribute, so the entry is hidden.
Toolbar actions (appear when a file is open):
- Rename -- rename the current file
- Delete -- delete the current file (with confirmation)
Mobile Usage
mdnest is designed to work on mobile browsers.
- Sidebar toggle: Tap the hamburger menu icon (top-left) to show or hide the sidebar. The sidebar opens as a slide-over up to 420px wide so long names fit.
- Editor/Preview toggle: On small screens, the editor and preview are shown one at a time. Use the toggle to switch between them.
- Context menu: Long-press on a file or folder to open the context menu (equivalent to right-click on desktop).
- Moving files: Long-press → Move to… opens a destination picker. HTML5 drag-and-drop is disabled on touch (it interferes with scrolling), so this is the touch-friendly path for moves.
- Show full names: Tree labels ellipsize by default to keep the visual rhythm consistent. Tap the lines icon in the tree control bar to switch to wrap mode and read long file/folder names in full. The choice is remembered across visits.
- Loading state: A centered spinner shows while the tree loads on a slow connection; a thin animated bar appears at the top of the tree during a refresh so silence on the network never looks like an empty namespace.
- Refresh tree: A refresh icon sits in the tree-control row at the top of the sidebar. Tap it to reload the tree on demand. You shouldn't often need to — the tree re-reads itself every 30 seconds while the tab is visible, and again the moment you switch back to a backgrounded tab (v4.1.3+), which is what picks up files created outside the browser via the
mdnestCLI, MCP, or a git-sync pull. That automatic refresh is deliberately silent: no spinner or progress bar for a reload you didn't ask for. - Toolbar path: The currently-open file's basename always stays visible — only the parent path gets ellipsized when the toolbar is cramped.
Deep Links
The URL hash encodes the current namespace and file path. You can bookmark or share direct links to specific notes.
Format:
http://localhost:3236/#namespace/path/to/note.md
Examples:
http://localhost:3236/#personal/todo.md
http://localhost:3236/#work/projects/roadmap.md
Opening a deep link takes you directly to that note (after login if your session has expired).
Linking to a heading (v4.8.2+)
Hover any heading, in the preview or in the Live editor, and a small link button appears after its text. It offers:
- Copy link: a URL that opens the note scrolled to that heading, for example
http://localhost:3236/#work/projects/roadmap.md#Next%20steps. - Copy as [[wikilink]]:
[[projects/roadmap#Next steps]], to paste into another note in the same namespace.
A heading is found by its text, so if it is renamed after you copy the link, the note opens at the top instead. The button sits beside the note, never in it, so using it changes nothing in the file.
Version Updates
When the server is updated to a new version, active browser sessions will see a blue banner at the top:
New version available: v3.1.0 → v3.2.0 [Refresh Now]
Click "Refresh Now" to reload and pick up the latest frontend. The check runs every 60 seconds.
Git backup of your personal namespace
On a server that keeps namespaces in git (multi-user, git storage), Settings > Personal namespace has a Git backup section. Your personal namespace is a namespace of your own, named after your email. Point it at a git repository you own and every change is pushed there, so your notes are also kept outside mdnest.
- Set up backup: choose HTTPS or SSH, the repository, the branch, and a token or deploy key that can write to that repository only. mdnest keeps it encrypted and never shows it again; leave the field blank when you edit to keep it.
- Pause / Resume stops and restarts the pushes and keeps your settings.
- Turn off deletes the settings and the token. Your notes stay in mdnest, and what was already pushed stays in the repository.
While the backup is paused or off, your notes are not pushed anywhere: never to a repository of the server.
When a push fails, the reason shows under the repository. A super-admin can turn off your backup from your card in Admin > People (for example after you have left), but cannot point it at another repository.
Restarting the server (v4.8.2+)
A superadmin (or the owner of a single-user install) can restart the backend from Settings > Server, without SSH. Use it when the server seems stuck. Everyone is disconnected for a few seconds and reconnects on their own, and the page reloads by itself once the server is back. Saved notes are not affected.
A restart keeps the same mounted folders and settings. Changes to
docker-compose.yml or .env (a new namespace folder, for example) still need
docker compose up -d on the server.
Appearance (v4.3.0+)
mdnest ships a light theme alongside the original dark one.
Switching: the sun/moon button in the top-right toolbar flips between light and dark. The icon shows the theme you would switch to.
Three choices, in Settings -> Appearance:
| Choice | Behaviour |
|---|---|
| Match system | Follows your operating system's light/dark setting, and changes with it live -- no reload needed. |
| Light | Always light, whatever your system is set to. |
| Dark | Always dark. |
Your choice follows you, not your browser. It is stored against your account on the server, so signing in on a phone, a different browser, or a fresh private window gives you the theme you picked. (mdnest keeps a copy in local storage too, but only so the first paint is the right colour instead of flashing -- the server is what decides.)
Before you choose, mdnest uses the server's DEFAULT_THEME setting, which an
administrator can set in mdnest.conf; if that is auto (the default), it
follows your operating system.
Drawings follow the app theme, and repaint straight away when you change it.
The theme is never written into the drawing file, so an .excalidraw.md stays
portable and two people can view the same drawing in different themes.
Slide decks keep their own theme. A Marp deck is something you authored to look a particular way, and it renders that way regardless of your app theme.
Per-File Preferences
mdnest remembers your preferences for each file individually:
- View mode — editor, split, or preview. Switch once and it sticks for that file.
- Editor mode — basic (textarea) or live (rich editor). New files default to Live mode.
- Scroll position — where you left off. Switch between files and come back to the same spot.
These are per-file and per-browser: they live in local storage and survive page refreshes, but do not follow you to another device. Your theme is different -- it is stored on the server against your account (see Appearance above).
Keyboard Shortcuts
| Key | Action |
|---|---|
| Tab | Indent the current line in the editor |