Skip to content

About

H.A.N. is a local-first, privacy-focused note-taking app that works both as a native macOS app and directly in your browser. Your notes live as plain Markdown files on your disk — no cloud, no lock-in, no subscriptions.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

5 stars

Watchers

0 watching

Forks

Latest commit

 

History

82 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

H.A.N.

H.A.N.

Hierarchical Adaptive Notebook

Your thoughts, structured. Your decisions, tracked. Your knowledge, connected.

Live Demo · Download macOS App · Report Bug


alt text

✨ What is H.A.N.?

H.A.N. is a local-first, privacy-focused note-taking app that works both as a native macOS app and directly in your browser. Your notes live as plain Markdown files on your disk — no cloud, no lock-in, no subscriptions.

Built with the philosophy that your notes should be yours, H.A.N. combines the simplicity of Markdown with powerful features like task tracking, decision logging, and bidirectional linking.

🖥️ Platforms

Platform Storage Engine Status
macOS / Windows / Linux Native Desktop App (Tauri v2 + Rust FS) ✅ Available
Chrome / Edge / Arc / Brave Web / PWA via File System Access API or IndexedDB ✅ Available
Safari / Firefox / iOS / Android Web / PWA via Browser IndexedDB + P2P WebRTC Sync ✅ Available

🎯 Features

📝 Editor

  • Live Preview — See formatted Markdown as you type, switch to raw mode anytime
  • Wiki-links — Connect notes with [[note-name]] syntax, auto-complete included
  • Slash Commands — Type / to insert headings, lists, code blocks, images, diagrams, and more
  • Tables — Notion-style table editing with add row/column controls
  • Code Blocks — Syntax highlighting for 100+ languages
  • Image Support — Drag & drop or paste images directly into notes

📐 Visual Diagramming & Sketching (Dual Engines)

  • Architecture Diagrams (YADA) — Create and edit interactive system architecture diagrams, flowcharts, and C4 models directly inside your notes using the embedded YADA editor modal (/diagram).
  • Freehand Sketching & Whiteboard (Excalidraw) — Draw hand-crafted sketches, wireframes, and mind-maps natively with the embedded Excalidraw canvas (/sketch).
  • Self-Contained Portable PNGs — Both engines embed complete editable vector definitions directly into the PNG metadata chunks (tEXt). Zero .json clutter in your vault; single portable image files that stay fully editable anywhere.
  • Seamless Live Preview Re-editing — Hover over any diagram or sketch in the live preview and click the floating edit button to instantly reopen its native editor modal and continue where you left off.
  • Dynamic Code-Splitting — Excalidraw and diagram engines are lazily loaded on demand to keep initial app startup instant.

📑 PDF Research, Split-View Reader & Export

  • Smart PDF Import — Import research papers, articles, or books into any vault folder with automatic .attachments/ archiving and instant note generation.
  • AI-Powered Structured Markdown — Transform dense PDFs into organized study notes with executive summaries, key findings, and YAML frontmatter tags using integrated LLMs.
  • Academic Two-Column Parser (Rust/WASM) — Intelligently reconstructs two-column academic articles, fixes hyphenated line wraps, and formats paragraphs cleanly via han-core.
  • Side-by-Side Split Reader — Read PDFs alongside your notes in a resizable, HiDPI/Retina-aware viewer with pixel-perfect text selection.
  • Instant Citation & Smart Quote Callouts — Select text in the PDF and click Nota Alıntı Ekle to insert a cleaned, de-hyphenated > [!QUOTE] callout block with a direct page link (> — [[doc.pdf#page=X]]).
  • Deep Page Linking (#page=X) — Click any PDF link in your note to instantly jump to that exact page in the reader.
  • Native PDF Export — Export notes to paginated, print-optimized PDFs with one click from the editor header.

✅ Tasks

  • Global Task View — See all tasks across your entire vault in one place
  • Rich Metadata — Priority, assignees, dates, progress, and tags per task
  • Inline Editing — Click any task in the editor to edit its metadata
  • Gantt View — Visualize task timelines (coming soon)

📋 Decisions

  • Decision Tracking — Log decisions with - [D] syntax
  • Metadata — Status, participants, approvers, dates, and tags
  • Global Decision View — Browse all decisions across notes

🔗 Knowledge Graph

  • Backlinks — See which notes link to the current note
  • Bidirectional Links — Navigate your knowledge network effortlessly
  • Tag System — Organize notes with frontmatter tags, filter by tag

🗂️ Vault Management

  • Folder Tree — Organize notes in nested folders with drag & drop
  • File Operations — Create, rename, move, and delete notes and folders
  • Local Storage — All data stored as .md files in a directory you control

🎨 Design

  • macOS-native feel — Designed to feel at home on macOS
  • Dark & Light Mode — Follows system preference or manual toggle
  • Multilingual — English & Turkish (i18n ready for more)

🏗️ Architecture

H.A.N. uses an isomorphic architecture that runs the same React codebase across Desktop, Web, and Mobile PWA:

┌──────────────────────────────────────────────────────────────┐
│                      React UI (Zustand)                      │
│            noteStore · taskStore · syncStore · etc.          │
├──────────────────────────────────────────────────────────────┤
│                  IStorageService Interface                   │
├──────────────────┬─────────────────────┬─────────────────────┤
│   TauriStorage   │   BrowserStorage    │  IndexedDBStorage   │
│  (Rust Backend)  │  (File System API)  │ (Safari/FF/Mobile)  │
├──────────────────┴─────────────────────┴─────────────────────┤
│            han-core (Rust Native & WebAssembly)              │
└──────────────────────────────────────────────────────────────┘
  • han-core/ — Shared Rust crate with pure logic (Markdown parsing, task/decision extraction, academic PDF layout reconstruction), compiled to both native Rust and WebAssembly (src/wasm/han-core)
  • TauriStorage — Desktop: calls Rust backend via Tauri IPC
  • BrowserStorage — Chromium Web: reads/writes .md files directly on disk via File System Access API
  • IndexedDBStorage — Universal Web/Mobile PWA: stores multi-workspace vaults in IndexedDB with zero-knowledge E2EE WebRTC device sync

🚀 Getting Started

Prerequisites

  • Node.js ≥ 20
  • Rust & wasm-pack (required when rebuilding han-core WASM or running the Tauri desktop app)

Development

# Clone the repo
git clone https://github.com/bishoku/han-notes-app.git
cd han-notes-app

# Install dependencies
npm install

# (Optional) Rebuild Rust WASM core if you modify han-core/
npm run build:wasm

# Run in browser (web mode)
npm run dev

# Run as desktop app (Tauri)
npm run tauri dev

Build & Test

# Run linter, typecheck, and unit tests
npm run lint
npx tsc -b
npm test
cargo test --workspace

# Build web version (for GitHub Pages / static hosting)
npm run build

# Build desktop app (.dmg / .msi / .AppImage)
npm run tauri build

📁 Project Structure

han-notes-app/
├── han-core/                 # Shared Rust crate (WASM-ready)
│   └── src/lib.rs            # Pure logic: parsing, structs, WASM bindings
├── src-tauri/                # Tauri desktop backend
│   └── src/lib.rs            # I/O commands: file read/write, vault scanning
├── src/                      # React frontend
│   ├── components/           # UI components
│   ├── editor/               # CodeMirror plugins & widgets
│   ├── services/storage/     # Platform-agnostic storage layer
│   │   ├── types.ts          # IStorageService interface
│   │   ├── TauriStorage.ts   # Desktop implementation
│   │   ├── BrowserStorage.ts # Browser implementation
│   │   └── index.ts          # Auto-detection & export
│   ├── store/                # Zustand state management
│   └── layouts/              # App layout
└── .github/workflows/        # CI/CD (Pages deploy + macOS build)

🛠️ Tech Stack

Layer Technology
Frontend React 19, TypeScript, Zustand
Editor CodeMirror 6, custom live preview plugins
Diagrams & Sketching Excalidraw (freehand whiteboard), YADA (architecture flowcharts)
Styling Tailwind CSS 4, Lucide icons, Geist font
Desktop Tauri 2, Rust
Core Logic Rust (WASM-ready via wasm-bindgen)
Browser Storage File System Access API
CI/CD GitHub Actions

📄 License

MIT © bishoku


H.A.N. — Because your notes deserve better.

About

H.A.N. is a local-first, privacy-focused note-taking app that works both as a native macOS app and directly in your browser. Your notes live as plain Markdown files on your disk — no cloud, no lock-in, no subscriptions.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages