holepunchto / hyperdrive

Hyperdrive is a secure, real time distributed file system
Apache License 2.0
1.86k stars 134 forks source link

Storing encoding metadata about hyperdrive files #372

Open josephmturner opened 3 weeks ago

josephmturner commented 3 weeks ago

It would be useful to have either a specified or de facto standard location to store hyperdrive file encodings.

hypercore-fetch and hypercore-fetch-ushin store timestamp data inside entry.value.metadata.mtime. It would similarly be useful to store encoding metadata inside entry.value.metadata:

{
  encoding: "utf-8" // or "iso-8859-1", "big5", etc.
}

Do you know of any hypercore applications that already store encoding data somehow?

Similar discussion in hypercore-fetch