You claim to have 30+ years of webdev experience and yet 2 MEGABYTES of javascript only for those features doesn't feel/look wrong to you?
You're not really answering the question.
That's the bundle size, not the amount of code in the project.
I've done nothing to try to optimize the bundle size, but I suspect that a lot of it has to do with some of the third party dependencies like mermaid.
Hey please don't cross into personal attack. You can make your substantive points without that.
https://news.ycombinator.com/newsguidelines.html