Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
savestreams
Advanced tools
SaveStream: Effortlessly save and store streams in your web browser. Optimal memory management for large data, seamless integration, and secure reliability. Upgrade your web apps today and unlock the power of efficient stream saving.
SaveStreams is the solution to saving streams in the web browser. It is perfect for web apps where there's a need to save large amounts of data on devices with e.g. limited RAM.
SaveStreams takes a different approach. Instead of saving data in client-side storage or in memory you could now actually create a writable stream directly to the file system (I'm not talking about chromes sandboxed file system or any other web storage). This is accomplish by emulating how a server would instruct the browser to save a file using some response header + service worker
If the file you are trying to save comes from the cloud/server use the server instead of emulating what the browser does to save files on the disk using SaveStreams. Add those extra Response headers and don't use AJAX to get it.
If the file you are trying to save comes from the cloud/server use the server instead of emulating what the browser does to save files on the disk using SaveStreams. Add those extra Response headers and don't use AJAX to get it. If you can't change the headers then you may use StreamSaver as a last resort. saveStreams and others alike are mostly for client generated content inside the browser.
Use https if you can. That way you don't have to open the man in the middle
in a popup to install the service worker from another secure context. Popups are often blocked
but if you can't it's best that you initiate the createWriteStream
on user interaction. Even if you don't have any data ready - this is so that you can get around the popup blockers. (In secure context this don't matter)
Another benefit of using https is that the mitm-iframe can ping the service worker to prevent it from going idle. (worker goes idle after 30 sec in firefox, 5 minutes in blink) but also this won't mater if the browser supports transferable streams throught postMessage since service worker don't have to handle any logic. (the stream that you transfer to the service worker will be the stream we respond with)
Handle unload event when user leaves the page. The download gets broken when you leave the page. Because it looks like a regular native download process some might think that it's okey to leave the page beforehand since it's is downloading in the background directly from some a server, but it isn't.
FAQs
SaveStream: Effortlessly save and store streams in your web browser. Optimal memory management for large data, seamless integration, and secure reliability. Upgrade your web apps today and unlock the power of efficient stream saving.
The npm package savestreams receives a total of 4 weekly downloads. As such, savestreams popularity was classified as not popular.
We found that savestreams demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.