libkiwix
libzim


libkiwix | libzim | |
---|---|---|
3 | 3 | |
129 | 184 | |
5.4% | 4.9% | |
8.9 | 8.3 | |
3 days ago | 4 days ago | |
C++ | C++ | |
GNU General Public License v3.0 only | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
libkiwix
- Recent Wiktionary ZIM files don't show a search bar
- Latest Wikipedia zim dump (97 GB) is available for download
-
Is there a way to sort/organize the zim files listed in library.xml?
Open a ticket? https://github.com/kiwix/libkiwix/issues
libzim
-
WikiReader
I meant the Kiwix dump (https://download.kiwix.org/zim/wikipedia_en_all_nopic.zim – careful, 60GB!).
At a first glance, the Wikimedia XML dump does not look substantially different from what Kiwix/ZIM does with compressed HTML: They're both compressed (bz2 for the Wikimedia dump, zstd or LZMA for Kiwix/ZIM), and both compress multiple files at once, so inter-file redundancy should hopefully be significantly reduced.
HTML seems a bit more verbose than the Mediawiki syntax (plus the XML header for each article), but I'd be surprised if that actually accounted for a 3x difference in size.
Then again, Kiwix seems to have experimented with shared dictionary brotli compression, which supposedly yields an >2x improvement: https://github.com/openzim/libzim/issues/144
I wonder if their current zstd implementation also uses shared dictionaries. If not, that might just be the reason: If ZIM compression chunks are much smaller than the bz2 streams of the Wikimedia dumps, there would still be a lot of redundancy between chunks.
-
Libzim now has an official WebAssembly build target... why this is big (for us)!
This is low-level stuff, but the new release of the backend that powers Kiwix clients, libzim 8.1.0 (changelog), now targets WebAssembly (a.k.a. WASM). This is big because it potentially brings the full powers of the Kiwix backend to Web apps such as Kiwix JS and Kiwix JS PWA/Electron. Up till now, these apps have relied on a custom JS port of parts of libzim, but it lacked full features, such as Full Text search. So, you will begin to see us integrating new features into the Web versions soon!
-
Most downloads of the entire Wikipedia per country
I'm doing my part o7
It's seriously a very interesting and useful dataset that you can do a lot of fun stuff with, if you grab one of the zims without pictures it's of very manageable size too of just a few dozen gigabytes compressed, and there are reasonably good library support in many languages.
Last point doesn't go for Java. Only one I could find for that was this <https://github.com/openzim/libzim>, it's antique and extremely poorly optimized and lacks support for newer compression schemes. I have fixed the performance and added support for zstd compression, but not published the code as it's extremely not finished and major features in the original codebase are very broken. I'll get around to sharing the code some day but right now it's basically permanently mid surgery as I've only patched so far as to get it to extract all or specific files. If anyone wants a copy of this code regardless of state, give me a holler.
What are some alternatives?
mwoffliner - Mediawiki scraper: all your wiki articles in one highly compressed ZIM file
ifixit - iFixit to ZIM scraper
kiwix-tools - Command line Kiwix tools: kiwix-serve, kiwix-manage, ...
lepton - Lepton is a tool and file format for losslessly compressing JPEGs by an average of 22%.
kiwix-build - Kiwix & openZIM build engine
zim-tools - Various ZIM command line tools
kiwix-apple - Kiwix for iOS & macOS
meshoptimizer - Mesh optimization library that makes meshes smaller and faster to render
wikipedia-mirror - 🌐 Guide and tools to run a full offline mirror of Wikipedia.org with three different approaches: Nginx caching proxy, Kiwix + ZIM dump, and MediaWiki/XOWA + XML dump
Lepton - 💻 Democratizing Snippet Management (macOS/Win/Linux)
Wikireader-Adventures - Developing useless widgets in Forth with the Wikireader.

