{"id":21841036,"url":"https://github.com/redsolver/social-dac-library","last_synced_at":"2025-03-21T15:42:47.835Z","repository":{"id":57364968,"uuid":"363726770","full_name":"redsolver/social-dac-library","owner":"redsolver","description":null,"archived":false,"fork":false,"pushed_at":"2021-05-09T14:57:12.000Z","size":171,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-18T13:58:21.487Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redsolver.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}},"created_at":"2021-05-02T18:53:02.000Z","updated_at":"2024-04-24T09:01:29.000Z","dependencies_parsed_at":"2022-09-13T21:11:56.504Z","dependency_job_id":null,"html_url":"https://github.com/redsolver/social-dac-library","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/redsolver%2Fsocial-dac-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redsolver%2Fsocial-dac-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redsolver%2Fsocial-dac-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redsolver%2Fsocial-dac-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redsolver","download_url":"https://codeload.github.com/redsolver/social-dac-library/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244823783,"owners_count":20516353,"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-11-27T21:28:53.260Z","updated_at":"2025-03-21T15:42:47.806Z","avatar_url":"https://github.com/redsolver.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Social DAC for MySky\n\nForked from `feed-dac-library`.\n\nThis DAC uses the https://github.com/SkynetHQ/skystandards data structures\n\n## Usage\n\nUsing the library is very straightforward. In this section we'll show an example\nof how a skapp could use the content record library and record user interactions.\n\nTODO Update example\n\n```typescript\nimport { SkynetClient } from \"skynet-js\";\nimport { SocialDAC } from \"social-dac-library\";\n\n(async () =\u003e {\n  // create client\n  const client = new SkynetClient();\n\n  // create Social DAC\n  const socialDAC = new SocialDAC();\n\n  // load mysky\n  const mySky = await client.loadMySky(\"exampleskapp.hns\");\n\n  // load DACs\n  await mySky.loadDacs(socialDAC);\n\n  // check login\n  const isLoggedIn = await mySky.checkLogin();\n  if (!isLoggedIn) {\n    // request login access\n  }\n\n  // Follow a user\n\n  const res = await socialDAC.follow(\"USERIDUSERIDUSERIDUSERIDUSERIDUSERID\")\n  console.log(`Success: ${res.success}`);\n  console.log(`Error (if unsuccessful): ${res.error}`);\n\n  // Get the list of users a user is following\n  const followingList = await socialDAC.getFollowingForUser(\"USERIDUSERIDUSERIDUSERIDUSERIDUSERID\")\n  console.log(followingList);\n})();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredsolver%2Fsocial-dac-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredsolver%2Fsocial-dac-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredsolver%2Fsocial-dac-library/lists"}