This is a remix on a bobbin storage box. I initially printed that box, but my wife immediately snapped of the latch. So, I remixed it to use a magnetic latch instead.
The hinge pin is just filament. Just press a length of filament through the holes and clip it at the end.
The new box uses two 6x3mm circular magnets which are press fit into slots at the front of the box. They should stay on their own but if not you may need a drop of super glue.
The author remixed this model.