I thought of this a while ago and now it’s a reality, a shelf that “hooks on” to the top edge of a bed frame.  It’s a night stand alternative that doesn’t take up floor space or block the drawers.Ash shelf

Take a look here for a little more information and a photo of the shelf on the bed frame for which it was made.