Skip to content

Repository files navigation

VaultNote

A local-first Markdown note-taking app. Your notes stay on your machine — VaultNote is just a UI for reading and editing them.

LicenseNode

Features

  • Rich Markdown editor (TipTap) with live preview
  • File tree sidebar with drag-and-drop, rename, create, delete
  • Full-text search across all notes
  • Bookmarks
  • Mermaid diagrams, code highlighting, tables, task lists
  • Dark / light theme
  • Auto-save (500ms debounce)
  • Tabs with persistent state

Tech Stack

LayerStack
FrontendReact 19, Vite, TipTap, MobX, Tailwind CSS v4, shadcn/ui
BackendExpress.js, TypeScript
StorageLocal filesystem (DOCS_ROOT) + SQLite via Prisma (bookmarks)

Getting Started

Requirements: Node.js 18+, npm

git clone https://github.com/your-username/vaultnote.git
cd vaultnote
npm install
npm run dev

Open http://localhost:5173.

By default, notes are stored in the ./docs folder at the repo root.

Configuration

Create a .env file in the repo root:

PORT=3001DOCS_ROOT=./docsCLIENT_URL=http://localhost:5173

The client reads VITE_API_URL (defaults to http://localhost:3001).

VariableDefaultDescription
PORT3001Server port
DOCS_ROOT./docsPath to your notes directory
CLIENT_URLhttp://localhost:5173Client origin for CORS

Point DOCS_ROOT at any existing folder of .md files to use VaultNote as a viewer/editor for it.

Project Structure

vaultnote/
├── client/ # React + Vite SPA
│ └── src/
│ ├── api/ # Fetch wrappers
│ ├── components/
│ ├── store/ # MobX stores
│ └── views/
└── server/ # Express REST API
└── src/
├── controllers/
├── middleware/
└── routes/

Commands

npm run dev # Start server + client
npm run dev:server # Server only
npm run dev:client # Client only
npm run build # Build both
npm run lint # ESLint
npm run format # Prettier
# Client onlycd client && npm run typecheck

License

MIT

About

Local-first Markdown note-taking app. Rich TipTap editor, file tree with drag-and-drop, full-text search, bookmarks, Mermaid diagrams. Your notes stay on your machine — point it at any folder of .md files and start writing.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages