Folio is an open-source project that aims to provide a real-time browser view for Markdown and data folders and to build a model of the entire folder so that agents, editors, and CI systems can also read the same information.
Purpose
Folio turns a folder containing Markdown and data files into an interactive browser view. Each page is rendered using GitHub-flavored Markdown, with support for math formulas, code highlighting, and charts. Pages update instantly on save, and Folio maintains a global model of the entire folder to help users understand unread content, whether data and charts are consistent, link relationships, broken links, and more.
Key capabilities
- Reading progress and change tracking: Folio remembers what the user has read. When a page is reopened, added, modified, or deleted blocks are marked (tables by row, lists by item, code by line), old content can be viewed with one click, and the file tree points to documents that have moved.
- Data files and in-document data: Data files such as CSV, JSON, Parquet, and SQLite open as tables and tree structures, with distributions shown below column headers, and record differences can be displayed for any filter condition. Documents can embed tables, charts, single values, or SQL queries across data sources, and redraw automatically when data changes.
- Components: Through ```component fences, scripts in the folder specified at startup draw components such as calendars, timelines, and forms, and components fetch new data from the data specified in the fence. Markdown returned by components is rendered according to page rules, and their change requests are sent as events to the browser extension; Folio itself does not write anything.
- Sortable and filterable tables: Tables written in pages, embedded data tables, or tables opened from data files support multi-column sorting and filtering by text, exact value, pattern, or multiple values, and filter conditions can be joined with and or or. Operations do not affect the file, and view state is saved in the page address.
- Data consistency checks: Numbers in the body text are bound to the data they reference, and Folio marks them immediately when the data is inconsistent.
- Folder conventions and health checks: Document types and rule queries are declared in FOLIO.md. The health view and folio check in CI list all broken links, missing includes, failed queries, and broken rules.
- History: Git versions and save records observed by Folio are merged, compared by block, and summaries for any day or week are provided.
- Agent and editor integration: An MCP server, JSON API, and language server are provided so that agents and editors get the same model as users; agent skills can teach agents to write documents that use this model.
Usage
Install and run: Node.js 22.18 or later is required. After installing globally with npm install --global @jakubro/folio, start it with the folio command. Open the address printed in the terminal http://localhost:8640/,若端口被占用则使用下一个空闲端口。
In Claude Code, there are two commands to install Folio's MCP server and its agent skills as a plugin. The plugin tool reads the Folio running in the folder where Claude Code is located; Folio settings in /config can specify another instance via an address (such as localhost:8641) or a socket.
When to use
Suitable for individuals or teams that need to manage Markdown documents and data files at the same time, especially scenarios where you want to view document changes in real time, keep data and documents consistent, and use agents or CI for document quality checks.
Limitations
Folio requires Node.js 22.18 or later. Folders remain plain Markdown, each page can still be read on GitHub, and Folio only writes content as required by FOLIO.md. Component change requests must be handled through the browser extension; Folio itself does not write. Full documentation is published at jakubro.github.io/folio, including guides, reference, and architecture notes. The project uses the GNU GPL v3 license.