I would caution against using something like this for a bunk bed or loft bed. It’s a potentially fatal accident waiting to happen. At the very least, you should stick to a design that has been thoroughly tested and rated for load. Even so, the temptation to modify it is always there, especially for kids. And as a parent, it may not be obvious when it’s been modified because there are holes all over the place.
As you can probably tell, I’m a parent with kids who have used bunk beds and loft beds.