Callum Alpass459 downloadsEdit mdbase types and mirror hosted collections through mdbase Connect.
Sync your vault across devices and use it in mdbase apps like TaskNotes. The plugin can also give your notes types and check notes against them.
@ in a note to link to a book, a person or
any other note, or to create one and link to it in the same step.Types and checking work offline and without an account. Only sync needs an mdbase account.
Using TaskNotes App on your phone? You only need this plugin on one device, such as your computer. Your phone uses TaskNotes App and gets your tasks through mdbase.
In Obsidian, open Settings → Community plugins, choose Browse, search for mdbase, then choose Install and Enable.
New versions come out as prereleases first, and reach the community plugin
list once they've been tried. To get them early, install the
BRAT plugin, choose Add beta
plugin, and enter mdbase-dev/mdbase-obsidian.
Click the mdbase icon in the left ribbon, or run mdbase: Open workspace from the command palette. The workspace opens on Sync, which connects the vault to mdbase. See Sync.
To give your notes types, choose Types. The first time, Start a
collection makes this vault an mdbase collection. It adds an mdbase.yaml
file and a _types/ folder, and offers ready-made type packs you can install.
It doesn't create a type you didn't ask for.
Open the workspace and choose Types.
On phones, the type list and the editor are separate screens with buttons big enough to tap.
Type @ in a note to link to another note. The list shows each note by its
name and type. Keep typing a name that doesn't exist yet and it offers to
create it: New person “Octavia Butler” makes the note where people go,
gives it its type and name, and links to it. If the type needs more than a
name, a short form asks for the rest first.
@ only starts a link at the beginning of a word, so an email address is left
alone, and it does nothing in properties or code. Obsidian's own [[ links
work as before. To turn it off, see Settings.
A new note's file is named after the note, so the link reads the same as its name.
With Validate notes automatically on (the default), notes are checked against their types when you open and save them. mdbase: Validate collection checks the whole vault, shows progress, and can be stopped. A note without properties that no type matches, such as a plain note or an app's README, is fine and isn't reported. Many problems come with a fix you can apply in one click; it changes only the property it names. When a property links to a note that doesn't exist and its type says what kind of note it should be, the fix creates that note, so the link works as written.
Sync keeps the vault in step with an mdbase collection. It runs inside the plugin on desktop and on Android, so a phone doesn't need anything else installed. It isn't available on iPhone and iPad yet (see Requirements).
There are two kinds of collection:
Once it's running:
On phones, Android stops Obsidian soon after it goes into the background. Sync picks up again when you reopen it. Approving a sign-in in the browser can take two tries if you take a while to come back to Obsidian.
Only one app syncs a vault at a time. If the plugin finds that the vault was set up for sync before, for example by an earlier install of this plugin, the Sync tab says so and offers Set up sync here. Nothing changes until you choose it. If another app is syncing the vault right now, such as the mdbase desktop app or Obsidian on another device, the Sync tab names it. Turn sync off there first.
If you use the mdbase desktop app, it can sync the vault instead, in the background, even when Obsidian is closed. A vault the app already syncs keeps using the app, and the Sync tab shows its status. To switch a vault from Obsidian to the app, use Move to mdbase app under Advanced in the Sync tab.
Collections made with mdbase v0.2 open read-only. The workspace offers to
upgrade them to v0.3. Before anything is written, it shows every change it
plans, warns you about anything that can't be carried over exactly, and asks
you to agree. It backs up every file it changes (under .mdbase/migrations/)
and undoes everything if a step fails. It never rewrites your notes, only the
collection's settings and types.
@ in a note. On by default.connect.mdbase.dev and log.mdbase.dev) and fetches changes from them.
Private collections are encrypted on your device first. When you start a
collection, the plugin fetches the list of ready-made type packs from
mdbase.dev. If you use the mdbase desktop app, the plugin talks to it on
your own computer.mdbase command-line tool to check
sync status and set things up.Other plugins can exchange events and actions with mdbase in the same vault, once the user turns on Allow plugin integrations:
const host = app.plugins.getPlugin("mdbase-sync");
const client = host?.api.interop.connect(yourPlugin);
See docs/development.md for how the bridge works, and for building and testing the plugin.