updated 2026-11-26·4 min read
Contributing to Noether
Local development environment setup, repository layout, core isolation rules, TypeScript/Rust verification gates, and pull request workflow.
1. Local Development Environment
To build and run Noether locally from source, make sure these prerequisites are installed:
- Node.js: Version 20.x or higher (from nodejs.org).
- Rust & Cargo: Latest stable Rust toolchain via rustup.rs.
- Tauri Prerequisites: Follow the Tauri v2 OS Prerequisites Guide for your operating system (C++ build tools on Windows, Xcode command line tools on macOS, webkit2gtk development libraries on Linux).
Initial Repository Setup
Clone the repository and install dependencies:
# Clone the repository
git clone https://github.com/yvliet/noether.git
cd noether
# Install frontend dependencies
npm install
# Verify TypeScript compilation
npx tsc --noEmit
# Verify Rust backend compilation
cargo check --manifest-path src-tauri/Cargo.toml
Running the Desktop App in Development
# Launches the Tauri native desktop app with live reload
npm run app
2. Codebase Structure & Architecture Tour
The repository is split along strict boundaries between core host code, extensions, and the Rust backend:
Noether/
├── src/
│ ├── core/ ← Micro-kernel, NoetherApp container, registries, EventBus
│ ├── lib/ ← DB adapters, Markdown round-trip, platform abstraction
│ ├── store/ ← 8 Zustand stores (documents, workspace, settings, etc.)
│ ├── components/ ← UI primitives, Live Preview editor, layout shells
│ ├── hooks/ ← Shared React hooks (shortcuts, updater, tab reorder)
│ ├── sdk/ ← Public Noether SDK exported to extensions
│ ├── extensions/core/ ← Core built-in extensions (backlinks, canvas, graph, journal, tasks, etc.)
│ ├── assets/ ← App fonts and icons
│ └── types/ ← Global TypeScript interfaces
├── src-tauri/
│ ├── src/
│ │ ├── lib.rs ← Tauri builder, 64 IPC command handlers, watcher loop
│ │ ├── main.rs ← Desktop binary entry point
│ │ ├── vault.rs ← Atomic saves, path boundary checks, Win32 memory trim
│ │ ├── db.rs ← Native rusqlite WAL engine & FTS5 queries
│ │ ├── vcs.rs ← Local Git snapshot and diff commands
│ │ └── icon_tint.rs ← Dynamic accent-tinted window icon generator
│ └── Cargo.toml
└── bin/ ← Standalone stdio MCP server (noether-mcp-server.cjs)
3. Core Rules
Three rules hold across every PR:
- Strict Native Core Isolation (Zero Extension Leakage):
- Never import extension code, types, or models into native directories (
src/core,src/lib,src/store,src/components,src/types,src/sdk). - Extensions integrate through the Noether SDK, IoC registries, and
EventBus.
- Never import extension code, types, or models into native directories (
- Zero Micro-Interaction Animations:
- Don’t add artificial transitions (
transition-colors,transition-all,duration-*,fade-in,slide-in-*) to toggles, tooltips, buttons, context menus, or file tree items. - Controls render and flip state on the exact frame you click them.
- Don’t add artificial transitions (
- Cross-Platform Neutrality:
- Don’t call
window.__TAURI__or OS-specific APIs directly inside React components. Route them throughsrc/lib/platform/platformAdapter.ts.
- Don’t call
4. Verification Quality Gates
Run both TypeScript and Rust checks before committing:
# 1. Type verification (must return zero errors)
npx tsc --noEmit
# 2. Rust verification (if src-tauri/ was touched)
cargo check --manifest-path src-tauri/Cargo.toml
# 3. Production build test
npm run build
5. Submitting Pull Requests
- Branch from main
Fork the repository and create a short-lived feature branch (feat/<scope>, fix/<scope>, refactor/<scope>).
- Commit with Conventional Commits
Commit your changes locally using Conventional Commits: type(scope): subject (e.g. feat(editor): optimize katex formula memoization).
- Open a Pull Request
Push your branch to your fork and open a Pull Request against main.
- Discuss in Discord
Join the Noether Discord Server (https://dsc.gg/noether) to discuss features or get early feedback.
6. Contributing with AI Coding Agents
If you work with an AI coding assistant (Claude Code, Cursor, OpenAI Codex, Google Antigravity, Windsurf, Roo Code, Cline, or Aider), check AGENTS.md in the repo root. It documents the isolation boundaries, zero-animation UI rules, and verification commands so automated edits don’t trip over them.