HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
browsermt
bergamot-translator
C++2022–2025
browsermt / bergamot-translator

bergamot-translator

Cross platform C++ library focusing on optimized machine translation on the consumer-grade device.

5Distinct people
8Mentions
0Explicit recommenders
565GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Cross platform C++ library focusing on optimized machine translation on the consumer-grade device.

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

Mentioned in the same Hacker News threads. That is not proof they are substitutes.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year8 dated mentions

Observed mentions: 2022-06-02 19:01:41 UTC to 2025-06-25 15:44:22 UTC.

02462022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 6 mentions; 0 submissions, 6 comments20222023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments20232024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-01-01 00:00:00 UTC to 2026-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2025

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC606
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC000
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC000
20252025-01-01 00:00:00 UTC2026-01-01 00:00:00 UTC202

What Hacker News says

8 sources
It is running a full transformer type neural network on your cpu, it needs all the speed it can get. It’s because the translation engine requires at least SSSE3.1 instructions[1]. These are translated to wasm SIMD instructions[2] which are only enabled by browsers if the underlying hardware is there to execute these at least somewhat efficient. [1] https://github.com/browsermt/bergamot-translator/issues/418 [2] https://emscripten.org/docs/porting/simd.html
In Firefox Translations: Translate websites in your browser without using the cloud
I believe this is called the Bergamot project, more can be found here: https://browser.mt/ The GitHub repo for it is here: https://github.com/browsermt/bergamot-translator The repo contains some details about how to run it in WASM which is quite interesting for embedding it in pages. I've been playing around with using WASM to capture speech to text (https://github.com/ccoreilly/vosk-browser) and automatically translating it using Bergamot. Results have been, ok. I don't think the tech is quite there yet and the speech to text obviously struggles with multiple speakers.
In On-device browser translations with Firefox Translations
Yes, the extension is being developed here [1] and the engine[2]/wasm[3] wrapper here. The models and training pipeline are in the urls your posted and the evaluation of those models are hosted here [4] [1] https://github.com/mozilla/firefox-translations [2] https://github.com/browsermt/bergamot-translator [3] https://github.com/browsermt/bergamot-translator/tree/main/w... [4] https://github.com/mozilla/firefox-translations-models/tree/...
In Mozilla releases local machine translation tools as part of Project Bergamot
The training pipeline is also on Github! [1] I was experimenting with running the wasm version of bergamot-translator (the translation engine used by the addon) in node [2]. However, if you want more performance, using the Python library [3] or the native C++ interface [4] gets you further because the wasm build is limited to a single thread and thus a blocking interface, and can't use all the processor specific optimisations that are in the native builds. EDIT: Another option is using translateLocally [5], which is a Qt desktop app based on bergamot-translator. It has a native messaging API that is designed as a much faster alternative to the wasm build for browser extensions, but it can also be used from Python [6]. [1] https://github.com/mozilla/firefox-translations-training [2] https://gist.github.com/jelmervdl/a4c8b6b92ad88a885e1cbd5
Read the rest
In Mozilla releases local machine translation tools as part of Project Bergamot
A fork of marian-dev[1] is the underlying machine-translation engine: - https://github.com/browsermt/marian-dev Development of higher-level code wrapping around marian-dev make suitable for the browser-extension happens at: - https://github.com/browsermt/bergamot-translator Some of the WebAssembly optimizations are available in bergamot-translator/marian-dev. Rest are in Firefox source-code. A start point could be https://bugzilla.mozilla.org/show_bug.cgi?id=1720747. Extension code is open-source, and linked already in other comments: - https://github.com/mozilla/firefox-translations [1] https://github.com/marian-nmt/marian-dev
In Mozilla releases local machine translation tools as part of Project Bergamot

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.