{"id":17823023,"url":"https://github.com/kickeddroid/kronos-dart","last_synced_at":"2025-04-02T10:29:29.894Z","repository":{"id":114188890,"uuid":"302760831","full_name":"KickedDroid/kronos-dart","owner":"KickedDroid","description":null,"archived":false,"fork":false,"pushed_at":"2020-10-24T00:16:34.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T01:34:59.438Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KickedDroid.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-10-09T21:53:22.000Z","updated_at":"2021-01-19T20:20:26.000Z","dependencies_parsed_at":"2024-05-17T05:44:02.481Z","dependency_job_id":null,"html_url":"https://github.com/KickedDroid/kronos-dart","commit_stats":null,"previous_names":["kickeddroid/kronos-dart"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KickedDroid%2Fkronos-dart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KickedDroid%2Fkronos-dart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KickedDroid%2Fkronos-dart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KickedDroid%2Fkronos-dart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KickedDroid","download_url":"https://codeload.github.com/KickedDroid/kronos-dart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246796404,"owners_count":20835383,"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-27T17:50:31.213Z","updated_at":"2025-04-02T10:29:29.866Z","avatar_url":"https://github.com/KickedDroid.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kronos-dart\n\n## Usage\n\n### Get Dag\n```Dart\nfinal cli = NodeClient();\n    var result = await cli\n        .getDag('bafkreib2wkausqyegptb7m7vhegd3oiqdzhwnhb7xxkipqifi3623u7feq');\n    await cli\n        .getDag('bafkreib2wkausqyegptb7m7vhegd3oiqdzhwnhb7xxkipqifi3623u7feq')\n        .then((value) =\u003e print(String.fromCharCodes(value.rawData)));\n    print(String.fromCharCodes(result.rawData));\n```\n### Dag Put\n```Dart\nfinal cli = NodeClient();\n    String string = 'Hello from Dart!';\n    List\u003cint\u003e bytes = utf8.encode(string);\n    await cli.putDag(bytes).then((res) async {\n      print('Put req');\n      print(res.hashes);\n      var cid = res.hashes.first;\n      await cli.getDag(cid).then((value) {\n        print(\"Get req\");\n        print(String.fromCharCodes(value.rawData));\n      });\n    });\n```\n\n### Get Peers\n```Dart\nfinal cli = NodeClient();\n    var result = await cli.getPeers();\n    result.forEach((peerId) {\n      print(peerId);\n    });\n```\n\n\n\n### Status\n```Dart\nfinal cli = StatusClient();\n    var result = await cli.getStatus();\n    print(result);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkickeddroid%2Fkronos-dart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkickeddroid%2Fkronos-dart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkickeddroid%2Fkronos-dart/lists"}