I designed this bracket to fit on a shelf I built myself out of an old plank of wood. I believe it would be able to adapt well to other uses.
Some specifications that may help you in your DIY :
The bar I used is from IKEA. It's a “RÄCKA” (002.171.65) that can extend 70-120 cm. It was 2.99$CAD. I drew the holes bigger to give me a little bit of room to get it in and out.
The author marked this model as their own original creation.