A hinge - 180 degree.
Prototype it
Test the stl to see if you like it.
Extend it
The .blend file is available. Feel free and extend it to your needs.
Optimization
I'll optimize over time and update the files accordingly.