{"id":20954305,"url":"https://github.com/zachalam/accountphoto","last_synced_at":"2025-10-24T15:32:27.232Z","repository":{"id":57172461,"uuid":"151358634","full_name":"zachalam/AccountPhoto","owner":"zachalam","description":"Map a universal avatar against your EOS blockchain account (stored using the IPFS protocol).","archived":false,"fork":false,"pushed_at":"2018-11-17T18:55:28.000Z","size":28291,"stargazers_count":14,"open_issues_count":1,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-19T00:45:19.390Z","etag":null,"topics":["avatar","eos","ipfs"],"latest_commit_sha":null,"homepage":"","language":"WebAssembly","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zachalam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-03T04:02:32.000Z","updated_at":"2024-05-30T11:23:16.000Z","dependencies_parsed_at":"2022-08-24T14:41:02.269Z","dependency_job_id":null,"html_url":"https://github.com/zachalam/AccountPhoto","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachalam%2FAccountPhoto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachalam%2FAccountPhoto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachalam%2FAccountPhoto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachalam%2FAccountPhoto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zachalam","download_url":"https://codeload.github.com/zachalam/AccountPhoto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254071330,"owners_count":22009771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["avatar","eos","ipfs"],"created_at":"2024-11-19T01:14:05.353Z","updated_at":"2025-10-24T15:32:27.167Z","avatar_url":"https://github.com/zachalam.png","language":"WebAssembly","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AccountPhoto\nAccountPhoto is a decentralized application or (dApp) for the EOS blockchain. It provides a way for users to globally link a photo to their account. **Think Gravatar, but decentralized.**\n\n\n![AccountPhoto Screenshot](https://raw.githubusercontent.com/zachalam/AccountPhoto/master/frontend/public/ap-screen.png)\n\n## React Integration\nIf you run your own EOS dApp, you can provide a more personalized experience by integrating AccountPhoto into your service. It only takes a few lines of code.\n\n1. Install\n```\nnpm install accountphoto-react\n```\n\n2. Add\n```\nimport React, { Component } from 'react'\n \nimport AccountPhoto from 'accountphoto-react'\n \nclass Example extends Component {\n  render () {\n    return (\n      // simply add `account` name as prop.\n      \u003cAccountPhoto account={'zachzachzach'} /\u003e\n      // overwrite `style` by passing to component.\n    )\n  }\n}\n```\nView on NPM: [https://www.npmjs.com/package/accountphoto-react](https://www.npmjs.com/package/accountphoto-react)\n\n## Custom Integration\nIf you need to build your own integration, it's easy as well. Simply utilize your existing eos session.\n\n**ACCOUNT_NAME, the `lower_bound` param of `getTableRows`, needs the variable for the account name of the logged in user. Ie: 'zachzachzach'.**\n\n```\neos.getTableRows({\n    json: true,\n    code: \"accountphoto\",\n    scope: \"accountphoto\",\n    table: \"photo\",\n    lower_bound: ACCOUNT_NAME\n}).then((res) =\u003e {\n      let photo = res.rows[0]\n      // you can save and/or display the photo, by reading \"photo_hash\"\n      // ie: https://ipfs.io/ipfs/${photo.photo_hash}\n    });\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachalam%2Faccountphoto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzachalam%2Faccountphoto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachalam%2Faccountphoto/lists"}