{"id":51224856,"url":"https://github.com/saagpatel/ink","last_synced_at":"2026-06-28T10:03:28.654Z","repository":{"id":366076335,"uuid":"1191409565","full_name":"saagpatel/ink","owner":"saagpatel","description":"Local-first Markdown workspace where AI suggestions appear as handwritten-style margin annotations","archived":false,"fork":false,"pushed_at":"2026-06-20T05:34:35.000Z","size":439,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-20T07:15:59.925Z","etag":null,"topics":["ai","codemirror","desktop-app","local-ai","markdown","ollama","tauri","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saagpatel.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-25T08:04:39.000Z","updated_at":"2026-06-20T05:34:39.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/saagpatel/ink","commit_stats":null,"previous_names":["saagpatel/ink"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/saagpatel/ink","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saagpatel%2Fink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saagpatel%2Fink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saagpatel%2Fink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saagpatel%2Fink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saagpatel","download_url":"https://codeload.github.com/saagpatel/ink/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saagpatel%2Fink/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34884278,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-28T02:00:05.809Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","codemirror","desktop-app","local-ai","markdown","ollama","tauri","typescript"],"created_at":"2026-06-28T10:03:27.999Z","updated_at":"2026-06-28T10:03:28.646Z","avatar_url":"https://github.com/saagpatel.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ink\n\n[![TypeScript](https://img.shields.io/badge/typescript-%233178c6?style=flat-square\u0026logo=typescript)](#) [![License](https://img.shields.io/badge/license-MIT-blue?style=flat-square)](#)\n\n\u003e What if your AI editor left margin notes instead of interrupting your flow?\n\nink is a local-first Markdown workspace where AI suggestions appear as SVG overlay cards positioned alongside their anchor text — the visual metaphor of a thoughtful editor leaving notes in your margins, not an autocomplete system hijacking your cursor. Runs entirely on your machine via Tauri 2 and a local Ollama instance.\n\n## Features\n\n- **Margin annotations** — SVG overlay cards positioned via CodeMirror 6's `coordsAtPos()` API, scroll-aware and viewport-clipped\n- **Five built-in annotation types** — clarify, expand, simplify, question, alternative; plus custom annotation type creation with configurable prompts\n- **Local AI via Ollama** — defaults to `llama3.2:3b`, configurable to `qwen2.5:7b` or any Ollama model\n- **Workspace folder view** — sidebar file tree for navigating a folder of Markdown files\n- **Accept / dismiss** — accepting an annotation inserts its text at the anchor point\n- **Annotation history** — per-file log of every annotation by status (pending, accepted, dismissed)\n- **Stats dashboard** — acceptance rate, type breakdown, and latency metrics across the workspace\n- **Workspace search** — search annotations across the workspace by content, type, and status\n- **Debounced generation** — Ollama called 2,500ms after your last keypress, never on every keystroke\n- **Settings panel** — configure endpoint, model, annotation density, and debounce delay\n\n## Quick Start\n\n### Prerequisites\n- Rust stable toolchain\n- Node.js 20+ and npm\n- [Ollama](https://ollama.com) running locally\n\n### Installation\n```bash\ngit clone https://github.com/saagpatel/ink\ncd ink\nnpm install\n\n# Pull a model if you haven't already\nollama pull llama3.2:3b\n```\n\n### Usage\n```bash\n# Development\nnpm run tauri dev\n\n# Build release app\nnpm run tauri build\n```\n\n## Tech Stack\n\n| Layer | Technology |\n|-------|------------|\n| Desktop shell | Tauri 2 (Rust) |\n| Frontend | React 19 + TypeScript 5.8 (strict) |\n| Editor | CodeMirror 6 (@codemirror/lang-markdown) |\n| Annotations | SVG overlay, positioned via EditorView.coordsAtPos() |\n| Local AI | Ollama REST API (llama3.2:3b default) |\n| Persistence | SQLite via @tauri-apps/plugin-sql |\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaagpatel%2Fink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaagpatel%2Fink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaagpatel%2Fink/lists"}