tableflip/interavatar

Name: interavatar

Owner: TABLEFLIP

Description: Claim back your identity from the hashy anonymity, add an avatar to your IPFS peer ID.

Created: 2018-03-30 12:29:18.0

Updated: 2018-04-02 17:37:07.0

Pushed: 2018-03-30 12:30:17.0

Homepage: null

Size: 30

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Interavatar

Inter Planetary Recognised Avatar

Get avatar

/ipns/interavatar.io/[peerId] -> (.jpg image)

https://interavatar.io/avatar/{peerId}
> 303 https://gateway.interavatar.io/ipfs/Qmhash (.jpg image)

We ipfs.files.stat('/interavatar/{peerId}') to get the hash of the file and then redirect to the gateway to return the contents.

In MVP https://gateway.interavatar.io is a CNAME to https://ipfs.io.

Create an avatar
https://interavatar.io/avatar/{peerId}
ody - { avatar, password? }
eerId is a CID
vatar is a CID
assword is an optional string for changing the avatar

Client side, we offer paste CID or upload. Upload will add to local js-ipfs so that we can send the added hash.

We'll use window.ipfs if available or download js-ipfs on demand if not.

We should put some restrictions on the file size/type.

Server side, we ipfs.files.cp([payload.avatar, '/interavatar/' + params.peerId]) the file to MFS.

We periodically publish our IPFS node's name to be the hash of the /interavatar directory so that avatars can be looked up using IPNS: /ipns/interavatar.io/[peerId].

In MVP we don't publish our name.

Update an avatar
H https://interavatar.io/avatar/{peerId}
ody - { avatar, password? }
eerId is a CID
vatar is a CID
assword is an optional string which must match the password sent with the PUT request

In MVP we don't offer update.

Remove an avatar

What does this mean on the permanent web?

TE https://interavatar.io/avatar/{peerId}
ody - { password? }
eerId is a CID
assword is an optional string which must match the password sent with the PUT request

In MVP we don't offer remove.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.