Beaker: Converging DatArchive API with experimental FileSystem API?

Created on 15 Sep 2018  路  1Comment  路  Source: beakerbrowser/beaker

I noticed the inconsistent casing in readdir verus readFile, too (https://github.com/beakerbrowser/beaker/issues/571). I understand the choice to use the Node.js fs module as a model at the time, but now Mozilla and others have published a spec for in-browser filesystem access as part of the libdweb project.

https://github.com/mozilla/libdweb/blob/a78b0a0c9a1f1d3d1e3343995de7d4a9b0cb000c/src/FileSystem/FileSystem.js#L8-L39

MDN article

At first glance it seems to be a more consistently designed API. Plus, it might make a natural fit for Dat to fit in if other browsers are already looking at adopting the FileSystem API.

discussion

Most helpful comment

Yeah this is a good thing to look into. We aren't afraid to deprecate APIs. We can do things like leave the old API for a time, and even put out new APIs by names like DatArchive2. We just want it to be well-warranted, and this is the kind of thing that might warrant it.

Let's see what adoption turns into with the new filesystem APIs.

>All comments

Yeah this is a good thing to look into. We aren't afraid to deprecate APIs. We can do things like leave the old API for a time, and even put out new APIs by names like DatArchive2. We just want it to be well-warranted, and this is the kind of thing that might warrant it.

Let's see what adoption turns into with the new filesystem APIs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

msfeldstein picture msfeldstein  路  3Comments

ShalokShalom picture ShalokShalom  路  4Comments

flpvsk picture flpvsk  路  4Comments

monteslu picture monteslu  路  3Comments

johanbove picture johanbove  路  3Comments