Show HN: Use-Fs – A React Hook for the File System Access API and OPFS

A React hook for the File System Access API and the origin private file system. Point useFs() at a folder on disk or at browser storage, and your component re-renders whenever a file is added, changed or deleted.
3 points by linesofcode 58 days ago use-fs.com 0 comments
Summary not yet generated for this article.

Original Text

I'm happy to say that https://use-fs.com 2.0 has been released with brand new OPFS support. If you're building browser-based apps that heavily interact with the file-system this package is a must to have in your package.json!

A React hook that watches a directory and re-renders when a file is added, changed, or deleted. Point it at a folder the user picked and you're reading and writing their real files — no uploads, no endless file dialogs

New in 2.0: it watches the origin private file system too. No picker, no permission prompt, no user gesture — and, unlike File System API, it works in Safari and Firefox

What's OPFS? A file store the browser gives each origin — real directories and files, but readable only by your own site through the File System API, never by the user's file manager or other apps.

Comments (0 of ) ⌛

Loading more comments... ⌛
Scroll down to load more comments
No comments available.
Type to search HN and engineering blog articles
Press Escape to close  |  ↑↓ to navigate  |  Enter to open