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.
The amount of abstraction alone for the project of this scope makes me cringe. You introduce unnecessary complexity.
30+ years in web development is what you say at the support group to explain why you're there, not to convince people you've developed good taste and reasonable sensibilities.
No, I just used a phrasing that reminded you of LLMs and that's it. Funnily enough it also has no real bearing on my argument; your 30+ years of web development didn't stop you from shipping more than a MB of JS to add some basic features to HackerNews [because LLMs wrote everything for you].
"Every accusation is a confession" and all that...