#file-storage #local-storage #file-io #browser #storage #wasm-framework #framework

workflow-store

File storage access crate abstracting file I/O and browser localstorage

33 releases (12 breaking)

new 0.15.0 Jul 26, 2024
0.13.3 Jun 20, 2024
0.11.0 Feb 25, 2024
0.10.2 Dec 24, 2023
0.3.12 Mar 11, 2023

#647 in WebAssembly

Download history 138/week @ 2024-04-04 93/week @ 2024-04-11 418/week @ 2024-04-18 501/week @ 2024-04-25 272/week @ 2024-05-02 164/week @ 2024-05-09 158/week @ 2024-05-16 141/week @ 2024-05-23 176/week @ 2024-05-30 137/week @ 2024-06-06 851/week @ 2024-06-13 483/week @ 2024-06-20 577/week @ 2024-06-27 535/week @ 2024-07-04 298/week @ 2024-07-11 370/week @ 2024-07-18

1,842 downloads per month
Used in 8 crates (4 directly)

MIT/Apache

310KB
6.5K SLoC

workflow-store

Part of the workflow-rs application framework.


File I/O abstraction that supports browser localstorage.

github crates.io docs.rs license

Features

  • A single set of per-operating-system filename configuration options with fallbacks. (i.e. filename for macos or linux will fallback on unix or generic if not defined)
  • Automatic resolution of user home-folder is using ~ as a path prefix.
  • Support for in-browser storage using localstorage and base64 encoding for binary data.

This crate allows you to create a single file reference while specifying multiple per-operating-system file paths, including in-browser localstorage keyname. Subsequent read/write operations will work against the specified paths.

Dependencies

~17–32MB
~493K SLoC