Repository navigation
This release fixes seven security problems in 0.7.1 and earlier releases, so please update. From 0.7 on, your data carries over when you update Leafen; on 0.1 or 0.2, update to 0.7.0 first, which carries their data over. Before an update changes how data is stored, Leafen keeps a copy of the whole data folder.
Security
- Live connections. A page's live editing and a workspace's change feed put your login token in their WebSocket address, which a browser writes in its console when a connection drops and which proxies and access logs keep whole, so whoever read such a log could use that login. The token now goes in the connection's
Sec-WebSocket-Protocolheader and no address carries it; a reverse proxy in front of Leafen has to pass that header on (see Updating). - Standby servers. A connection code made in the first seconds after continuous replication was turned on lost its pair secret and join token, and a primary without a join token let a standby join with any code, an old or altered one too. The code now keeps both, and a primary without a join token lets no code join. A pair whose code lost them shows its direct check failing; make a new connection code on the primary.
- Publishing while data loss prevention blocks it. With a data loss prevention policy blocking public web sharing, publishing a page was refused, but a form could still be opened to anyone with its link, from its share menu or through the API, and was served to people signed out. A page's web link, a site and a web form now go through one rule: while the policy is on, none is opened to the web, one opened before stays closed until the policy is turned off, and the form's share menu dims the web with the reason.
- Key policies. An organization's key policy reached agents' keys and MCP tokens but not the Notion-compatible tokens of its workspaces: under a 30-day policy an API token connection's token never ended and a personal access token lived a year, and with keys turned off both kept working. Every key of an organization's workspaces now ends within the policy's days, none is made or works while keys are off, and a refused one is answered with the policy's reason; an API token connection's webhooks go out only while its token stands.
- Exports. An export could hold pages its exporter can't open: a page exported with its sub-pages took every page under it, those whose sharing was cut from it among them; a workspace owner's whole-workspace export took every teamspace's pages, those of a private teamspace they were never in among them; and a private page of the exporter's own still went in after their access to it was taken off. An export now asks each page's access as opening it does, and leaves out a page the exporter can't open with the pages under it. A workspace move to another server still carries every page.
- Comments. Anyone who could edit a page could, through the API, rewrite another person's comment or take its files out while it still read as that person's, and a member with full access could delete other people's comments. A comment's words and files are now changed by its writer alone, and a comment is deleted by its writer or the workspace owner, whose comment menus now offer that delete on others' comments and replies.
- Invitation codes. Invitations by name, email invitations' sign-up tokens and workspace and teamspace invite links were stored as they are, so a copy of the database file alone let its holder use any still open. They are now kept as a hash, and those a screen copies again are sealed with the server's own key, as public share links already were; the update converts those already made, and links already handed out keep working.
Fixes and changes
- Workspace owners and organizations. A workspace can have several owners: choosing Workspace owner on a member's row makes them one at once and the owner who chose it stays one. Every owner has the owner's role in the workspace, its people and its settings, while the organization's security, audit log, key policies and admin roles stay with the organization's owner; the owner a workspace names steps down only while another owner is there, and deleting their account leaves the workspace with the others. One person may own several organizations, so an organization passes to anyone active in it and back; its owner renames it in Settings › Organization; and a workspace's owner reads that workspace's audit lines there without the audit role. Someone removed from a workspace, or leaving it, is taken out of its teamspaces and groups too, a teamspace they alone owned passing to the workspace's owner.
- Teamspaces. An owner of a page's teamspace turns the page into a teamspace of its own from the sidebar's Turn into › Teamspace: an invite-only teamspace named after the page and wearing its icon, the people the page was shared with as its members and the page with its sub-pages at its top, in one change. A closed teamspace is asked to join from its row's menu in the library, and a sent request reads "Asked to join" and "Requested" without sending again. A page of an open teamspace can be made for invited people only (Change and unlink), and Restore settings gives the teamspace's access back. Members given roles of their own are all counted in the share window and the full-access tip, and the teamspace summary names every role its members hold.
- Sharing. The share field also finds, by name, the people you work with in your other workspaces on the server, who come in as guests when a page is shared with them. After a share, the window offers to let the people just invited read the pages the shared page links to that they can't open yet. A page or a database row that gives someone more than the page above says so in its share window; a dimmed general access choice says why, and a name that finds no one offers the guest invite link. Moving a shared private page to a teamspace's top, or a teamspace's page under a private page, asks first, from Move to and a sidebar drop alike. The full access row names the workspace owner only while the page gives them full access, the roles a person keeps anyway are greyed in their row's menu, and a narrowed property says under its exceptions who keeps it. A row that reaches you only by a database's page-level rule no longer heads your Shared section, and a page whose sharing is cut from the page above names no access from it.
- Moving pages. A page leaves the page it is in — moved, sent to the trash or made a database's row — only for one who may edit that page too, and a database row goes to a teamspace's top only where its mover may add pages; the page and sidebar menus and the phone sheets dim Move to and Move to Trash with the reason, and a sidebar drag lights only where the page may go. Moving a page, or turning it into a wiki, keeps the mover's full access where it goes; Move to dims the workspaces a page may not go to; and a guest's page at the top of what is shared with them stays where it is.
- Invitations and joining. An invitation by name lets in the account it names when that account opens it logged in, or an account whose name holds it (a first name for a full name), and a browser logged in as someone else never spends a colleague's invitation; an account made with a name only takes an email invitation sent to its person, the address becoming its own. Colleagues behind one office address join however many they are: invitations for one person, and a link opened where its maker is logged in from, no longer count against the address's ten an hour. Add members finds the owner's colleagues on the server by name, an invitation by email or by name answers with the link to hand on, the "added you to a workspace" email opens that workspace, and an invitation the account already used opens its workspace again.
- Logging in. Scanning a device's QR signs a phone's browser in at once, and a home screen icon is named after its server. A page opened before signing in with Google, OIDC or a company's single sign-on opens after it; people stay in when the OIDC sign-in moves to a new issuer; and a SAML sign-in's way back is no longer encoded twice. On a server that sends no mail, "Forgot your password?" first offers a code from another logged-in device or an agent. Turning on an organization's password and 2-step verification rule signs no one out and holds a member's sign-in to those steps; a device code the rule refuses says why; and a login screen waiting on an agent hears when the organization keeps agents from approving. The login history names a login an agent approved as such, a device link opened where you're already logged in goes on with nothing to close, the desktop app's "Open in a browser" takes today's device codes, and the sign-up step has its own address,
/signup. - Comments. A file pasted or dropped into a comment's box — a picture or any other file, in a new comment, a reply or an edit — becomes the comment's file, never a block at the page's end; closing a changed edit asks before discarding it; the box grows to most of the window before it scrolls; three files or fewer stand one under another; and a picture the browser can't draw shows as its file card. A comment being written when the page turns read-only is kept and can be copied. A discussion whose words or block were taken out still opens from its address among the page's discussions, a closed toggle's discussions stand beside it in one card, and a copied discussion link opens with its block chosen. A value commented on is marked in its cell, its peek and its page, a cell's comment tool counts its comments, a row's comment count opens its page's discussion, and file rows and uploaded audio get the line-end comment button. On an iPhone a reply box brings the keyboard at the first tap.
- Suggesting mode. Suggesting mode takes edits in simple table cells, accepted or rejected in the cell, on the screen, through the API and by agents alike. A replacement typed over words another person's suggestion already struck shares them, so accepting either takes them away; a suggestion another accepted one leaves with no words is withdrawn; a settled suggestion reads as resolved; and an agent's write keeps a block's open suggestions.
- Editor. Text is kept composed however it comes in — macOS file names, imports, pastes, drops and comments — so Korean and other letters read and search as typed. Headings are page headings (h2 to h5) to screen readers, in the editor and on published pages. Blocks pasted into another workspace bring their files along as that workspace's own copies, and a synced copy of another workspace's original is refused on every write. A Mermaid block keeps its view and width through an agent's rewrite; a line turned into a callout keeps its color; a caption's ALT mark shows only while the caption is empty; a press under a table cell's words writes at their end; a search highlight stays on its keyword in long text without spaces; and the "/" menu of a Korean screen finds blocks by their English names right after a new page's title.
- Databases. A database's title shows or hides for all its tabs at once, in one undo step. A formula over relations works out on a row's page and in a version preview, one over pages its reader can't open says so instead of waiting, and its plain number reads in the reader's decimal mark; a formula an agent writes is checked before it is saved. The workday functions count on the workspace's calendar — South Korea's holidays where its owner keeps Seoul's time zone, else weekends — the same for every reader, and an unknown calendar is named. A database item's share bands and its parent key open the database at the view you last chose there. A chart made from "/" is named Chart and starts by the first property it can group by; a conditional color shows its chosen status groups; a chosen 12-hour time format stays apart from none; a paste or typing into a chosen cell reaches it in Safari too; and an automation naming a property its database lacks is refused.
- Timeline. Bars lie over their dependency links, so a second link drawn from a bar's handle is kept; a link shows as it is dropped; a dependency line ends before the next bar under an open arrowhead; the link pointed at rises over the bars; and choosing a successor ends with the drag, a press elsewhere or Esc.
- Date filters. A day typed in a filter is read as the date editor reads it, "2026/12/07" included; text that names no day keeps the caret instead of becoming January 1, and a day typed with a time is refused. A range's next field takes the caret after a picked day and Enter moves on, each field clears by its own button, a relative date's count is kept however the window closes, a rule with only its range's end set means that day alone, and the calendar shows today's month once no day is marked.
- Automations. An automation's email step goes out through the server's own mail; on a server whose mail isn't set up the step says so and the automation isn't turned on. An automation that stops after an error leaves a notice in the inbox of whoever last turned it on, naming it, its database and why, and its inbox messages name the row it ran for.
- Forms. A closed form's link says it is no longer open; a signed-in visitor from outside the workspace isn't asked to log in; a form takes answers by its own link wherever its database is, a member's private page or a page moved since among them; a number answer such as "5,000,000" is read as a number cell reads it; and a public form shows its questions in the language its maker wrote them in. Agents are given a form's whole address (
/form/{token}). - Wikis. A duplicated wiki stays a wiki; a wiki page leaving its wiki, or exported with its sub-pages, takes them along; a shared wiki page lists its pages under it in the sidebar; and a wiki takes no new page-level rules and shows the ones it holds.
- Trash and legal holds. A deletion for good takes every page under a database page at any depth and asks the legal holds of the whole tree before it starts, so a hold leaves the page in its 30 days and says so; a wiki's pages and database items under a page deleted for good no longer open for those they were shared with. A page with no parent sent to the trash goes back to the page viewed before. An organization's content search hands over each page's earlier wording from its history, a search that matched nothing saves no file, a legal hold picks only the organization's pages, and the trash names a hold to compliance admins.
- Version history. A version's files are named by stable addresses, with download links that work after their block is gone; restoring a version, or a Leafen file, brings blocks back with when and by whom they were first made; and a block taken away in the editor reads through the API as in the trash rather than missing.
- Export and print. A printed page holds the page alone — no discussions, comment marks, hints or skip link — wraps a code block's long lines and lets a wide table run on; a database page opened whole prints as the page; a Mermaid diagram prints as it shows; and a narrowed picture keeps its width in HTML exports and print. A Markdown export heads a page with its title alone and writes a tab block's contents unindented, a property its page always hides is left out, an export in Safari's private window downloads whole, a failed export says why with a reference, and a page whose export is turned off dims its export and copy rows.
- Moving from Notion. The people a move keeps stay mapped through a run again and in database pages, templates, the trash and mentions, and each moved page, database and block keeps who made it and last changed it and when, people left unpaired named by name. A linked database shown on a page of its own comes over as that page; a moved discussion marks the words it was left on; pictures, videos and PDFs keep their size and alignment; a database whose title is hidden comes with it hidden on every view; and a whole-workspace move names whose private pages it leaves behind before it starts.
- Moving between servers. A workspace moved to another Leafen server brings its paired members' private pages, its guests and what they were given, its owners, its groups and default teamspaces, and what kept people from pages and values — page roles, cut sharing and property rules — so nobody sees more or less there; tens of thousands of shares go as a file of their own. A Leafen file goes into a workspace that already has pages, as a move under the page you choose; a restore takes any number of top pages; the times of pages, databases and blocks are kept; and a refused file says why.
- Addresses. A link to one of the server's pages written at another of its addresses — a gone quick tunnel's, or 127.0.0.1 — opens, renders and exports at the address it has now. A tab left at a gone temporary address carries on to the new one with its unsent edits, once that address proves it is the same server. The own address check asks the address itself, so a Cloudflare error no longer reads as working, and the first setup takes a Cloudflare tunnel's token. On a server only its computer or network opens, a published page's bar, the publish tab and a form's share menu say no one else can see it yet. Address fields refuse text that can't be an address, a new site's address keeps accented letters, and cloudflared runs on Windows on Arm.
- Standby servers. A standby takes no changes of its own and says to make them on the primary, while signing in, connecting an agent and reads still work; its screens say what a standby is and that a takeover replaces accounts and administrators; a takeover keeps the primary's backup times; and a pair at one public address reaches each other at their own.
- Server and audit log. The server audit log keeps every change an administrator makes, a standby's takeover and an administrator's agent, and a login page's ask for the away administrator's code is logged with the address and browser that asked. The organization's audit lines name the agent or integration a change came through, a form opened or closed, data loss prevention switches, and whose share and which roles a sharing change touched; a save that changed nothing writes no line. A device holding copies from before a restore, its undo, a takeover or a move hears which and when, and nothing typed goes in until it answers. A shared page, site or form opens by itself once the server answers again; open screens follow what an agent or another window changed; a missing file-like address opens the app's not-found page; and cloud backup folders are named by their drive rather than a full path.
- Data loss prevention. Text holding a sensitive term stays on the page, unsent, until the term is taken out, instead of the page opening again from the server's copy; a refusal names its rule and quotes the start of the line holding the term, never the term; and blocking external sharing refuses only recipients outside the organization, with no outside addresses offered.
- Agents and the API. An agent sends large files through Leafen's MCP, places a picture another page holds and attaches a comment's picture; it hears every missing field of a call at once with the next step, and a page's writes say where to fix. A key's chosen life holds when a connection text goes to an agent already connected; a call kept to one workspace is held to that workspace's organization's key policy alone; and the Notion-compatible API and the MCP say which token each takes. People are found across a connection's workspaces and by their Leafen ID, an address naming a page by its ID, with or without dashes and after its title and its workspace's name, opens it, MCP date writes read a time written in SQL's form, and the MCP tools' descriptions are shorter. A new API token and a key made by hand show as dots until the eye is pressed.
- Phone. A picture opens full screen with share and download: a tap hides the bars, a double tap zooms and a swipe steps. A guest's page carries a band asking to become a member, sent from a short sheet with a reason, and a guest's foot is a search pill. A page's add icon, cover and comment, its verification and its updates are in its "…" sheet for everyone. The filter and sort screens pick days in the system's date field and relative dates from a list, and search properties; a lost connection is said over sheets and full-screen windows, and rows that need the server are dimmed.
- Desktop app. On the app's own server, a security release shows on the app's band with a button that updates the way the app was installed. On Windows, a tray press brings hidden windows back and a hidden window's pages know they are away. The tab strip works by keys — Tab, the arrows, Enter and Space — passes shortcuts to the page and reads as a tab list to assistive tools, its group menu has a color button, and only a tab's top edge moves the window. The Mac app reaches servers at a name under
localhost. - Languages and accessibility. Dates use Western digits in every language, a screen language the browser lacks writes dates and lists in English rather than the browser's language, counted lines take each language's plural forms, and translated sentences are joined with the gap their language calls for. Right-to-left screens read the inbox and teamspace and workspace names their own way. Keyboard and screen reader paths give the focus back where it was, the view tabs' add-view button is a Tab stop, a page bar's buttons are named by what they do, and a published page says the language of its words.
- Inbox. A notice's workspace letter and icon sit in its line as a page icon does and stay out of its words for screen readers, a mention names the person as they are called now, and workspace and teamspace notices open in their own workspace.
- Apps. An app's install window chooses who may use it before it is installed, says why Install waits while the trust check is open, and shows the key a signed package names.
- Pages and settings. Settings search finds what each person's settings show, the organization's sign-in rules among them, and a settings section keeps its open folds; a new workspace's welcome page is shared with everyone in it; the workspace switcher names a server only beside a same-named workspace on another; a page moved to another workspace shows in that workspace's sidebar at once; and a page cover keeps its middle in a narrow window.
Updating
- Docker — with the
compose.yamlof 0.7.1 or later,docker compose up -din its folder gives the current release; with an older one,docker compose pulland thendocker compose up -d(install guide). - Behind your own reverse proxy — the app's live connections now carry their sign-in in the
Sec-WebSocket-Protocolheader, so the proxy has to pass it on with the other WebSocket upgrade headers (reverse proxy). A screen opened before the update still connects as before. - Organizations with a key policy — where an organization holds keys to a number of days, its workspaces' Notion-compatible tokens are held to it from 0.7.2 on. An API token connection's token made before had no end, and a personal access token may live longer than the policy allows, so such tokens are refused with the policy's reason until they are made again.
- macOS — the app updates itself; or download the new disk image below.
- Windows — download the new zip below and replace the old folder; your data stays in
%APPDATA%\Leafen.
Download
- macOS (Apple silicon) —
leafen-desktop-0.7.2-darwin-arm64.dmg - macOS (Intel) —
leafen-desktop-0.7.2-darwin-amd64.dmg - Windows —
leafen-desktop-0.7.2-windows-amd64.zip(Arm:leafen-desktop-0.7.2-windows-arm64.zip). It isn't signed yet: when "Windows protected your PC" appears, click More info, then Run anyway. - Server —
docker compose up -dwithghcr.io/leafen-org/leafen:0.7.2orleafenorg/leafen:0.7.2(self-hosting guide). - Or let your agent do it — paste this to the agent you use:
Read https://github.com/leafen-org/leafen/blob/main/docs/install.md, install Leafen on this computer and take me through its setup.
The other files are read by Leafen itself: the macOS .zip files are what the app updates itself from, and catalog.json, its signature and the .leafenapp packages make up the official app catalog.
SHA-256
3abc5334545a9682ea21b435a61a9bdf74810ad160e551328da0443ec72c96fb approvals-1.0.36.leafenapp
6ce062ceecc70804cff66786a6f3bd2d60a96ffad19e000f5fb6f1e57769a729 briefing-1.0.19.leafenapp
e3e4380bba3240e0e968d684162ddabe182f073a8bf1fef8fb1aa4fe1ebe5b4b catalog.json
48cb9302111a4c04bf215f5a2491384592b5932139095d2562068a6d679ad9fb catalog.json.sig
fb57badb42b32e3d7f9421a02724191c71c17caf6a9da6fe1a443c9f80319bde leafen-desktop-0.7.2-darwin-amd64.dmg
6d206432c45c6b0c70304c4768422c4763fce85a89566d707b01054cc09dcc45 leafen-desktop-0.7.2-darwin-amd64.zip
e25528e77de59fd00cf3ce65938121ae5abaf80432db1726e42a2b18a73decf5 leafen-desktop-0.7.2-darwin-arm64.dmg
51b7a911eadb676b8caf048f2007577c4258a43737e27b33975e8111d8ca578c leafen-desktop-0.7.2-darwin-arm64.zip
b16106565ada539c26085aa43e1586ed9fae5bf030d0db961b0c1eaaa9f0f663 leafen-desktop-0.7.2-windows-amd64.zip
5bd513e47851e3944ffd1a9c03b892cebb09276af49c120d7f273bde58b31099 leafen-desktop-0.7.2-windows-arm64.zip
aada21a446c63ad80b1af7ed008b058e4e9f9ab8e245012c6d55e116b3c3c065 mail-1.1.15.leafenapp
68810f7997038b63d56ddccc1c01d19d6d2537d5b74f79cc78af748d94197fd4 office-editor-1.0.2.leafenapp
3cd86ca3053b353eca41d183de9adabe89030c7b1f01c53516c9a4e1f88f239f team-quiz-1.0.22.leafenapp
99173da0b6888240679c781acd3f00fd90e4f2c90d2f911a55df4975385e4107 vault-1.2.24.leafenapp
456121fb9d669d2a251c40d0ce291cdc73477d2e9a638ea60c9fed3a6bf2812c webdav-1.1.34.leafenapp