So first, unless the title didn't give it away, this is a spoiler...
I don't see any way to get a good ending in this game. Let me explain first about me at very least in a game sense: I am not liberal by any means. I kill enemies, criminals, and people who are a threat. I hated for example in KOTOR (liked the game overall) when you got Dark Side points for killing those 2 criminals who were about to rob and kill you... you kill people all the damn time, why was that bad?
On the other hand, I take trust in friends and allies very seriously. If I give my word I keep it, and I expect the same from others. I don't like to be stabbed in the back. I suppose I would be "lawful neutral" or "Lawful evil" I would kill the criminal a contract was put out on, kill his son for shooting at me even though he was just a teenager, but wouldn't kill everyone who ever met him just to be evil. I would take the agreed price for the bounty, and not black mail or threaten the one who gave me the mission for more. That's an example of my type.
So all that said, I see no good ending, nothing that I would actually do. My choices are, as I see it:
1) Side with the Brotherhood. Kill the brightest minds the planet has and wipe out 200 years of science. In the process, betray the railroad, betray Deacon (who I liked) kinda give the middle finger to Hancock by supporting the BoS.
2) Side with the Institute. Betray the BoS and Railroad. Give the Middle finger to Dance and Valentine (both I like) Support science, but replace humans with synths, which i don't agree with... I support developing synths but not replacing people completely. Destroy the BoS who while wrong on some issues, are needed to beat back Super Mutants, and other threats that may arise. Who knows? Chinese may still be a threat, more violent mutants, or a faction like The Legion might need to be fought off.
3) Side with Minutemen and Railroad. Betray BoS/Institute. This is the... how to say it... most Disney ending route, the "Nicest" I suppose. However, its still awful. Destroy science and tech, which is a bad thing. Continue to live in rags and garbage.
Why can't I ally these sides? Why can't I kill trouble makers in both the BoS and Institute and then have them work together? Why cant I kill a handful that oppose me in the Institute (like in House Divided) and then have the Railroad agree that synths who want to leave can, and syths who want to stay with the Institute can? I havn't had a chance to try every angle, but I have seen one ending and when I reload a save a ways back, all options I try eventually lead to "Doing this will make X hostile, are you sure?"
Every route requires spitting in someones face who trusted you, they all require wiping someone out who had good qualities, even if I don't agree with all of it. I honestly feel slimy no matter what route I try. Maybe I missed a better solution somewhere? But these are all the options I see.