libmagt is a 3d potential field modeling library. It's the first step towards a framework for testing geophysical inverse modeling methods.