You can embed the same open source wiki engine that powers this entire cloud, in your app:
You can also take any wiki/reactor you have online and sync it offline, to use in your offline app and vice-versa.
Most of the core source code is open sourced, on github. The full builds is available as maven artifacts and npm modules.
To just use the engine, see the simplest sample app simple text wiki.