Mynij Milestone 4: Torrent sharing of Index

A user can now decide to enable torrent sharing. The Mynij PWA can become a seeder of an index. Another user with the index Magnet Uri can download the torrent from the seeding browser directly. Indexed can now be shared without having to go through a central platform subject to content sharing restrictions.
  • Last Update:2021-02-22
  • Version:001
  • Language:en

The goal of this Milestone is to implement sharing of index through Mynij users. A user can decide if he want to enable torrent sharing, when done he will become a seeder. Another user with the index Magnet Uri can download the torrent from the seeder browser directly.

Mynij uses Webtorrent to share index in the browser. WebTorrent is written completely in JavaScript and uses WebRTC for peer-to-peer transport whenever possible. No browser plugins, extensions, or installation is required to use WebTorrent in the browser.

Source code can be found in Nexedi gitlab here:

Backgound Index Seed

When an index is built, it can be shared to others Mynij users through a torrent. Seeding an index will create a Blob of full index (which contains a zipped JSON file), this mean export all Flexsearch data, index definition and saved content, then make it available to internet.

Seed of index is enabled by checking Seed as Torrent in the index document source and click on Save. A backgound job extract required data and start to seed it. As long as the browser tab is opened, the seeder is active and available for download.

To stop seeding, user can unckeck Seed as Torrent and save the index again, this will cancel the job for the related index.

Officejs Appstore - Dashboard

Activities page show Torrent seed state, it's possible to see the Torrent size as well as the magnet URL. When a client download the torrent, the progression, the number of peers and the current download speed are updated in live, it help to see which torrent is being transferred.

Mynij App Offline installation


Import Index from Torrent

Importing index from torrent is same as importing from a file with the advantage that it's easy to share index with a simple link.

Opening the link in the browser, automatically start download of index from available peers. This operation is fast than a build (crawl all URLs in the index takes time), index in the torrent is zipped which reduce considerably the size of blob to download.

Index torrent can also be imported by clicking on the menu Import Index Torrent, which opend a form where user can input the Magnet URI and start download.

When downloading the torrent, user can see download progression and file extraction information.

Become a seeder

It's possible to seed any index (thus become an index seeder). This is done by navigating to index Sources menu in Mynij app, choose the index to seed then check Seed as Torrent. A RenderJS background job loop every minutes and create a new seed from enabled index data.


  • Logo Nexedi
  • Alain Takoudjou
  • alain (dot) takoudjou (at) nexedi (dot) com
  • email was
  • Photo Jean-Paul Smets
  • Logo Nexedi
  • Jean-Paul Smets
  • jp (at) nexedi (dot) com
  • Jean-Paul Smets is the founder and CEO of Nexedi. After graduating in mathematics and computer science at ENS (Paris), he started his career as a civil servant at the French Ministry of Economy. He then left government to start a small company called “Nexedi” where he developed his first Free Software, an Enterprise Resource Planning (ERP) designed to manage the production of swimsuits in the not-so-warm but friendly north of France. ERP5 was born. In parallel, he led with Hartmut Pilch (FFII) the successful campaign to protect software innovation against the dangers of software patents. The campaign eventually succeeeded by rallying more than 100.000 supporters and thousands of CEOs of European software companies (both open source and proprietary). The Proposed directive on the patentability of computer-implemented inventions was rejected on 6 July 2005 by the European Parliament by an overwhelming majority of 648 to 14 votes, showing how small companies can together in Europe defeat the powerful lobbying of large corporations. Since then, he has helped Nexedi to grow either organically or by investing in new ventures led by bright entrepreneurs.