Read, edit and carry your Markdown documents without writing code.
Features · Getting started · Development · Testing · Packaging · Contributing
Folio is a local-first desktop Markdown reader and visual editor built with Electron, React and TypeScript. It works directly with files on your computer and needs no account or application server.
Note
Project status: the desktop app works and local packages are produced for all three platforms. Full production acceptance is still open. Verified features and open items are tracked in the delivery checklist (Turkish).
- Features
- Screenshots
- Getting started
- Development
- Testing
- Packaging
- MCP server
- Data safety and privacy
- Portable data folder
- Known limits
- Project structure
- Documentation
- Dependencies and license
- Four views: read, edit visually, edit the real Markdown source, or split view.
- Text formatting: headings, bold, italic, strikethrough, lists, task lists, quotes and code blocks.
- Tables: add, delete, move and align rows and columns, paste TSV, and import or export CSV/TSV with a preview.
- Images and links: images from files or the clipboard, a relative assets folder and local links.
- Math: visual input with MathLive, sized matrices and determinants, a symbol and template palette, KaTeX rendering, LaTeX/MathML copy and offline SVG/PNG export with scale and transparency options.
- Diagrams: canvas or form based editing for 16 Mermaid diagram types with live preview, source view and SVG export.
- Rich blocks: footnotes, callouts, collapsible sections with a visual body editor and a YAML properties panel.
- Tabs and sessions: pinning, reordering, reopening closed tabs and restoring the last saved session.
- Workspace: folder tree, new file and folder, rename, move to trash and folder-wide search and replace.
- Safe saving: conflict detection against the real file, atomic save, three-way merge, recovery drafts and version history.
- Encodings: UTF-8 with or without BOM and UTF-16, an encoding picker for invalid UTF-8, and existing line endings are preserved.
- Export: PDF, standalone HTML with embedded fonts and ZIP with images. ZIP import checks paths, sizes, name collisions and CRC.
- Interface: Turkish and English UI, light, dark and system themes, zoom, focus mode and validated settings import with a preview.
This list covers the main features and does not claim every advanced option of each feature. See the delivery checklist for details, especially for advanced diagram options.
| Light | Dark |
|---|---|
![]() |
![]() |
There is no signed public release yet. When a GitHub Actions run succeeds, platform packages can be downloaded from the Artifacts section of that run.
| Platform | Output in release/ |
|---|---|
| macOS (Apple Silicon) | mac-arm64/Folio.app, Folio-<version>-mac-arm64.dmg and a ZIP of the app |
| Windows x64 | Setup and Portable .exe |
| Linux x64 | AppImage and DEB |
Warning
Local packages are not signed with a publisher certificate and the macOS app is not notarized. Signed public distribution needs the publisher's own certificates. Do not turn off system security settings globally to open the app.
Node.js 24 or newer and npm are required. Clone the repository and install the locked versions:
git clone https://github.com/onurcankaraman/folio-markdown.git
cd folio-markdown
npm ci
npm run desktopInterface preview only:
npm run devThe browser preview does not have the desktop app's file access. Saving works as a file download, so use the Electron app for local folders, version history and file watching. The status bar shows this difference in the preview.
Run the production build locally:
npm run build
npm startnpm test
npx playwright install chromium
npm run test:e2eThe end-to-end command builds the production bundle first. Tests use temporary files and a separate Electron profile. The packaged macOS app can be checked as well:
node scripts/smoke-packaged.mjsDetails are in the test report and math coverage is in the math inventory (both Turkish).
node scripts/icons.mjs
npm run package:mac
npm run package:win
npm run package:linux
node scripts/release-metadata.mjsFor another architecture use a target such as npx electron-builder --mac --x64 --publish never. Packages should be built on their own operating system. The GitHub Actions workflow has jobs for each platform and architecture and runs on main pushes, version tags and manual runs.
See the release guide (Turkish) for signing, notarization and update address setup.
Folio includes a local MCP server so AI assistants can work with the Markdown files in one folder using the same safe save rules as the app. It runs from a source checkout and is not part of the app packages.
npm ci
npm run build:main
node dist-electron/mcp.js /path/to/notesExample client configuration:
{
"mcpServers": {
"folio": {
"command": "node",
"args": ["/path/to/folio-markdown/dist-electron/mcp.js", "/path/to/notes"]
}
}
}| Tool | What it does |
|---|---|
list_documents |
Lists Markdown files in the folder with their sizes |
read_document |
Returns the source, encoding and hash of one file |
search_documents |
Plain text search with line numbers |
write_document |
Creates a file, or replaces an existing one when baseHash matches the file on disk |
- Only
.mdand.markdownfiles inside the folder are available. Paths and symbolic links that point outside are rejected. - Hidden folders,
node_modules,distandreleaseare skipped, and files over 5 MiB are not read. - Writes are atomic, keep the file's encoding and CRLF line endings, and refuse to overwrite a file that changed after it was read.
- The original source of the file is kept. Unchanged top-level blocks are never rewritten and changed blocks are generated in a controlled way. The whole document is never saved through a Markdown to HTML to Markdown round trip. Unrecognized content opens with its source preserved.
- Saving writes to a temporary file in the same folder, syncs it, checks the latest disk hash and then replaces the file atomically. If saving fails the document stays open. On file systems without OS-level conditional replace, a very small race window remains between the last check and the rename. Network file systems do not get local disk guarantees.
- Recovery drafts and real autosave are separate. Real autosave is off by default. Drafts are stored after 2 seconds of idle time, or every 10 seconds while typing. Drafts are plain text and are not encrypted by the app.
- Node access is disabled in the renderer, with sandbox and context isolation on. On desktop, diagrams are rendered in a separate unprivileged window that is closed on timeout. Documents never run code. Remote images are not loaded by default. Update checks never start a network request without a user action.
- The Windows portable package uses the
data/folder next to itself. - On macOS put
portable.jsonnext to the.app, and on Linux next to the executable, to turn on portable data mode. The file content can be{}. - An
.appextracted from a ZIP does not make settings portable by itself, the marker file is required. - The
FOLIO_DATA_DIRenvironment variable picks a custom data folder when there is no portable marker. Package tests use it to stay out of the user profile. - If the data location is not writable, Folio offers to pick a folder or use a temporary session instead of silently switching to another profile.
Operating system temporary files and logs mean Folio does not claim to leave no trace at all.
| Area | Limit |
|---|---|
| Local Markdown file | 60 MiB to open. Performance targets for large documents are not fully verified yet. |
| Image | 25 MiB per file |
| Visual diagram model | 500 nodes, 1,000 edges or 2,000 data rows, and 256 KiB of source |
| Formula | 32 KiB. Untrusted HTML and link commands are disabled. |
| ZIP import | 100 MiB compressed, 500 MiB uncompressed and 10,000 files. Multi-part, ZIP64 and encrypted archives are rejected. |
| ZIP export | 40 MiB total source and assets. Folio never silently produces an incomplete package. |
| Folder search | 2,000 files and 50 MiB total, 5 MiB per file |
electron/ File access, saving, security, packaging, updates and platform bridge
src/core/ Markdown source preservation, diagram models, search and history
src/components/ Visual editors and document tools
src/App.tsx App layout and document session coordination
tests/ Core, file, package and real user flow tests
build/ App and platform icons
scripts/ Icon, package check and release metadata generation
docs/ Delivery status, release guide and screenshots
| Document | Language |
|---|---|
| Contributing guide | English, Turkish |
| Delivery checklist | Turkish |
| Test report | Turkish |
| Math support | Turkish |
| Release guide | Turkish |
Third-party notices are generated with node scripts/release-metadata.mjs and license texts are bundled with app packages. Generated files are not committed. An open source license for the project's own source code has not been chosen yet.


