The openscad code allows you to customize and adjust overhangs and placement of the mounting holes. I use an M4 and M3 brass heatset insert and a 25mm M3 bolt to clamp the mount tight onto the bar.
The shelf in question is available https://www.amazon.com/dp/B0CW9QHKRT but this could work on any rectangular bars (size is just an openscad parameter).
I also designed a mount variant with an elongated hole for when your mount placement isn't 100%
The author remixed this model.
This is complementary to the opengrid ecosystem. You can buy this shelf and replicate, or modify this mount to other things you want to slap opengrid over.