Outliner is a fast, native outliner for Markdown and Org notes, with links, journals, and queries. Plugins are off until you turn them on for a page, each call of a plugin is in a report, and a private page reaches no plugin.
A plugin for a notes app can read each thought you wrote. In Outliner a plugin gets nothing until you say so, and you can see each thing that it did.
A plugin runs no code until you turn it on, for one page or for the graph. Off stops it at once and deletes what it had in memory.
The manifest of a plugin lists its grants: read blocks, read whole pages, change blocks, add commands. You read the list first. Each other call is blocked.
A page or a block with private:: true reaches no plugin, with any grant. The same holds for the properties that you list as private.
Each read, each change, and each blocked call, with the page and the block, live and with a search. A hash chain shows a changed log.
One click lists each block that a plugin received, for one plugin or for one page.
A plugin can give data out only as a block that it writes or a message that it shows, and the report has the text. Network and file calls are blocked.
The test plugin in this image tries to read a page that it is not on, to call a web address, to read a file, and to change a block with no write grant. Each try is blocked and is in the report with its reason.
| Layer | State | What it does |
|---|---|---|
| No JavaScript | In this version | A plugin is a Tcl script or a WebAssembly module. |
| Safe interpreter | In this version | A Tcl plugin has no file, network, or program command. Its only way to your notes is a request that the app checks and records. |
| WebAssembly engine | In this version | A module reaches only its own memory and the checked host functions. |
| Compute limit | In this version | A plugin that loops with no end stops with an error in the report. |
| A virtual machine for each plugin | In progress | Each plugin in its own guest with its own kernel, and a child process on a computer with no hypervisor. The app keeps the graph. The guest gets only the blocks of its grant. |
| Tasks for a language model in a virtual machine | In progress | You write a task and a scope. The app copies only those blocks into a new guest, shows you the list first, and takes back only the result. |
This page lists a feature as "in this version" only when the released code has it. Security has the details and the limits.
Outliner opens the folder of a Logseq file graph and writes the same Markdown and Org files. A file that you do not edit keeps each byte.
[[Links]], #tags, aliases, namespaces, linked and unlinked references.
/ for commandsTasks, dates, links, embeds, queries, code blocks, headings, and templates. Type [[ for pages and (( to find a block.
Enter, Tab, Shift+Tab, Alt+Shift+Up. The keys follow Logseq.
Write a plugin in Tcl in ten lines, or build a module from Zig, C, or Rust.
Wayland and X11, AppKit with Metal, Win32 with Direct3D 12, through ztk. About 56 MB, one file.
Measured on a graph of 10,730 pages and 42 MB of Markdown, on an Intel Core i7-6700K, with the CPU renderer.
The index of a new graph needs 2 s for 10,730 files and runs in the background. A query on the whole graph needs 3.3 s the first time. Each number and the method.
Outliner is a beta. Keep a backup of your graph. No release exists yet: the buttons open the release page, and the build from source works today.
git clone https://github.com/beetlebugorg/ztk-outliner
cd ztk-outliner
tools/build.sh # needs Zig 0.17.0
dist/outliner ~/Documents/my-graph
Each release has a file with the SHA-256 of each download. The notes of a release say if its macOS app is signed and notarized.