[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-110594":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":15,"subscribersCount":15,"size":15,"stars1d":13,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":9,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":15,"starSnapshotCount":15,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},110594,"sakutto","jammaru\u002Fsakutto","jammaru","A browser extension for easy on-device translation with a local LLM (PLaMo). Private, free, no server needed.",null,"TypeScript",292,33,1,10,0,27,216,11,70.09,"MIT License",false,"main",[],"2026-11-23 20:26:58","2026-11-23 11:16:37","# Sakutto\n\n[![Chrome Web Store](https:\u002F\u002Fimg.shields.io\u002Fchrome-web-store\u002Fv\u002Fmhlbjjijfkoghmcjndgdimhdlfkhadfl?logo=googlechrome&logoColor=white&label=Chrome%20Web%20Store)](https:\u002F\u002Fchrome.google.com\u002Fwebstore\u002Fdetail\u002Fmhlbjjijfkoghmcjndgdimhdlfkhadfl)\n[![Chrome Web Store users](https:\u002F\u002Fimg.shields.io\u002Fchrome-web-store\u002Fusers\u002Fmhlbjjijfkoghmcjndgdimhdlfkhadfl?label=users)](https:\u002F\u002Fchrome.google.com\u002Fwebstore\u002Fdetail\u002Fmhlbjjijfkoghmcjndgdimhdlfkhadfl)\n[![GitHub stars](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002Fjammaru\u002Fsakutto?style=flat&logo=github)](https:\u002F\u002Fgithub.com\u002Fjammaru\u002Fsakutto\u002Fstargazers)\n[![License: MIT](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-blue)](LICENSE)\n[![Discord](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FDiscord-join-5865F2?logo=discord&logoColor=white)](https:\u002F\u002Fdiscord.gg\u002FpdSRBaSr38)\n[![Last commit](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flast-commit\u002Fjammaru\u002Fsakutto)](https:\u002F\u002Fgithub.com\u002Fjammaru\u002Fsakutto\u002Fcommits\u002Fmain)\n\nSakutto is an unofficial extension for Chrome and Firefox that translates web pages on your device. It runs [PLaMo 3 Translate](https:\u002F\u002Fhuggingface.co\u002Fpfnet\u002Fplamo-3-translate-0.8b-GGUF) through a pinned [wllama](https:\u002F\u002Fgithub.com\u002Fngxson\u002Fwllama) build. Every translated line is written by PLaMo: a page waiting for the model keeps its source text rather than showing a draft from another engine. On Chrome, Chrome's Translator API is used only for the language pairs PLaMo does not support. Firefox uses PLaMo only. Not affiliated with Preferred Networks, Inc. Built with PLaMo.\n\nThe extension is free and open source (MIT). It has no ads and no paid features. The model weights are not in this repository or in the extension package.\n\n## Install\n\nInstall Sakutto from the Chrome Web Store:\n\nhttps:\u002F\u002Fchrome.google.com\u002Fwebstore\u002Fdetail\u002Fmhlbjjijfkoghmcjndgdimhdlfkhadfl\n\nTo build and load it yourself instead:\n\n1. Install Node.js 24 and pnpm 12.\n2. Clone this repository and run `pnpm install`.\n3. Build the translation runtime and the extension (see [Build](#build)).\n4. Chrome: open `chrome:\u002F\u002Fextensions`, turn on **Developer mode**, choose **Load unpacked**, and select `.output\u002Fchrome-mv3`.\n5. Firefox 153 or later (Windows first): open `about:debugging`, choose **This Firefox**, **Load Temporary Add-on**, and select `.output\u002Ffirefox-mv3\u002Fmanifest.json`. See [docs\u002FFIREFOX.md](docs\u002FFIREFOX.md).\n\n## Shortcuts\n\n| Action                                          | Windows \u002F Linux              | Mac          |\n| ----------------------------------------------- | ---------------------------- | ------------ |\n| Translate the page, or restore the original     | Alt+A (Firefox: Alt+Shift+A) | Option (⌥)+A |\n| Switch between replaced text and bilingual text | Alt+B (Firefox: Alt+Shift+B) | Option (⌥)+B |\n| Translate the selection                         | Alt+S (Firefox: Alt+Shift+S) | Option (⌥)+S |\n| Translate the text you are writing              | Alt+T (Firefox: Alt+Shift+T) | Option (⌥)+T |\n| Translate typed text (on the typed text page)   | Ctrl+Enter                   | ⌘+Enter      |\n\nThe same actions are in the toolbar popup and the right-click menu. Chrome keeps these keys, so you change them in Chrome's own editor: the settings page has a **Keyboard shortcuts** panel, and the popup has a **Change shortcuts** link, both of which open `chrome:\u002F\u002Fextensions\u002Fshortcuts`. Firefox uses Alt+Shift+letter by default so the Windows menu bar is not taken, and **Change shortcuts** opens Firefox's own editor. The key list in the popup and the hint on the translate button follow whatever you bind there. Clearing a key in that editor stops Sakutto from handling it. If the browser could not assign a suggested key at install (for example because another extension already uses it), the default still works on pages until you turn that shortcut off in Sakutto. Chrome reads Alt in an extension shortcut as Option on a Mac, so the keys are the same letters. Alt+D is not a default, because Chrome on Windows and Linux uses it for the address bar.\n\n## Typed text\n\nWhile a message box, a textarea, or another editable field is focused, Alt+T (Option+T on a Mac; Alt+Shift+T on Firefox) or the あA button next to the field previews an on-device translation of what you are typing. Press the same shortcut again, or Ctrl+Enter (⌘+Enter on a Mac), to replace; Restore original puts the draft back. The preview has a language menu, and settings can skip the preview so one shortcut press translates and replaces. Japanese drafts go to English (or to your saved target if that is not Japanese); other drafts use the saved target, until you pick another language. Password fields and sites set to never translate are left alone. You can hide the あA button in settings. If the browser never assigned a key at install, the default still works on pages; clearing it in the browser's shortcut editor turns it off. The same PLaMo model as page translation is used; the built-in translator is not.\n\nThe popup has a **Translate typed text** button, and the options page has the same button. It opens a small extension page with a source box and a result box, so you can type or paste a paragraph and translate it without touching a page. It uses the same PLaMo model, the same licence consent, and the same load flow as page translation, and the direction follows the same target-language setting. The built-in translator is not used there: typed text is translated by PLaMo only, and a language PLaMo does not support is refused in the page rather than quietly handed to Chrome. The result has a Copy button.\n\n## Languages\n\nPLaMo 3 Translate supports 53 languages in either direction. The source language is detected from the page. The default target language is the browser UI language, or English when that language is not one of the 53. The popup can set a different target language for the current site.\n\nEleven further languages (cs, da, el, fi, kn, no, pt, ro, sv, tr, uk) are translated only by Chrome's built-in translator, and only in Chrome. Firefox hides those targets. Languages that PLaMo supports stay untranslated until the model is ready.\n\nThe interface itself is translated into 14 languages: English, Japanese, Korean, Chinese (Simplified and Traditional), Spanish, Portuguese (Brazil), French, German, Italian, Russian, Vietnamese, Thai, and Indonesian. Chrome picks the catalog that matches the browser UI language and falls back to English. To add one, see [docs\u002FTRANSLATING.md](docs\u002FTRANSLATING.md).\n\n## Privacy\n\nTranslation runs on your device. The extension does not send page text, selections, your glossary, or translations to the developer or to any translation server, and it has no account, ads, or telemetry. Its own network request is the model download from Hugging Face. Read the policy at [PRIVACY.md](PRIVACY.md) or https:\u002F\u002Fjammaru.com\u002Fsakutto\u002Fprivacy\u002F.\n\n## Build\n\n```bash\npnpm install\npnpm build:wllama   # once, with Docker; see docs\u002FBUILDING.md\npnpm verify:wllama\npnpm build          # production build in .output\u002Fchrome-mv3\npnpm build:firefox  # Firefox 153+ MV3 in .output\u002Ffirefox-mv3\npnpm zip            # Chrome Web Store zip in .output\npnpm zip:firefox    # Firefox zip in .output; then pnpm source:firefox for the AMO source zip\n```\n\n`pnpm build:wllama` compiles the pinned wllama commit `d275dac` inside the `emscripten\u002Femsdk:4.0.20` container. The wasm, workers, and model weights are not committed. `pnpm build` and `pnpm zip` refuse to run until that build has been verified. `pnpm zip` also checks that the package contains the runtime and the license texts, and that it does not contain model weights, source maps, or install-time host permissions.\n\n```bash\npnpm dev            # development build\npnpm lint\npnpm typecheck\npnpm test\npnpm test:e2e       # local fixtures; does not download the model\n```\n\n`pnpm test:e2e` builds a test package that translates inside the page. That package is not the release build. The release build does not include the test translator.\n\n`pnpm bench` loads the built extension in headless Chromium (Playwright's Chrome for Testing build, because branded Chrome refuses `--load-extension`) and translates four fixed local pages with the real 0.8B model: a long article, a news article, a docs page, and a client-rendered page. It also runs a short engine probe for time to first token and output speed. Pass `--pages-only`, `--engine-only`, or `--sweep` (thread, context, and batch sizes). The model is cached under `bench\u002F.cache\u002F` after a SHA-256 check. Build with `SAKUTTO_E2E_REAL=1 pnpm build` first so the harness can script the local pages. Results are written to `bench\u002Fresults\u002F`.\n\n`pnpm bench:mock` and `pnpm bench:live` measure whole pages the way a reader experiences them, on eight fixtures in [bench\u002Fpages](bench\u002Fpages) that each isolate a different cost (a long article, a short lead with a long tail, many short cards, one very long paragraph, a sidebar, mixed UI, a headline inside the article header, and late-mounted content). Every run appends to `bench\u002Fhistory\u002Fpages.jsonl`, so a later commit can be diffed against an earlier one on the same pages. `pnpm bench:serve` opens those fixtures in your own browser. See [bench\u002FREADME.md](bench\u002FREADME.md) for the metrics, the mock-versus-live distinction, and how to add a fixture.\n\n`pnpm icons` regenerates the PNG icons from `scripts\u002Fgenerate-icons.mjs`.\n\n`pnpm i18n:check` compares every catalog in `public\u002F_locales` against English for missing keys, placeholder tokens, and empty messages. `pnpm i18n:draft \u003Ccatalog> \u003Clanguage>` drafts a catalog from English with the same PLaMo model the extension ships. Both are described in [docs\u002FTRANSLATING.md](docs\u002FTRANSLATING.md).\n\n## Permissions\n\n| Permission         | Why it is requested                                                                  |\n| ------------------ | ------------------------------------------------------------------------------------ |\n| `storage`          | Saves the target language, reading style, and other settings.                        |\n| `unlimitedStorage` | Keeps the downloaded model and the translation cache on the device.                  |\n| `offscreen`        | Runs the translation runtime in a document whose workers outlive the service worker. |\n| `activeTab`        | Reads the current page after you open the popup or use a command.                    |\n| `scripting`        | Injects the content script into the active tab after you ask for a translation.      |\n| `contextMenus`     | Adds Translate page and Translate selection to the right-click menu.                 |\n\nOptional host permissions (`https:\u002F\u002F*\u002F*` and `http:\u002F\u002F*\u002F*`) are requested only when you turn on automatic translation for a site. Nothing is requested for every site at install time.\n\n## Support\n\nThere is no monetisation point in Sakutto. It is completely free, with no ads and no paid features.\n\nI started it because I wanted a translation extension like this myself, and I published it because it turned out to be needed by more people than I expected. I have no plans to charge for it or to add ads.\n\nContinuing development still takes time and money, so I opened GitHub Sponsors. If you like Sakutto, I would be glad of your support.\n\n- **$5 a month (Supporter)**: a plan for cheering on Sakutto's ongoing development.\n- **$10 a month (Backer)**: for anyone who wants to back it further. The amount changes nothing about the software.\n- **One-time**: any amount, once, if a subscription is more than you need.\n\nNeither tier adds limited features or priority support. The money goes towards new features, translation quality and speed, and ongoing maintenance. Whether you sponsor or not, Sakutto stays completely free and open source. https:\u002F\u002Fgithub.com\u002Fsponsors\u002Fjammaru\n\n## Contributing\n\nOpen an [Issue](https:\u002F\u002Fgithub.com\u002Fjammaru\u002Fsakutto\u002Fissues) first, then a pull request for that Issue if you can. That path is fully welcome. A PR is very much wanted; an Issue by itself is also enough. Please use the issue forms, and do not paste private page content. Questions are often faster in [Discord](https:\u002F\u002Fdiscord.gg\u002FpdSRBaSr38).\n\n- [CONTRIBUTING.md](CONTRIBUTING.md) (日本語: [CONTRIBUTING.ja.md](CONTRIBUTING.ja.md))\n- [Code of Conduct](CODE_OF_CONDUCT.md)\n- [SECURITY.md](SECURITY.md)\n\n## Licenses\n\n- Project code: MIT. See [LICENSE](LICENSE). Copyright 2026 jammaru.\n- PLaMo 3 Translate: PLaMo Community License. The texts are in `licenses\u002FPLaMo-Community-License-ja.txt` and `licenses\u002FPLaMo-Community-License-en.txt`, and the same copies are packed into the extension. Personal and academic use needs no registration. Under Article 3 the model's license allows commercial use only with prior registration on PFN's form (https:\u002F\u002Fforms.gle\u002FmTL8tBLrMYXKNZD56) and income or sales for you or your affiliates of no more than 1 billion yen in the most recent fiscal year; otherwise commercial use needs a separate commercial license from PFN. This repository's MIT license covers Sakutto's own code, not the model weights.\n- llama.cpp, wllama, the Emscripten runtime, the Dawn WebGPU library, and Svelte: see [NOTICE](NOTICE) and [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).\n- `scripts\u002Fbench\u002Ffixtures\u002Fkyoto.html` is a CC BY-SA 4.0 Wikipedia derivative. It is not covered by the MIT license and is not part of the extension package.\n\nJapanese documentation: [README.ja.md](README.ja.md).\n","Sakutto 是一款基于浏览器的本地化网页翻译扩展，支持 Chrome 和 Firefox，所有翻译均在用户设备端完成，无需联网或依赖远程服务器。其核心采用轻量级开源本地大语言模型 PLaMo-3-Translate（通过 wllama 运行），确保隐私安全；对 PLaMo 不支持的语言对，Chrome 版本回退至内置翻译 API，Firefox 则全程使用 PLaMo。扩展完全免费、无广告、MIT 开源，适合注重数据隐私、需离线翻译或对翻译结果一致性有要求的用户，如浏览敏感内容、研究多语种资料或网络环境受限场景。",2,"2026-11-24 04:39:24","CREATED_QUERY"]