Secure distribution of NodeJS applications

Yes you can create a binary format. V8 allows you to pre-compile JavaScript. Note that this might have a bunch of weird side-effects on assumptions made by node core.

Distributing source code means clients can easily steal our solution and stop paying licensing fees.

Just because you distribute the binary doesn’t protect you againsts theft. They can still steal the binary code or disassemble it. This is protection through obscurity which is no protection at all.

It’s better to give them a thin client app that talks to your server and keep your server code secure by not giving it away.

Leave a Comment