Here are some great ideas on pinterest =diy%7Ctyped&term_meta=headboard%7Ctyped&term_meta=shelves%7Ctyped]https://www.pinterest.com/search/pins/?q=diy%20headboard%20shelves&rs=typed&term_meta=diy%7Ctyped&term_meta=headboard%7Ctyped&term_meta=shelves%7Ctyped
Here's one Hometalk idea Roseanne!
this is a headboard for a Queen sized bed in our house. I bought the headboard at an auction for $15, some years ago. It is very convenient. It has two sliding doors in the center and hods a fair number of books.
Here's another option for you--this one has storage and a fold down tray. It looks pretty nice!
I've brought these at St. Vincent De Paul thrift store for a few clients, and some of them I've repainted, some I've left stained. They are usually $15 to $25.
What type of headboard do you have now?
Please post a picture so that we can see what you are starting with.
If your headboard is timber, you could fix a piece of timber each side of the bed at the back of the headboard and extending to the side enough for you to attach a shelf onto it via screws or a bracket. Other ways are also possible, do post a picture...
this has some great ideas https://www.hgtv.com/design/rooms/bedrooms/how-to-make-a-headboard-with-storage