lib: add library version
lib: add metadata API