updated 2026-11-26·5 min read
Sync
Configure zero-tracking cloud synchronization across Supabase, Turso libSQL, Cloudflare D1, or custom REST servers, plus conflict resolution strategies and MCP tools.
Sync notes, graph metadata, and canvases across machines using your own database, with no tracking and no monthly subscription.
1. Why Sync?
Most note apps charge a monthly subscription just to move plain text between two computers. Because Noether keeps plain Markdown files on disk and a local SQLite index, the Sync extension only has to replicate rows to a database you own:
- Supabase Free Tier (Recommended): 500 MB permanent PostgreSQL database with instant PostgREST HTTP APIs and zero credit card requirements.
- Turso libSQL: Edge SQLite databases running over the Hrana v2 HTTP pipeline.
- Cloudflare D1: Serverless SQL databases running on Cloudflare Workers edge nodes.
- Self-Hosted REST: Generic JSON sync server or private webhook.
2. Quick Start: Supabase Free Tier (2-Minute Setup)
Supabase provides 500 MB of permanent free PostgreSQL storage, which is enough to store over 50,000 markdown notes and metadata records without ever paying a fee.
- Create a Free Supabase Project
Open supabase.com, click New Project, select your nearest geographic region, set a secure database password, and click Create new project.
- Run the 1-Click Table Schema
In the Supabase dashboard, open SQL Editor, click New query, paste the noether_sync_documents SQL schema below, and click Run.
- Connect Noether
Under Project Settings → API, copy your Project URL and anon public API key. Paste them into Noether Settings → Sync, click Test Connection, then click Sync Now.
Supabase SQL Schema
-- 1. Create the Noether Sync Documents table
CREATE TABLE IF NOT EXISTS noether_sync_documents (
id TEXT PRIMARY KEY,
parent_id TEXT,
title TEXT NOT NULL DEFAULT 'Untitled',
content_json TEXT NOT NULL DEFAULT '',
is_daily_note INTEGER NOT NULL DEFAULT 0,
is_folder INTEGER NOT NULL DEFAULT 0,
is_bookmarked INTEGER NOT NULL DEFAULT 0,
doc_type TEXT NOT NULL DEFAULT 'base',
properties TEXT NOT NULL DEFAULT '{}',
created_at BIGINT NOT NULL,
updated_at BIGINT NOT NULL,
deleted_at BIGINT DEFAULT NULL,
device_id TEXT
);
-- 2. Create performance indexes for rapid delta queries
CREATE INDEX IF NOT EXISTS idx_noether_sync_updated ON noether_sync_documents(updated_at);
CREATE INDEX IF NOT EXISTS idx_noether_sync_deleted ON noether_sync_documents(deleted_at);
-- 3. Enable Row Level Security (RLS) and permit CRUD access for your API key
ALTER TABLE noether_sync_documents ENABLE ROW LEVEL SECURITY;
DROP POLICY IF EXISTS "Allow Noether Sync CRUD" ON noether_sync_documents;
CREATE POLICY "Allow Noether Sync CRUD" ON noether_sync_documents
FOR ALL
USING (true)
WITH CHECK (true);
3. Alternative Database Providers
| Provider | Transport Protocol | Ideal Use Case |
|---|---|---|
| Supabase | PostgREST HTTP REST (/rest/v1/noether_sync_documents) | Permanent free tier with 500 MB storage |
| Turso libSQL | Hrana v2 HTTP Pipeline (/v2/pipeline) | Global distributed edge SQLite replicas |
| Cloudflare D1 | Cloudflare v4 REST API (/d1/database/.../query) | Serverless edge SQL integrated with Cloudflare accounts |
| Custom REST | Standard JSON REST (/pull, /push, /health) | Private VPS, self-hosted Docker container, or internal proxy |
Setting Up Turso
- Create a database using the Turso CLI:
turso db create noether-sync - Open the SQL shell and run the schema:
turso db shell noether-syncCREATE TABLE IF NOT EXISTS noether_sync_documents ( id TEXT PRIMARY KEY, parent_id TEXT, title TEXT NOT NULL DEFAULT 'Untitled', content_json TEXT NOT NULL DEFAULT '', is_daily_note INTEGER NOT NULL DEFAULT 0, is_folder INTEGER NOT NULL DEFAULT 0, is_bookmarked INTEGER NOT NULL DEFAULT 0, doc_type TEXT NOT NULL DEFAULT 'base', properties TEXT NOT NULL DEFAULT '{}', created_at INTEGER NOT NULL, updated_at INTEGER NOT NULL, deleted_at INTEGER DEFAULT NULL, device_id TEXT ); CREATE INDEX IF NOT EXISTS idx_noether_sync_updated ON noether_sync_documents(updated_at); CREATE INDEX IF NOT EXISTS idx_noether_sync_deleted ON noether_sync_documents(deleted_at); - Generate a database token:
turso db tokens create noether-sync - Enter the database URL (
libsql://...) and auth token in Noether Settings.
4. Conflict Resolution & Sync Mechanics
- Debounced Auto-Sync: When you edit notes, changes are debounced by 2.5 seconds before uploading so network calls don’t fire continuously while you write.
- Tombstone Deletion Propagation: When you delete a note, a tombstone record is created with a
deleted_attimestamp. This propagates to all other devices, ensuring deleted notes never resurrect on future sync cycles. Old tombstones are pruned automatically after 30 days. - Conflict Strategies:
Newer Timestamp (Last Write Wins): Automatically keeps whichever version has the latest timestamp.Keep Both (Create Conflict Copy): Creates a duplicate note titled[Conflict Copy] Note Titleso no edits are ever lost.Local Always Wins: Retains local changes and ignores conflicting remote changes.Remote Always Wins: Overwrites local modifications with incoming remote changes.
5. Keyboard Shortcuts & MCP Tools
Command Palette Commands
Synchronize now: Triggers an immediate bidirectional sync cycle.Configure cloud provider: Opens the provider configuration modal.
Model Context Protocol (MCP) AI Tools
The extension exposes the following tools to in-app AI copilots and external desktop agents:
sync_sync_now: Triggers an immediate sync cycle and returns telemetry.sync_get_sync_status: Inspects telemetry, database status, and pending change counts.sync_test_connection: Verifies database reachability and table readiness.
6. Related Reading & References
- UI Extension Points: Learn how the status bar and commands are registered.
- Events & Relational Storage: How Noether coordinates local SQLite storage with EventBus events.
- Model Context Protocol (MCP) Tools: How AI copilots interact with extension tools.