Offline wikipedia reader written in javascript
JavaScript HTML CSS Shell
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
browser-tests Use articleContent.write to inject HTML into iframe and eliminate dum… Apr 16, 2018
nbproject Implements #268 Update jQuery to 3.2.1 Jun 29, 2017
scripts Create the nightly remote directory if it does not exist, during CI. Aug 4, 2018
tests Read CSS as utf8 strings instead of binary (#371) May 23, 2018
ubuntu_touch Change version numbers to start working on 2.4 Jun 4, 2018
webextension Replace "Evopedia" strings by "Kiwix" in all file headers. Apr 9, 2017
www Prevent xzdec_wrapper from decompressing several chunks at a time. Aug 9, 2018
.gitattributes Fix CRLF git behavior on binary files May 3, 2015
.gitignore Ignore May 9, 2018
.travis.yml Create the nightly remote directory if it does not exist, during CI. Aug 4, 2018 Update Changelog with the content of version 2.3.0 Jun 4, 2018
LICENSE-GPLv3.txt Add license information in the About section : GPL v3 Aug 22, 2013 Update Changelog with the content of version 2.3.0 Jun 4, 2018
index.html Add an index.html at the root of directories, to redirect to www/inde… Apr 12, 2014
manifest.json Change version numbers to start working on 2.4 Jun 4, 2018
manifest.webapp Change version numbers to start working on 2.4 Jun 4, 2018
nightwatch.js Run automated unit and UI tests on several browsers. Dec 25, 2017
service-worker.js Add more specific mimetype support for images #390 (#391) Jun 6, 2018
tests.html Rebrand candidate files (#263) Jun 24, 2017

Kiwix JS


Kiwix is an offline Wikipedia viewer. See the official site:

This is a browser extension developed in HTML5/Javascript.

You can search among the article titles, and read any of them without any Internet access. All the content of Wikipedia is inside your device (including the images). It might also works with other content in the OpenZIM format: , but has been only tested on the Mediawiki-based (wikipedia, wikivoyage etc) and StackExchange ZIM files.

If your Internet access is expensive/rare/slow/unreliable/watched/censored, you still can browse this amazing repository of knowledge and culture.


It uses ZIM files that you can download from

You have to download them separately, store them in your filesystem, and manually select them after starting the application. It is unfortunately not technically possible to "remember" the selected ZIM file and open it automatically (the browsers refuse that for security reasons).

Some technical details

Technically, after reading an article from a ZIM file, there is a need to "inject" the dependencies (images, css etc). For compatibility reasons, there are several ways to do it :

  • the "jQuery" mode parses the DOM to find the HTML tags of these dependencies, and modifies them to put the Base64 content in it. It is compatible with any browser, but is slow and can use a lot of memory. It works well on Mediawiki-based content, but can miss some dependencies on some contents
  • the "ServiceWorker" mode uses a Service Worker to catch any HTTP request the page would send, and reply with content read from the ZIM file. It is a generic and much cleaner way than jQuery mode, but it does not work on all browsers. And ServiceWorkers are currently disabled by Mozilla in Firefox extensions


This is written in HTML/javascript so it should work on many recent browser engines.

Officially supported platforms

Platforms that are unofficially reported to work

These platforms are not officially supported, but are currently working. We'll try to keep compatibility as long as it's not too complicated :

  • Microsoft Internet Explorer 11


This application is released under the GPL v3 license. See or the included LICENSE-GPLv3.txt file The source code can be found at

Unit tests

Unit tests can be run by opening tests.html file on Firefox or Edge (or Chromium/Chrome with some tweaks).

Public releases and nightly builds

The browser extensions are distributed through the stores of each vendor (see links above). But the packages are also saved in if necessary.

Some nightly builds are generated, and should only be used for testing purpose :

Previous versions

The first versions of this application were originally part of the Evopedia project: (now discontinued). There was a "articles nearby" feature, that was able to find articles around your location. It has been deleted from the source code with everything related to Evopedia (but still in git history in versions<=2.0.0) These first versions were targeting Firefox OS (now discontinued too : we're not lucky ;-) ). Some Phonegap/Cordova port was started but never finished (see in git history in versions<=2.0.0).

See the file for the detail of previous versions.