Skip to content
tanzir71Public

About

A local-first Markdown editor and knowledge workspace — the calm of Ulysses/Bear with the ownership of Obsidian, on web and desktop.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

236 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slate

The browser app and landing page ship together on each release. From v0.3, release automation also builds unsigned desktop previews for Windows x64, Linux x64 and macOS Intel/Apple Silicon, with checksums and source-commit manifests.

Website: tanzir71.github.io/slate · Browser app: Open Slate · Sample Space

A local-first Markdown editor and knowledge workspace — the calm of Ulysses/Bear with the ownership of Obsidian, on web and desktop.

What is this?

Slate organizes writing into Spaces → sheets, edits pure Markdown, and keeps everything on your machine. It ships as a web PWA and a Tauri desktop app built from the same codebase, with performance budgets enforced in CI (opening a 50k-word document and searching 10k sheets are tested paths, not hopes).

Architecture

A pnpm monorepo where every capability is a package with a clean interface, and the apps are thin shells that assemble them:

                    apps/web (Vite PWA)      apps/desktop (Tauri 2)
                        │                        │
                        └──────────┬─────────────┘
                                   │ both assemble the same packages
   ┌───────────────────────────────┼──────────────────────────────────┐
   │                               ▼                                   │
   │  packages/ui        React app shell (sidebar, sheet list,         │
   │                     inspector, palette, focus mode)               │
   │  packages/editor    CodeMirror 6 Markdown editing setup           │
   │  packages/core      PURE domain model + Markdown logic            │
   │  packages/storage   file/index adapters + local implementation    │
   │                     (SQLite FTS full-text search)                 │
   │  packages/sync      sync interfaces + deterministic merge helpers │
   │  packages/export    export adapters, HTML artifact rendering      │
   │  packages/publish   publish adapters, static publish contract     │
   │  packages/tokens    design tokens                                 │
   │                                                                   │
   │  crates/slate-core  Rust support crate (desktop-side heavy work)  │
   └───────────────────────────────────────────────────────────────────┘

Why this shape: core is pure (no I/O), so all document logic is fast to test; storage/sync/export/publish are adapter interfaces, so cloud sync or new export targets can be added without touching the editor; and the desktop app gets native speed via the Rust crate while sharing 95% of code with the web PWA. apps/mobile is a placeholder for the Tauri mobile track.

Getting started (from zero)

Prerequisites

Tool Why Get it
Node.js 24+ Everything https://nodejs.org
pnpm 10+ Monorepo manager npm install -g pnpm
Rust stable Desktop app only https://rustup.rs
Tauri 2 OS prerequisites Desktop app only https://v2.tauri.app/start/prerequisites/

1. Install

pnpm install
pnpm exec playwright install chromium firefox webkit

The landing page and browser app publish together on every release. pnpm build:site builds the app, captures its real Sample Space for the product image, and assembles the static site. pnpm perf:site checks the landing's Lighthouse, LCP and layout-shift budgets. See RELEASING.md for the tag/deploy workflow and the browser guide for local storage and backup behavior.

Windows note: on this host, dependency installation needed Node's system certificate store: $env:NODE_OPTIONS='--use-system-ca'; pnpm install. Cargo revocation checks are disabled in .cargo/config.toml because local Schannel revocation lookup failed while fetching crates.

2. Run

pnpm dev:web       # browser version at the printed URL
pnpm dev:desktop   # native desktop window (first Rust build is slow)

3. Verify

pnpm verify

The verify gate runs TypeScript checks, ESLint, Vitest, Rust tests, builds both shells, checks performance budgets, and runs Playwright smoke tests.

pnpm perf
pnpm perf:typing

The performance hook checks the 50k-word open path, typing HUD stats on a large sheet, and SQLite FTS search over 10k synthetic sheets.

pnpm perf:typing uses fresh browser processes to measure 225 real keystrokes in a 50k-word sheet, enforces p95 <16 ms, and verifies that every word is saved unchanged. Its reports are under playwright-report/typing/; functional browser checks remain in pnpm e2e.

After pnpm build, the debug desktop executable is at apps/desktop/src-tauri/target/debug/slate-desktop.exe.

pnpm e2e:desktop checks the built desktop frontend's commands, formatting, shortcut sheet, modal accessibility and focus. These browser-driven checks use an explicit test IPC adapter; they do not replace the native disk tests or OS package smoke checks.

pnpm visual checks A1/A5/A11 and the selection toolbar in Light/Dark against reviewed PNGs with a 0.2% difference limit. It uses a pinned Linux Chromium image through Docker on every host. See visual testing for baseline review and updates.

Keyboard shortcuts

Action Shortcut
Command palette Ctrl+K / Cmd+K
New sheet Browser: Alt+N / Option+N; desktop: Ctrl+N / Cmd+N
Focus sheet search Ctrl+Shift+F / Cmd+Shift+F
Italic Ctrl+I / Cmd+I
Toggle inspector Ctrl+Shift+I / Cmd+Shift+I
Keyboard shortcuts Ctrl+/ / Cmd+/
Focus mode (desktop preview) Ctrl+. / Cmd+.
Full-screen mode (desktop preview) F11
Switch Spaces (desktop preview) Ctrl+Alt+1..9 / Cmd+Alt+1..9
Toggle sidebar Ctrl+\ / Cmd+\
Toggle sheet list Ctrl+Alt+\ / Cmd+Alt+\
Close palette / exit focus or full-screen Esc

Project layout

apps/web        Vite PWA target
apps/desktop    Tauri desktop target
apps/mobile     mobile shell placeholder
packages/*      core · storage · sync · export · publish · editor · ui · tokens
crates/slate-core   Rust support crate

Troubleshooting

  • pnpm install TLS errors on Windows → $env:NODE_OPTIONS='--use-system-ca' first.
  • pnpm dev:desktop fails → confirm Rust (cargo --version) and the Tauri 2 OS prerequisites are installed; the web target needs neither.
  • Verify gate fails on perf budgets → run pnpm perf alone to see which budget regressed.

About

A local-first Markdown editor and knowledge workspace — the calm of Ulysses/Bear with the ownership of Obsidian, on web and desktop.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages