Foam extends VS Code into a personal knowledge system using wikilinks, backlinks, templates, and optional publishing from plain Git-backed Markdown.
Overview
Foam is a personal knowledge management system built on Visual Studio Code and plain Markdown files stored in Git. You organize research notes, long-form writing, and interconnected ideas without a proprietary database.
Wikilinks connect notes with autocompletion, peek navigation, section links, embeds, and aliases. A graph view visualizes relationships, while panels list backlinks, tags, orphans, and placeholder links. Renaming files or sections updates references to reduce broken links.
Daily notes, templates, syntax highlighting for links, and random-note navigation support common note-taking workflows. Optional tooling generates standard Markdown references so notes remain readable on GitHub and GitHub Pages outside Foam.
A separate foam-cli package searches and inspects the graph from the terminal and can expose the knowledge base through MCP for agents such as Claude Code and Cursor. Foam is MIT-licensed and described as local-first, with files you can sync via Git or common cloud sync tools.
Key features
- Wikilinks with autocompletion
- Graph visualization in the editor
- Backlinks and connections panel
- Daily notes and note templates
- Tag explorer with hierarchical tags
- Sync links when renaming notes
- Note embeds and section links
- foam-cli and MCP graph queries
Use cases
- Zettelkasten-style research notes
- Long-form writing with cross-links
- Developer second-brain in VS Code
- Sharing static notes via GitHub Pages