{"id":22209721,"url":"https://github.com/alexfreska/elixir_skynet","last_synced_at":"2025-04-15T18:42:54.673Z","repository":{"id":57548903,"uuid":"241214694","full_name":"alexfreska/elixir_skynet","owner":"alexfreska","description":"Elixir client for uploading and downloading files from Sia Skynet","archived":false,"fork":false,"pushed_at":"2020-02-24T15:14:01.000Z","size":537,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-27T10:21:06.297Z","etag":null,"topics":["cdn","data","elixir","sia","sia-skynet","skynet","storage"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/alexfreska.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":"2020-02-17T21:47:25.000Z","updated_at":"2020-02-24T15:14:03.000Z","dependencies_parsed_at":"2022-08-28T11:31:37.785Z","dependency_job_id":null,"html_url":"https://github.com/alexfreska/elixir_skynet","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/alexfreska%2Felixir_skynet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexfreska%2Felixir_skynet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexfreska%2Felixir_skynet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexfreska%2Felixir_skynet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexfreska","download_url":"https://codeload.github.com/alexfreska/elixir_skynet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249131321,"owners_count":21217723,"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":["cdn","data","elixir","sia","sia-skynet","skynet","storage"],"created_at":"2024-12-02T20:00:03.185Z","updated_at":"2025-04-15T18:42:54.652Z","avatar_url":"https://github.com/alexfreska.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://siasky.net\"\u003e\u003cimg src=\"https://github.com/alexfreska/elixir_skynet/blob/master/assets/elixir.png\" alt=\"Elixir\" width=\"70\" /\u003e\u003cimg src=\"https://github.com/alexfreska/elixir_skynet/blob/master/assets/skynet.svg\" alt=\"Skynet\" width=\"200\" /\u003e\u003c/a\u003e\n\nUnofficial Elixir client for uploading and downloading files from \u003ca href=\"https://sia.tech/\"\u003eSia\u003c/a\u003e \u003ca href=\"https://siasky.net/\"\u003eSkynet\u003c/a\u003e.\n\n\n## Installation\nThe package can be installed by adding `skynet` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:skynet, \"~\u003e 0.1.6\"}\n  ]\nend\n```\n\n## Usage\n```elixir\n# Download a file using its Skylink\niex\u003e Skynet.download(\"AADOl5bb0oXpmIWOK115bctmbV9Jogl-FcyMmIzb5MV1ZA\")\n{:ok,\n  %{\n    file: \u003c\u003c79, 103, 103, 83, 0, 2, 0, 0, 0, ...\u003e\u003e,\n    filename: \"Bach_Fugue_in_A-minor_BMW_543.opus\"\n  }\n}\n\n# Upload a file by providing its path\niex\u003e Skynet.upload(\"path/to/file.jpeg\")\n{:ok,\n  %{\n    skylink: \"AACEIgsvJKk7yY2y9Z-dXTh5niUAKwO_jH4LpbLiaw5X1g\",\n    # In addition to the Skylink, the merkleroot and bitfield are also returned for convenience\n    merkleroot: \"84220b2f24a93bc98db2f59f9d5d38799e25002b03bf8c7e0ba5b2e26b0e57d6\",\n    bitfield: 0\n  }\n}\n\n# Configure options, like the target portal URL\niex\u003e Skynet.upload(\"path/to/file.jpeg\", portal_url: \"https://skydrain.com\")\n{:ok,\n  %{\n    skylink: \"AACEIgsvJKk7yY2y9Z-dXTh5niUAKwO_jH4LpbLiaw5X1g\",\n    merkleroot: \"84220b2f24a93bc98db2f59f9d5d38799e25002b03bf8c7e0ba5b2e26b0e57d6\",\n    bitfield: 0\n  }\n}\n```\n\n\nThe documentation can be found at [https://hexdocs.pm/skynet](https://hexdocs.pm/skynet).\n\n## Remarks\n\u003ca href=\"https://sia/tech\"\u003e\u003cimg src=\"https://github.com/alexfreska/elixir_skynet/blob/master/assets/built-with-sia.svg\" alt=\"Built with Sia\" width=\"80\" /\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexfreska%2Felixir_skynet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexfreska%2Felixir_skynet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexfreska%2Felixir_skynet/lists"}