Probably the Python library would be the easiest place to get started.
https://meshtastic.org/docs/development/python/library/
I haven't worked with it for a few months, but the documentation at least was pretty sparse. Despite that, it's simple enough to follow the code.