{"id":15427796,"url":"https://github.com/codingshot/neardc-gateway","last_synced_at":"2025-03-28T05:14:07.518Z","repository":{"id":188278214,"uuid":"678122668","full_name":"codingshot/neardc-gateway","owner":"codingshot","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-01T11:56:18.000Z","size":963,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-02T05:44:57.785Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://neardc-gateway.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codingshot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-13T18:51:42.000Z","updated_at":"2023-12-20T09:28:28.000Z","dependencies_parsed_at":"2023-08-14T17:39:55.961Z","dependency_job_id":"d12a3170-27fd-4bb0-920e-a6a1755656fd","html_url":"https://github.com/codingshot/neardc-gateway","commit_stats":{"total_commits":13,"total_committers":2,"mean_commits":6.5,"dds":0.07692307692307687,"last_synced_commit":"a6bc98c1860281e31f7d0a3a59619bffb46b84cc"},"previous_names":["codingshot/neardc-gateway"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingshot%2Fneardc-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingshot%2Fneardc-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingshot%2Fneardc-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingshot%2Fneardc-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codingshot","download_url":"https://codeload.github.com/codingshot/neardc-gateway/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245972748,"owners_count":20702723,"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":[],"created_at":"2024-10-01T18:01:31.358Z","updated_at":"2025-03-28T05:14:07.490Z","avatar_url":"https://github.com/codingshot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Browser\n\nA framework for reusable components to render and modify SocialDB by Near Social.\n\n## Setup \u0026 Development\n\nInitialize repo:\n```\nyarn\n```\n\nStart development version:\n```\nyarn start\n```\n\n## Widget example\n\nProfile view \n\n```jsx\nlet accountId = props.accountId || \"eugenethedream\";\nlet profile = socialGetr(`${accountId}/profile`);\n\n(\n  \u003cdiv\u003e\n    \u003cimg src={profile.image.url}/\u003e\n    \u003cspan\u003e{profile.name}\u003c/span\u003e \u003cspan\u003e(@{accountId})\u003c/span\u003e\n  \u003c/div\u003e\n);\n```\n\n\nProfile editor \n\n```jsx\nlet accountId = context.accountId;\n\nif (!accountId) {\n  return \"Please sign in with NEAR wallet\";\n}\n\nconst profile = socialGetr(`${accountId}/profile`);\n\nif (profile === null) {\n  return \"Loading\";\n}\n\ninitState({\n  name: profile.name,\n  url: profile.image.url,\n});\n\nconst data = {\n  profile: {\n    name: state.name,\n    image: {\n      url: state.url,\n    },\n  },\n};\n\nreturn (\n  \u003cdiv\u003e\n    \u003cdiv\u003eaccount = {accountId}\u003c/div\u003e\n    \u003cdiv\u003e\n      Name:\n      \u003cinput type=\"text\" value={state.name} /\u003e\n    \u003c/div\u003e\n    \u003cdiv\u003e\n      Image URL:\n      \u003cinput type=\"text\" value={state.url} /\u003e\n    \u003c/div\u003e\n    \u003cdiv\u003ePreview\u003c/div\u003e\n    \u003cdiv\u003e\n      \u003cimg src={state.url} alt=\"profile image\" /\u003e {state.name}\n    \u003c/div\u003e\n    \u003cdiv\u003e\n      \u003cCommitButton data={data}\u003eSave profile\u003c/CommitButton\u003e\n    \u003c/div\u003e\n  \u003c/div\u003e\n);\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingshot%2Fneardc-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodingshot%2Fneardc-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingshot%2Fneardc-gateway/lists"}