GithubHelp home page GithubHelp logo

smanaqvi83 / kiwix-js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kiwix/kiwix-js

0.0 1.0 0.0 20.07 MB

Offline wikipedia reader written in javascript

Home Page: https://download.kiwix.org/release/browsers/

License: GNU General Public License v3.0

HTML 2.83% Shell 0.73% JavaScript 56.16% CSS 0.60% C 39.68%

kiwix-js's Introduction

Kiwix JS

Kiwix is an offline Wikipedia viewer. See the official site: https://www.kiwix.org/

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 work with other content in the OpenZIM format: https://wiki.openzim.org/wiki/OpenZIM , 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.

Build Status: Continuous Integration Build Status: Release CodeFactor Kiwix for Firefox Kiwix for Chrome Kiwix for Edge License: GPL v3

Usage

It uses ZIM files that you can download from https://download.kiwix.org/zim/

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. 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.

Compatibility

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

Officially supported platforms

Deprecated platforms

These platforms are deprecated. We still partially test against them, and we'll try to keep compatibility as long as it's not too complicated :

  • Microsoft Edge Legacy >=40 (needs to run a local copy of the source code)
  • Microsoft Internet Explorer 11 (needs to run a local copy of the source code)

License

This application is released under the GPL v3 license. See http://www.gnu.org/licenses/ or the included LICENSE-GPLv3.txt file The source code can be found at https://github.com/kiwix/kiwix-js

Unit tests

Unit tests can be run by opening tests/index.html file in Firefox, Edge, or Chromium/Chrome.

Before running the tests, a one-time set up is needed to fetch development dependencies from the npm registry. Run npm ci --ignore-scripts to fetch the same versions as we use in CI.

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 https://download.kiwix.org/release/browsers/ if necessary.

Some nightly builds are generated, and should only be used for testing purpose: https://download.kiwix.org/nightly/

Previous versions

The first versions of this application were originally part of the Evopedia project: http://www.evopedia.info (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 CHANGELOG.md for the detail of previous versions.

kiwix-js's People

Contributors

mossroy avatar jaifroid avatar peter-x avatar kelson42 avatar krinkle avatar taniamalhotra avatar dependabot[bot] avatar ashiscs avatar julianharty avatar sharun-s avatar vasusharma7 avatar soloturn avatar ram690514 avatar ernesst avatar ykabusalah avatar ismaelvega avatar hrishi-raj avatar ab1nash avatar abhirup-99 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.