Outliner

Plugins

A plugin adds commands to Outliner. A plugin is a Tcl script or a WebAssembly module. Outliner runs no JavaScript, so the plugins of Logseq do not run. Some of them have a port: see the plugin list.

Install a plugin

A plugin is a folder with a file plugin.json. Put the folder in one of these places, and start Outliner again:

The repository has two examples in examples/plugins/.

Turn a plugin on

A new plugin is off. It runs no code.

  1. Open a page.
  2. Click Plugins in the toolbar.
  3. Read what the plugin asks for.
  4. Click This page to turn it on for the open page, or The whole graph.

The plugin panel

Off stops the plugin at once and removes its commands. The data that the plugin had in memory is deleted. Turn each plugin off at the end of the panel stops all plugins.

A plugin that is on for some pages gets no data of other pages. Its commands do not run on other pages.

What a plugin can ask for

GrantWhat it gives
readSingle blocks of the pages that it is on
read-pagesWhole pages that it is on: the text and the list of blocks
writeChanges of blocks of the pages that it is on
commandsCommands in the command list and the slash menu
notifyMessages in the status line
networkThe network. This version blocks each network call
filesFiles outside the graph. This version blocks each file call

Private pages and blocks

No plugin gets private data, with any grant and any scope. The activity report shows each try as blocked.

The activity report

Activity report in the plugin panel shows each call of each plugin, newest first: the time, the plugin, the action, the page and the block, and the result. A blocked call is red and has its reason. A change shows the text that the plugin wrote.

The activity report

What has a plugin seen

What it has seen lists each block and each page that a plugin received. The command What plugins have seen of this page gives the list for the open page.

The list of what plugins have seen

Write a plugin

The plugin API has the manifest, the Tcl commands, and the WebAssembly functions.