One thing I can say which is probably a low hanging fruit. Error handling. Return errors in such a way that the application using the library can actually do something with it.
👤 rjmill
For documentation, this site has a good framework for organizing library docs: https://diataxis.fr/