Almost all the mass in a TeX installation is in the fonts and documentation. If you just need a TeX engine (lualatex) and use system fonts, it's just a MB or two.
But, do you want to render a resulting .pdf? If it's going into a canvas, I can see it taking some serious work.
(I think I did never write something as hard to parse for lay-people for explaining so simple an idea. There's something very wrong with the above comment.)
The actually TeX binary is actually quite small - it is little more than a macro processor. The other packages could actually be loaded on demand and kept in a local cache.