Notes
Notes are Markdown files. YAML frontmatter gives pkm structured fields for search, filtering, type templates, and graph resolution.
Basic Note
Section titled “Basic Note”---title: Architecture Decision: Switch to Kafkaaliases: - Architecture Decision: Switch to Kafkatags: - architecture - kafkatype: notecreated: 2026-04-25modified: 2026-04-25---
# Architecture Decision: Switch to Kafka
## Context
## Decision
## ConsequencesTitle Derivation
Section titled “Title Derivation”When a note has no title, pkm derives one from:
- The first H1 heading
- The filename stem
This keeps hand-written Markdown indexable.
Filenames
Section titled “Filenames”Generated filenames preserve readable names while replacing unsafe link and path characters.
DAG: user_events_daily -> DAG - user_events_daily.mdWhen the filename differs from the title, pkm adds the original title as an alias.
Metadata
Section titled “Metadata”pkm indexes common fields like tags, aliases, type, created, and modified. It also indexes arbitrary top-level YAML properties, so custom note types can define their own metadata without schema changes.