Skip to content
This repository has been archived by the owner. It is now read-only.

Protocol for arbitrary metadata? #98

Closed
micahredding opened this issue Mar 9, 2016 · 4 comments
Closed

Protocol for arbitrary metadata? #98

micahredding opened this issue Mar 9, 2016 · 4 comments
Labels

Comments

@micahredding
Copy link

micahredding commented Mar 9, 2016

I haven't seen any docs on this, so I'm assuming this isn't in place — but is there an established protocol for attaching arbitrary metadata to files? Does ipfs add support any metadata options?

@RichardLitt
Copy link
Contributor

RichardLitt commented Mar 10, 2016

I'm not sure. You might want to check in github.com/ipfs/specs.

@hackergrrl
Copy link

hackergrrl commented Mar 23, 2016

IPFS stores objects, where files are a data structure on top. (Easy misconception, given the project name 😄). Take a look at ipfs object --help for some commands that assist in building custom object structures using IPFS merkle dag objects.

Soon we'll be using a format called IPLD, which will make it easier to describe arbitrary data structures on top of IPFS.

@whyrusleeping
Copy link

whyrusleeping commented Mar 23, 2016

Ipfs files currently do have a metadata object, but we havent put a lot of effort into it yet and using it is rather difficult.

That said, the current metadata structure is here: https://github.com/ipfs/go-ipfs/blob/master/unixfs/format.go#L180

Right now it only has fields for a mime type and size, but i think adding arbitrary key/value pairs to that is probably something good to do in the short term (before IPLD is done).

We should also work on exposing that metadata object through ipfs add and friends.

@madavieb
Copy link

madavieb commented May 23, 2017

This issue has been moved to https://discuss.ipfs.io/t/protocol-for-arbitrary-metadata/346.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants