The pgtypelib aspires to be a common type library leveraging PostgreSQL's ability for type extension. It is authored in C++ using the STL, and leveraging common OS libraries.
The pgtypelibproject is a PostgreSQL Community project that is a part of the pgFoundry.
The pgFoundry page for the project is at http://pgfoundry.org/projects/pgtypelib, where you can find downloads, documentation, bug reports, mailing lists, and a whole lot more.