A 90° shelf bracket, an L bracket for furniture or a corner for a crate: set both arm lengths, the width, gussets and screw holes. It prints lying on one arm, with no supports.

Paste it e.g. into a video description - anyone opens the same design.
Short tutorials from my BnB3D channel (Polish audio, English subtitles).
Affiliate links: if you buy something I get a small commission, and you pay the same. As an Amazon Associate I earn from qualifying purchases.
A 30 mm wide PETG bracket, 5 mm thick, with two gussets and 4-5 walls easily holds a light bookshelf together with a second one. Do not hang heavy things overhead on prints alone - use metal brackets.
Wall arm on the bed, shelf arm pointing up. The gussets are then vertical with a 45° slope and the holes in the standing arm are teardrops, so nothing needs supports.
0.5 mm larger than the screw: 3.5 mm for a 3 mm screw, 4.5 mm for 4 mm, 5.5 mm for 5 mm. Drill the wall plug hole separately - the bracket only covers the plug.