StreamSaver.js
unit-test-service-worker
StreamSaver.js | unit-test-service-worker | |
---|---|---|
6 | 1 | |
3,864 | 1 | |
- | - | |
4.7 | 0.0 | |
6 months ago | over 2 years ago | |
JavaScript | JavaScript | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
StreamSaver.js
-
It's never been a better time to switch to Firefox
This! It is frustrating that web apps like draw.io can't save to file directly using Firefox. It gets old having to save a new file every time you make a change.
Beyond that, the File System API would also allow for streamed downloads directly from the web-app. This would allow for web-apps to generate large download files without having to store a copy on a database (external server or IndexedDB), which is a privacy improvement. The only way to do this now is by using convoluted techniques to essentially do a MITM to a fake endpoint [1].
[1] https://github.com/jimmywarting/StreamSaver.js
-
UnCloud project: WebRTC chat, file transfer, and remote observation
Yuck, that sounds annoying. I'm on Linux and generally use Firefox, so I haven't run into that yet. I'm using https://github.com/jimmywarting/StreamSaver.js for saving data to disk, and it seems that a similar issue may be present for that project as well.
- How to dowload huge files
-
How can I create a dynamic file and then have user download it on a web app?
If it's larger, it's complicated... https://github.com/jimmywarting/StreamSaver.js generally works, but is not 100% reliable. https://github.com/jimmywarting/native-file-system-adapter is supposed to be like a newer version of it, but I struggled to get it working. You can also use https://web.dev/file-system-access/ but it's only supported in Chrome.
-
Help beta test a new feature - import/export leagues with no size limit
The hacky new way. There is a library which lets other browsers stream data to a file. Problem is, it's a bit unreliable. In my testing, I found it sometimes doesn't work in Firefox (reload usually fixes it) and it didn't work at all in mobile Chrome (not sure why yet).
-
Speer - a peer to peer communication app
Thank you for the kind words! Firefox is not fully supported, because of two things: - no support for WritableStream (used for downloading the files). Read more here - not supporting system audio capture at all Non of this is breaking though, and file downloading still works, but it might be a little slower.
unit-test-service-worker
-
Unit testing service workers
Check out the code repo for this sample here: unit-test-service-worker
What are some alternatives?
native-file-system-adapter - File system, based on the spec reference implementation
service-workers - A collection of utilities for creating/testing/experimenting with service workers.
Surfable-app - Install any website as an app for instant access 🖥️
next-pwa - Zero config PWA plugin for Next.js, with workbox 🧰
speer - Speer is a fast, privacy focused and open source communication app for various use cases
samples - A repo containing samples tied to new functionality in each release of Google Chrome.
FileSaver.js - An HTML5 saveAs() FileSaver implementation
workbox - 📦 Workbox: JavaScript libraries for Progressive Web Apps
trystero - 🤝 Build instant multiplayer webapps, no server required — Magic WebRTC matchmaking over BitTorrent, Nostr, MQTT, IPFS, and Firebase
vue-easytable - A powerful data table based on vuejs. You can use it as data grid、Microsoft Excel or Google sheets. It supports virtual scroll、cell edit etc.