3 ms·
47mb downloaded, 1.5gb after build, wtf? I consider my own coding agent bloated at just 1mb (yes 1mb) because it uses postgresql package as db tool, and it wor
by Kuyawa 2mo ago
47mb downloaded, 1.5gb after build, wtf?
I consider my own coding agent bloated at just 1mb (yes 1mb) because it uses postgresql package as db tool, and it works wonders.
* edit 1: Upon further scrutiny, 35 dependencies make up for 1.4gb, what they are for? I don't even see postgres in there so I guess that would be another plugin. 1.5gb of basic functionality?
* edit 2: Most of the time I use the terminal but also developed a web ui for my agent [1] and it is only 20mb with postgres, git, web, file tools, etc I definitely want to know why the bloat
[1] https://github.com/kuyawa/mecha-ui https://github.com/kuyawa/mecha-ui
- nefarious_ends 2mo agoyeah, the build took 3 minutes on my macbook air. what's in this thing?
- Kuyawa 2mo agoFound the culprits, anthropic and openai models are 250mb each. So if we use only deepseek I guess it should be ok to remove them, but still some tests to do just in case
- redbuck 2mo agoNODE_MODULES
- Kuyawa 2mo agoExactly, node_modules, but being a single page app with nothing much other than calling AI in the background and beautifully presenting the results, what are those modules for? I suspect the culprit is react, typescript and its entourage of useless stuff not appropriate for a simple app in its structure, even if extremely complex for producing results. UI is simple, we shouldn't complicate stuff