And write unix-style cli tools that can be piped to and from. Make them eat and spit something structured like JSON.
Problem with libraries are that they tie the user to a specific language/OS. A cli tool eating and spitting ASCII/UTF-8 is about as cross platform as it gets.