8000 GitHub - iamzifei/inkstone: Inkstone 墨砚 — an Obsidian-class notes app for macOS 26 and iOS 26. Native SwiftUI, plain Markdown files, wikilinks, graph, JSON Canvas, first-class CJK typography. · GitHub
[go: up one dir, main page]

Skip to content
iamzifeiPublic

About

Inkstone 墨砚 — an Obsidian-class notes app for macOS 26 and iOS 26. Native SwiftUI, plain Markdown files, wikilinks, graph, JSON Canvas, first-class CJK typography.

Resources

Stars

11 stars

Watchers

0 watching

Forks

Repository files navigation

Inkstone 墨砚

inkslab.app · Download · Changelog · Sync guide · 中文

An Obsidian-class notes app for macOS 26 and iOS 26. Plain Markdown files on disk, wikilinks, graph, canvas, daily notes — native SwiftUI, no Electron.

Install

brew install --cask iamzifei/tap/inkstone

Or download the signed, notarised DMG from the latest release. macOS 26 or later; the Mac app is universal (Apple silicon and Intel). Free.

Picking this up mid-stream? Read HANDOFF.md first, then the most recent file in docs/plans/ — one per piece of work, each written as "what was reported / what it actually was / what is left".

Status

Shipping. 0.1.1 is signed, notarised and out via Sparkle; scripts/test-all.sh runs the core suite, the website checks, both platform builds and a smoke run against a real vault on disk, and is green.

Area State
Multi-vault, security-scoped bookmarks ✅ implemented
File tree, watcher, external-change reload ✅ implemented
GFM + Obsidian syntax scanner ✅ implemented, tested
Frontmatter / properties ✅ implemented, tested
Wikilinks, embeds, aliases, block refs ✅ implemented, tested
Link index, backlinks, unresolved links ✅ implemented, tested
Rename with link rewriting ✅ implemented, tested
Tags (inline + frontmatter, nested) ✅ implemented, tested
Live-preview editor (TextKit) ✅ implemented
Frontmatter as a properties table ✅ implemented, tested
Plain-text file paths auto-linked ✅ implemented, tested
Reveal the open note in the file tree ✅ implemented
Tab indentation, line numbers, link format ✅ implemented, tested
Quick switcher (fuzzy) + full-text search ✅ implemented, tested
Graph view — local + whole vault, filters, groups, forces ✅ implemented, tested — see below
Canvas (JSON Canvas 1.0) ✅ implemented, tested
Calendar + daily notes ✅ implemented
Math, Mermaid, transclusion, image/PDF embeds ✅ implemented
Bookmarks, version history, tabs, split view ✅ implemented
GitHub sync, background sync on iOS ✅ implemented, tested
Themes, typography, CJK settings ✅ implemented
i18n (en / 简体 / 繁體) ✅ 184 strings
iCloud vault storage ⚠️ code done, entitlement deferred
Reading-mode renderer (math, Mermaid, embeds) ✅ implemented, tested
Plugin API ❌ not started

Graph view

One node per note, one edge per link between notes — the vault's shape, not any one note's.

Opened from a note (⇧⌘G) it centres on that note, showing what links to it and what it links to, with a Depth of 1–5 for how far out to follow. The note itself is drawn in the accent colour. ⌥⌘G, or the switch in the panel, gives the whole vault instead.

The settings panel mirrors Obsidian's, section for section, so a number you noted there means the same thing here:

Section Controls
Scope This note / Whole vault, Depth
Filters Se 9383 arch files…, Tags, Attachments, Existing files only, Orphans
Groups a search query and a colour per group
Display Arrows, Text fade threshold, Node size, Link thickness, Animate
Forces Centre force, Repel force, Link force, Link distance

Drag a node, scroll to zoom, hover to name one dot in a field of them.

It is built to survive a large vault. Measured on an 8,844-note vault, release build, one layout frame:

before after
force layout, 8,844 nodes 3,993 ms 5.2 ms
drawing, share of the main thread 73% 4%

The layout is Barnes–Hut over a quadtree rather than all-pairs, it runs off the main actor rather than inside the drawing closure, node labels are decluttered instead of all being shaped every frame, and tiny nodes are drawn as rectangles because a two-pixel circle is four bezier curves nobody can see. The workings are in docs/plans/2026-08-25-graph-view.md.

Architecture

Inkstone.xcodeproj          generated by XcodeGen from project.yml
├── App/                    SwiftUI app, one target for macOS + iOS
│   ├── InkstoneApp.swift   scene, menu commands, resolved Style environment
│   ├── Model/              Workspace (central state), NoteDocument (autosave)
│   ├── Support/            Theme → SwiftUI/AppKit/UIKit bridging
│   └── Views/              Sidebar, Editor, Graph, Canvas, Calendar, Settings
└── Packages/InkstoneCore/  platform-agnostic engine, no SwiftUI
    ├── Vault/              Vault, VaultRegistry, VaultScanner, VaultWatcher, NoteStore
    ├── Markdown/           Frontmatter, SyntaxScanner, NoteParser
    ├── Index/              IndexSnapshot, IndexBuilder, LinkRewriter
    ├── Search/             fuzzy quick-switch + full-text with operators
    ├── Graph/              GraphData + filters, Barnes–Hut force simulation
    ├── Canvas/             JSON Canvas 1.0 model
    └── Settings/           Theme, Typography, AppSettings

Two decisions worth knowing:

The files on disk are the source of truth. There is no database. A vault Obsidian created opens in Inkstone and vice versa; app-specific state lives in a hidden .inkstone/ folder you can gitignore. This is also why rename rewrites [[links]] across the vault — with no database, a broken link is permanent.

The core has no UI framework dependency. InkstoneCore imports Foundation and Yams only, so parsing and indexing are unit-testable without a simulator, and the same engine could back a CLI or a share extension later.

Website

inkslab.app — source in site/, built by python3 site/build.py into site/_site and published to GitHub Pages by .github/workflows/site.yml. Eight languages; the page structure lives in the generator and only the copy is translated, so a missing key fails the build instead of dropping a section.

Two of the pages are keyword landing pages rather than marketing: an Obsidian comparison and what syncing a vault costs. They live in site/static/ because they answer English queries and forcing them through the eight-language rule would produce seven pages of thin translation. The research behind them, with the numbers it was based on, is in docs/growth/. site/tests/test_site.py asserts they stay in the sitemap, that their structured data parses, and — because the repository has no LICENSE — that they never claim the app is open source.

The hero recording and the screenshots are reproducible: scripts/record-demo.sh drives a Debug build against assets/demo-vault, and scripts/encode-demo.sh cuts it. Read the comment at the top of each — the constraints they work around are not guessable.

Building

brew install xcodegen        # the .xcodeproj is generated, not committed
xcodegen generate
open Inkstone.xcodeproj

# core engine only, no Xcode needed — fastest feedback loop
cd Packages/InkstoneCore && swift test

Running it

xcodebuild -project Inkstone.xcodeproj -scheme Inkstone \
  -destination 'platform=macOS' -derivedDataPath .build-xcode build
open .build-xcode/Build/Products/Debug/Inkstone.app

Click Open Folder as Vault and point it at Samples/Inkstone Demo — interlinked notes, CJK tags, a callout, a table, an unresolved link, and a canvas. The sandbox has no standing access outside its container, so that manual pick is the grant; the security-scoped bookmark restores it on later launches.

Open items

iCloud entitlement is deferred. The app's iCloud container (iCloud. + the bundle id) doesn't exist in the developer portal, and enabling the entitlement before the container exists makes every local build fail to sign. The keys are commented in App/Resources/Inkstone.entitlements with instructions; createICloudVault() already shows an alert instead of failing silently. Create the container, then uncomment.

No UI tests. scripts/test-all.sh covers the engine, the sync end to end, the website and a headless smoke run, and says so; what needs a mouse — context menus, the Settings toggles, the file tree — is not covered and is not pretended otherwise.

Roadmap

  • Reading-mode renderer on the AST that is already parsed.
  • The plugin surface: templates, dataview-style queries, kanban, excalidraw-style drawing on canvas.

Also from the same hand

More small native Mac apps, each doing one thing. Someone who liked one is the likeliest person to want another.

App
Candela Every display control macOS hides, in one menu bar panel — real brightness over DDC, HiDPI scaling, and brightness keys that work on every monitor. source
AudioSwitch Switch audio input and output from the menu bar, with volume, mute and a live mic level meter. source
ClipStack Everything you copied is still there — a searchable clipboard history on ⇧⌘V, kept on this Mac. source
Veil Keeps the window you're working in sharp and softly blurs everything behind it. Free, MIT. source
Tapper Turns your pointer into a cartoon glove on a long stick, for demos and screen recordings. Free, MIT. source

About

Inkstone 墨砚 — an Obsidian-class notes app for macOS 26 and iOS 26. Native SwiftUI, plain Markdown files, wikilinks, graph, JSON Canvas, first-class CJK typography.

Resources

Stars

11 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0