SelfscribeDownloadOpen the app

Editors and tools

A Selfscribe file is plain text, so any editor can already open, edit and save one. Other tools add the engine. It highlights each document by its own rules, draws the rendered page and shows problems where they are. Here is what works today and what is on the way.

Use the command line (available now)

#

self is the engine on its own. It is also installed as selfscribe.

text
self render notes.self            # HTML (or --text, --tree, --ast)
self render notes.self --plugins -o notes.html   # a page that draws its charts and diagrams
self pdf notes.self               # notes.pdf, plugins drawn, printed by Edge or Chrome
self check notes.self             # problems, exit 1 on errors
self fmt --full -w notes.self     # the rules block in full form (or --short), in place
self watch notes.self             # render again whenever the file or its imports change
self serve --stdio                # answer parse and render requests as JSON lines

Use serve to talk to the engine from another program without linking it. Send a document and get the HTML and the problems back. Imports resolve from disk, under the folder you give with --root. Without it, self uses the nearest folder above it that holds a selfscribe.self, or else the folder it runs in. The command line has the rest.

Visual Studio Code (planned)

#

A TextMate grammar cannot highlight Selfscribe, because each file carries its own syntax. So the extension will run the engine itself, the same WebAssembly the web app uses, as a small language server. It will give you:

  • highlighting from the document's own rules, through semantic tokens
  • problems in the Problems panel, each with the rule that caused it
  • folding for sections, blocks and the rules block, regions included
  • a preview beside the editor, drawn with the plugins that are safe in a webview

Obsidian (planned)

#

The plugin will draw `selfscribe blocks inside notes, such as a recipe card, a data table or a chart. It will also open .self files as first-class files in the vault. The engine is built in, with no network. The design brief, written against Obsidian's plugin API and review rules, is on GitHub.

You don't have to wait for it to use your vault. Selfscribe opens a vault as it is, with its links, embeds, properties, callouts and a graph, and adds nothing to your notes. Coming from Obsidian

Your own site or app

#

To render Selfscribe in a browser, on a server or in a worker, see Embed the engine. The engine is a small WebAssembly module with a JavaScript API. To draw something richer than text, see Write a plugin. A plugin is written against a small interface.