: You add files to a JSZip instance and then trigger a download using a library like FileSaver.js . 2. Back-End (Server-Side)
If you want to bundle files directly in the user's browser without sending them to a server, is the standard tool. Download Frr zip
PeaZip free archiver utility, open extract RAR TAR ZIP files : You add files to a JSZip instance
Knowing this will let me provide a specific code snippet. which saves memory.
: Use archiver . It uses streams, meaning it can start "downloading" to the user while it's still compressing, which saves memory.