Pippin Williamson has a great tutorial on extending the metadata API to easily register your own kind of metadata, for attaching to your own custom objects. As I’ve said before, I love how he continues to share what he’s learned scaling his own plugins so that others starting today don’t make the same mistakes he made early on.