OKF — Open Knowledge Format

Last reviewed: 2026-08-21

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
---
# 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.

Where OKF comes from: OKF is an open specification by Google Cloud (GoogleCloudPlatform/knowledge-catalog, Apache-2.0 licence). Plainva follows OKF 0.2 (published 25 July 2026). New in 0.2 are five optional fields with which a note says where it came from, whether someone reviewed it and whether it still holds — generated, verified, sources, stale_after and status. What Plainva shows and writes of them is described below under “Provenance, review and lifecycle”.

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 in its frontmatter — since OKF 0.2 the version marker okf_version lives once in the root index.md, no longer in every note. You configure the values per vault: Settings → Vault → Content & structure → 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 — where older notes still carry it — 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: What is OKF? in the settings gives you the short version in three sentences plus a link to this page. It no longer opens by itself; if a vault contains files that do not follow OKF, Plainva says so once in a small message with a button that takes you straight to the conversion.

Provenance, review and lifecycle (OKF 0.2)

Since OKF 0.2 a note can say where it came from, who reviewed it and whether it still holds. Plainva turns that into three things:

What Plainva shows.

What Plainva writes.

Upgrading the bundle version. The version of the convention lives once in the root index.md. A vault that still declares "0.1" keeps working unchanged — under Settings → Vault → Content & structure → Bundle version (on the phone: Settings → Vault → Maintenance → Bundle version) you lift it to 0.2 with Upgrade…. The dialog shows beforehand what changes: the line in the root index.md and, as a checkbox (on by default), removing the legacy okf_version field from the notes that still carry it. Every file is backed up before it changes; Clean up… does only the second part. The field table and the write rules in detail are in the File Format Reference.

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 → Vault → Content & structure (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.

On the phone

The same route exists on mobile: Settings → Vault → Maintenance → Convert to OKF format. The steps are the same — scan, decisions, preview, convert — and the preview names the affected notes before anything is written.

Two things are added, because a phone may take an app out of memory at any moment:

Roll back restores the files from the backup folder — on the desktop too, from the report at the end of the run. The backup folder stays afterwards; it is the only copy of the state before the conversion.

Do I have to use OKF?

No. OKF is a gentle standard:

See also