Been bugging me for a while that every Mendix project on my machine carries the same JARs in userlib/vendorlib, the same themesource files, just sitting there as duplicate copies. Across my sixteen projects it came to 350+ MB of literally identical bytes.
So I threw together a little CLI called mxpak that dedupes the lot in one go: https://github.com/GG-O-BP/mxpak
It's the same trick pnpm uses for node_modules, nothing fancy really. There's a small store at `~/.mxpak/store/` where each unique file gets hashed with SHA-256 and kept once. Inside your projects the duplicates get swapped out for hard links back to that single copy. Hard links, not symlinks, so Studio Pro, git, your build scripts, none of them notice a thing. And if a project happens to sit on a different volume where hard links don't work, it quietly copies instead.
On my 16-project workspace (~23 GB total) it saved about 311 MB on JARs (58% off) and another 42 MB on themesource (74% off). The more projects you've got sharing the same stuff, the bigger the win.
mxp scan # does the dedup
mxp status # tells you what you saved
That's genuinely it, no config needed. If you give it a go on a bigger workspace I'd love to hear how you get on.