GitNote
A simple tool for saving texts/prompts
Install / Use
/learn @Muyiiiii/GitNoteREADME
GitNote Quick
A lightweight Electron desktop app for managing text snippets with zero-cost sync via a private GitHub repository.
Release
Current version: v1.0.0
Features
Snippet Management
- Global toggle shortcut:
Ctrl+Shift+V(Windows/Linux) /Cmd+Shift+V(macOS) - Frameless floating window, always on top, hidden from taskbar
- Auto-hide on blur or when the toggle shortcut is pressed again
- Press
Enteror click a snippet to copy and hide Ctrl+N— create new snippetCtrl+E— edit selected snippet- Real-time search/filter across all snippets
- System tray icon with menu for quick access
GitHub Sync
- On startup:
git pull --rebase(silent) - After any data change: debounce 5 s →
git add .→git commit -m "update"→git push - Push failure dialog: force overwrite (
--force-with-lease) or manual resolve
Data Protection
- Encrypted mode (default): snippets stored with AES-256-GCM encryption; vault key derived via PBKDF2-SHA256 (210,000 rounds)
- Plaintext mode: optional, useful for human-readable sync history in the repo
- PAT stored via Electron
safeStorage(OS credential store) - Vault unlock prompt on each session
Storage & Settings
- Customizable storage directory (defaults to Electron
userDatapath) - Data file:
storage/data.jsoninside the local repo clone - Window position and size remembered across sessions
- Built-in log viewer (
Settings → View Logs)
Requirements
Setup (Development)
- Install dependencies:
npm install
- Start the app:
npm start
- On first launch, complete the setup form:
- Repo URL — e.g.
https://github.com/<your-name>/<your-private-repo>.git - Branch — e.g.
main - PAT — GitHub Personal Access Token with
reporead/write scope
- Repo URL — e.g.
Build
npm run build:win # Windows — produces NSIS installer in dist/
npm run build:mac # macOS — produces DMG in dist/
npm run build # current platform
GitHub Private Repo Preparation
- Create a private GitHub repository.
storage/data.jsonis created automatically on first sync; you may also add it manually.- Generate a fine-grained token or classic PAT with repository read/write access.
- Keep the token secret — the app encrypts it via Electron
safeStorage.
Project Structure
src/
├── main.js # global shortcut, window, tray, IPC handlers, Git sync, vault/encryption
├── renderer.js # UI rendering, filtering, list interactions
├── preload.js # secure IPC bridge (contextBridge)
├── index.html # app shell: setup, main list, editor, settings, logs, vault panels
└── styles.css # Raycast/Spotlight-inspired theme
License
MIT
Related Skills
node-connect
338.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
338.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.4kCommit, push, and open a PR
