[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-81655":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":14,"stars30d":14,"stars90d":14,"forks30d":14,"starsTrendScore":14,"compositeScore":15,"rankGlobal":9,"rankLanguage":9,"license":16,"archived":17,"fork":17,"defaultBranch":18,"hasWiki":19,"hasPages":17,"topics":20,"createdAt":9,"pushedAt":9,"updatedAt":21,"readmeContent":22,"aiSummary":23,"trendingCount":14,"starSnapshotCount":14,"syncStatus":12,"lastSyncTime":24,"discoverSource":25},81655,"draftside","seeARMS\u002Fdraftside","seeARMS","An offline, local-only writing tool. Uses Chrome's local gemini models for intelligence.",null,"TypeScript",21,2,1,0,1.43,"MIT License",false,"main",true,[],"2026-06-12 02:04:18","# Draftside\n\nAn open-source writing editor that runs 100% offline. Chrome's built-in Gemini Nano powers inline completions, rewrites, alternate phrasing, translation, chat, transcription, and draft classification — all on your device, without a model backend.\n\n**Live:** [draftside.ai](https:\u002F\u002Fdraftside.ai)\n\n## Why\n\nMost AI writing tools send your drafts to a remote backend. Draftside doesn't. Every AI call runs on-device through Chrome's built-in Gemini Nano — no API key, no account, no backend model calls. The whole product is a web app you can install as a PWA and use on a plane.\n\n## Features\n\n- **Inline ghost-text completions** — pause briefly, press `Tab` to accept\n- **Alternate wording** — highlight a phrase, click to swap\n- **Rewrite** — shape a passage with the local Rewriter API\n- **Classify** — read your own draft (form, intent, stance, friction, next move)\n- **Translate** — on-device translation between supported languages\n- **Chat** — ask the local model questions about your draft, with optional image attachments\n- **Transcribe** — dictate via the multimodal Prompt API\n- **Private Vault** — passkey-encrypted drafts via WebAuthn PRF, unlocked with Touch ID, Windows Hello, or a hardware key\n- **Persistent local drafts** — stored in IndexedDB, never uploaded\n- **Installable PWA** — works offline once the app shell is cached; AI features run when Chrome's local model is available\n\n## Requirements\n\nDraftside needs a Chrome (or Edge \u002F Chromium) browser with the built-in AI APIs enabled. The first AI session can trigger a one-time Gemini Nano download (~1–2 GB), after which inference runs locally.\n\nThe editor and offline drafts work in any modern browser; AI features require Chrome's `LanguageModel` API. Some tools also use `Rewriter`, `Translator`, `LanguageDetector`, and multimodal `LanguageModel` input support when the browser exposes them.\n\n## Privacy model\n\n- Drafts are stored in your browser's IndexedDB under this origin. They are not uploaded by Draftside.\n- AI prompts and responses are sent to Chrome's built-in AI APIs and run locally when those APIs are available.\n- The optional Private Vault encrypts drafts in IndexedDB with AES-GCM. The vault key is wrapped with WebAuthn PRF output from your passkey, plus a one-time recovery key.\n- The editor route (`\u002Fwrite`) does not load Google Analytics.\n- The marketing page (`\u002F`) currently loads Google Analytics, so Google may receive normal page-view metadata for visits to the landing page.\n- Browser extensions, the browser vendor, operating system services, and a compromised local device are outside Draftside's control.\n\n## Development\n\n```bash\nnpm install\nnpm run dev\n```\n\nThe dev server runs at `http:\u002F\u002Flocalhost:4321`.\n\n## Production build\n\n```bash\nnpm run build      # static build\nnpm run preview    # build + run via wrangler\n```\n\n## Deploy\n\nDeployment targets Cloudflare Workers via Wrangler:\n\n```bash\nnpm run deploy\n```\n\n## Stack\n\n- [Astro](https:\u002F\u002Fastro.build) for the site, with a React island for the editor\n- [TipTap](https:\u002F\u002Ftiptap.dev) (ProseMirror) for the editing surface\n- [Chrome Built-in AI APIs](https:\u002F\u002Fdeveloper.chrome.com\u002Fdocs\u002Fai\u002Fbuilt-in-apis) — `LanguageModel`, `Rewriter`, `Translator`, `LanguageDetector`\n- [Tailwind CSS](https:\u002F\u002Ftailwindcss.com) for layout and styles\n- [Cloudflare Workers](https:\u002F\u002Fworkers.cloudflare.com) for hosting\n\n## Project structure\n\n```\nsrc\u002F\n  pages\u002F\n    index.astro            landing page\n    write.astro            editor entry\n  components\u002F\n    editor\u002F\n      DraftsideEditor.tsx  the editor + AI surface\n  styles\u002F\n    global.css\n    editor.css\n  site-meta.js             shared site metadata\npublic\u002F                    static assets (icons, og image, manifest)\nscripts\u002F\n  generate-og.mjs          OG image generation\n```\n\n## Contributing\n\nIssues and pull requests welcome. The project is small enough that a quick description in an issue is usually the right starting point.\n\nFor vulnerability reports, please see [SECURITY.md](.\u002FSECURITY.md).\n\n## License\n\n[MIT](.\u002FLICENSE) © Colin Armstrong\n","Draftside 是一个完全离线的本地写作工具，利用 Chrome 内置的 Gemini Nano 模型提供智能辅助功能。其核心功能包括内联补全、改写、翻译、聊天、转录和草稿分类等，所有操作都在设备本地完成，无需网络连接或后端支持。适合需要在无网络环境下进行高效写作的用户，如飞机上或其他网络受限环境。项目基于 TypeScript 开发，并以 PWA 形式安装，确保了良好的跨平台兼容性和用户体验。","2026-06-11 04:05:52","CREATED_QUERY"]