Browser Using the File System Access API

オープン
#332 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
typescript
領域
database

調査の方向性

まず、既存の IDBBlockstore と IDBDatastore の実装を Node.js の blockstore-fs インターフェースと比較します。File System Access API のドキュメントと、ブラウザーおよびセキュリティ上の制約を確認します。完了の条件は、ブラウザー互換の blockstore-FS、IndexedDB フォールバック、そしてサポート、パフォーマンス、永続性に関する設計上の判断が確定していることです。

索引モデルが issue の本文から書いたものです。

説明

need/triage
Description:

Currently, Helia uses IndexedDB-based blockstore/datastore (IDBBlockstore and IDBDatastore) in the browser. While these work, IndexedDB has limits on storage size and performance. I propose adding a new blockstore implementation for browsers that leverages the File System Access API. This would allow users to choose a local folder for storing blocks, offering:

  • Larger storage capacity: Bypassing some IndexedDB limitations.
  • Better persistence and backup: Data is saved as files on the local filesystem, making it easier to back up or transfer.
  • Potential performance improvements: Direct filesystem access might be faster for some operations.
Implementation:
  • Create a blockstore-FS that follows a similar interface to the Node.js blockstore-fs, but is adapted for the browser using the File System Access API.
  • Provide a fallback to IndexedDB if the File System Access API is not supported.
Open Questions:

I do not fully understand what limitations or trade-offs might arise with this approach. I would love to hear opinions and suggestions from the community on potential challenges, such as issues with cross-browser support, performance, or security. What do you think guys? 🤔

Potential Benefits:
  • More flexibility for apps with high storage needs.
  • Easier backup and transfer of stored data.
  • Improved user experience on supported browsers (e.g., Chrome, Edge).

Feedback and discussion on design details and potential limitations would be greatly appreciated.

主要言語
TypeScript
スター
39
フォーク
28
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ipfs/js-stores のほかの issue

ipfs/js-stores の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。