agray.org > repos > mediawiki
Source code on Github or as git-bundle
Demonstration on agray.org
README.mdget-byte-offset-of-page-given-title.hppfast-pagelinks.hppgzguts.hppread_wikimedia-page-quickmetadata.hppextract-page.cppextract-page.hppread_wikimedia-pagelinks-sql.cppget-byte-offset-of-page-given-title.cppextract-page-lib.cppread_wikimedia-page-quickmetadata.cppwikitext_to_html.cppwikitext_to_html.hppextract-page-given-title.cppMakefile

Description

tl;dr: Ugly but readable. Very fast, available in WASM (unlike all alternatives, which are server-side).

Render Wikipedia pages from a compressed archive.

Wikipedia's source code is written in MediaWiki - which is notoriously complex. There are very few libraries that render MediaWiki pages - the existing ones rely on a complex render pipeline that can involve numerous network requests (slow).

This, written in C++, is very fast. But it lacks most features (it doesn't even render tables). It is designed for a bare-bones web server for hosting Wikipedia articles.