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

workflow-store

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

35 releases (14 breaking)

0.18.0 Sep 7, 2024
0.15.0 Jul 26, 2024
0.11.0 Feb 25, 2024
0.10.2 Dec 24, 2023
0.3.12 Mar 11, 2023

#132 in WebAssembly

Download history 341/week @ 2024-10-06 494/week @ 2024-10-13 605/week @ 2024-10-20 377/week @ 2024-10-27 235/week @ 2024-11-03 395/week @ 2024-11-10 789/week @ 2024-11-17 286/week @ 2024-11-24 329/week @ 2024-12-01 393/week @ 2024-12-08 204/week @ 2024-12-15 149/week @ 2024-12-22 175/week @ 2024-12-29 372/week @ 2025-01-05 223/week @ 2025-01-12 295/week @ 2025-01-19

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

MIT/Apache

315KB
7K 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
~514K SLoC