A generic library for building services