Outliner
Beta · AGPL-3.0 · a ztcl/ztk port of Logseq

Your notes. Nobody else reads them.

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.

Linux, macOS, Windows, and the web. The demo in the browser keeps its notes in the file store of your browser.
The journals in Outliner: two days of notes with tasks, links, tags, and the tasks of today from a query

Notes are private data. The program treats them that way.

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.

Off by default

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.

Only what it asks for

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.

Private means private

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.

A full activity report

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.

What has it seen?

One click lists each block that a plugin received, for one plugin or for one page.

Nothing leaves in silence

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 plugin panel

  • Each plugin with its kind: Tcl or WebAssembly.
  • What it asks for, in plain words.
  • Three choices: Off, This page, The whole graph.
  • How it is isolated on this computer.
  • Its calls, its blocked calls, and the pages that it read.
The plugin panel with three plugins, their grants, their scope, and their activity counts
The activity report of a plugin: reads with the result ok and blocked calls in red with their reasons

The activity report

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.

  • The time, the plugin, the action, the page, and the block.
  • The text of each change that a plugin wrote.
  • Check the log: each line has the hash of the line before it.

How a plugin is isolated

LayerStateWhat it does
No JavaScriptIn this versionA plugin is a Tcl script or a WebAssembly module.
Safe interpreterIn this versionA 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 engineIn this versionA module reaches only its own memory and the checked host functions.
Compute limitIn this versionA plugin that loops with no end stops with an error in the report.
A virtual machine for each pluginIn progressEach 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 machineIn progressYou 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.

An outliner that keeps plain files

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.

  • Blocks: indent, outdent, move, collapse, zoom, select, undo.
  • [[Links]], #tags, aliases, namespaces, linked and unlinked references.
  • Block references and embeds.
  • Journals, templates, tasks, priorities, properties.
  • Simple queries and advanced queries in Datalog.
  • Search, the right sidebar, the graph view.
  • A light and a dark theme.
  • Export as Markdown, text, HTML, OPML, and JSON.
A page with properties, a heading, a code block, a query, an embed, a template, and linked references

Type / for commands

Tasks, dates, links, embeds, queries, code blocks, headings, and templates. Type [[ for pages and (( to find a block.

Keys you know

Enter, Tab, Shift+Tab, Alt+Shift+Up. The keys follow Logseq.

Plugins in Tcl or WebAssembly

Write a plugin in Tcl in ten lines, or build a module from Zig, C, or Rust.

Native on each desktop

Wayland and X11, AppKit with Metal, Win32 with Direct3D 12, through ztk. About 56 MB, one file.

Fast with 10,000 pages

Measured on a graph of 10,730 pages and 42 MB of Markdown, on an Intel Core i7-6700K, with the CPU renderer.

0.6 sto open the graph and show the journals
0.5 msof script for a typed character
11.5 msfor a frame of a scroll, inside 60 frames a second
43 msfor a search of one word in all blocks
17 msto show a page
0.13 msfor a plugin call with its check and its log entry

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.

Download

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.