Hacker News new | ask | show | jobs
The most feature-rich template library for JavaScript that fits in 510 bytes
3 points by icharala 3422 days ago
For the past few weeks I was developing a project for an IoT device that had an embedded web server. The bad thing about these devices is that they have only about 4kb of flash memory and even a single extra byte can cost you precious program memory.

So, one of the challenges I had to face is how to fit the most advanced Web UI I have ever built in about 1Kb (CSS+HTML+Js)?

Guess what? It seems that you can fit most of the nice core features of React.js in only 510 bytes!

https://github.com/wavesoft/dot-dom

Of course you could fetch your libraries as an external resources, but what's the fun on that! -- Not to mention the case where you have no internet but only a point-to-point wifi connection.