There's a
Java application that runs stand-alone called SchemaSpy. You can feed any JDBC-supported database to it and it will produce a hyperlinked map of the schema in website or PDF form. If the DBA was considerate enough to put comments on the elements, it will even show them.
For Java code, one of the best tools is JavaDoc, which will map out the application code and its relationships. Again, how much additional detail you get depends on whether the author(s) were kind enough to comment their code. For non-Java languages, there's Oxygen, but it can't infer some of the relationships that JavaDoc can and again, it depends on how diligent the authors were in documenting the code.
I use Eclipse for almost everything, and I can easily hyperlink and display usages using the context menu for Java code, What support it has for other languages probably depends on how ambtios the author for those language plugins was.
For JavaScript, the pre-eminent documentation tool is JSdoc, and it's covered along with alternatives here:
https://dev.to/joelnet/lets-talk-about-auto-generated-documentation-tools-for-javascript-49ol
In ancient times there were automated flowcharting tools and I actually have the (Fortran) source for one of them. But flowcharts are relatively useless for OOP systems where its the object relations that are more imporant.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.