split out example into separate plugin, and create an exported API package