OKF — Open Knowledge Format

Last reviewed: 2026-07-07

OKF (Open Knowledge Format) is an open convention for Markdown knowledge collections: plain Markdown files with a small, uniform frontmatter header. This page explains what OKF is, what Plainva does for it automatically — and why you do not have to use any of it.

What is OKF?

The idea: every document in the vault says for itself what it is. A minimal frontmatter header is all it takes:

---
type: Note
okf_version: "0.1"
---
# My note

Writing files with a tool or script? The exact field contract — allowed values, how each property type serializes, and the reserved-name rules — is in the File Format Reference.

Why does Plainva use OKF?

Plain Markdown is wonderfully portable — but on its own it has no reliable structure. OKF adds just enough of it, and everything remains ordinary Markdown with standard frontmatter:

What Plainva does automatically

New files get the OKF header automatically: every note created in Plainva receives type and okf_version in its frontmatter. You configure the values per vault: Settings → Vault Settings → OKF (Open Knowledge Format)type for new notes (default Note) and type for daily notes (default Daily Note). If a template brings its own type, the template wins.

Existing files are never changed unasked. Plainva only adds OKF fields when creating new files or when you explicitly start the conversion.

Protected system fields: In the Properties panel, type and okf_version are marked as OKF system fields (“OKF system field – managed by Plainva”): the type value is selectable from a dropdown of known types, okf_version is display-only; renaming, type changes and deletion are locked so the convention cannot break by accident.

The explainer: When you first open a vault, Plainva shows What is OKF? once — the same summary is always available in the settings.

index.md: the table of contents per folder

An index.md is a folder’s table of contents: a list of the notes and subfolders it contains, with descriptions and relative links.

Converting an existing vault (opt-in)

If files in the vault do not conform to the OKF format (missing type field, or reserved names used as regular notes), Plainva offers the conversion — once when opening the vault, and permanently under Settings → OKF → OKF conversion (the entry only appears while there is something to do).

The Convert to OKF format wizard works in clear steps:

  1. Scan — shows how many files are affected (template and system folders are excluded; files with unreadable frontmatter are skipped, never “repaired”).
  2. Decisions — a default type for files without one; existing type values can be kept (recommended — they are already valid OKF types) or renamed into a different field.
  3. Preview (no changes) — a dry run shows in advance what would change.
  4. Convert — every file is backed up to .plainva/backups/ before it is changed; a report summarizes what changed, what was skipped, and the backup folder. Afterwards you can optionally continue to the index.md manager.

A tip from the wizard: changes go through sync as usual — for git vaults, commit first.

Do I have to use OKF?

No. OKF is a gentle standard:

See also