Here is the docs: https://docs.onion.io/omega2-docs/

The vaious code is found here:

https://github.com/OnionIoT

If you keep in mind that Onion runs OpenWrt, there is a pile of information on openwrt.org and since OpenWrt is based upon linux, I use he linux man pages for a lot of stuff.

hth