{"id":15427774,"url":"https://github.com/codingshot/bos-genadropv2","last_synced_at":"2025-08-19T19:18:51.704Z","repository":{"id":236623106,"uuid":"671219978","full_name":"codingshot/bos-genadropv2","owner":"codingshot","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-26T20:23:08.000Z","size":303,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-02T05:44:56.781Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://bos-genadropv2.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-07-26T20:23:03.000Z","updated_at":"2023-07-26T20:30:44.000Z","dependencies_parsed_at":"2024-04-28T04:22:23.745Z","dependency_job_id":"e31bb142-f4dc-435b-9e27-a5ded7ee5f13","html_url":"https://github.com/codingshot/bos-genadropv2","commit_stats":null,"previous_names":["codingshot/bos-genadropv2"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingshot%2Fbos-genadropv2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingshot%2Fbos-genadropv2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingshot%2Fbos-genadropv2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingshot%2Fbos-genadropv2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codingshot","download_url":"https://codeload.github.com/codingshot/bos-genadropv2/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:27.403Z","updated_at":"2025-03-28T05:14:01.254Z","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%2Fbos-genadropv2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodingshot%2Fbos-genadropv2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingshot%2Fbos-genadropv2/lists"}