{"id":23222990,"url":"https://github.com/dckt/remote-downloader","last_synced_at":"2025-04-05T16:29:42.296Z","repository":{"id":39495752,"uuid":"126523211","full_name":"DCKT/remote-downloader","owner":"DCKT","description":"Download files from anywhere 😎","archived":false,"fork":false,"pushed_at":"2023-01-04T01:21:55.000Z","size":4945,"stargazers_count":2,"open_issues_count":38,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-11T13:27:49.247Z","etag":null,"topics":["download","firebase","reasonml"],"latest_commit_sha":null,"homepage":null,"language":"Reason","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/DCKT.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":"2018-03-23T18:14:12.000Z","updated_at":"2020-01-08T14:04:29.000Z","dependencies_parsed_at":"2023-02-01T17:31:40.687Z","dependency_job_id":null,"html_url":"https://github.com/DCKT/remote-downloader","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/DCKT%2Fremote-downloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DCKT%2Fremote-downloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DCKT%2Fremote-downloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DCKT%2Fremote-downloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DCKT","download_url":"https://codeload.github.com/DCKT/remote-downloader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247365051,"owners_count":20927254,"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":["download","firebase","reasonml"],"created_at":"2024-12-18T23:15:39.505Z","updated_at":"2025-04-05T16:29:42.266Z","avatar_url":"https://github.com/DCKT.png","language":"Reason","funding_links":[],"categories":[],"sub_categories":[],"readme":"# REMOTE DOWNLOADER\n\nDownload files from anywhere 😎\n\n## Setup\nThere is a `README` for each project, take a look !\n\n## How it works\n\nThis project uses Firebase to avoid database, hosting and some painful server management.\n\nThis project is split into 2 projects :\n\n* **server** : listen Firebase Database update and trigger actionn\n* **client** : web interface to add and remove database elements\n\n### Lifecycle\n\n1.  The client create a new **file ref** with some params\n\n```\n{\n    \"id\": \u003cidVar\u003e,\n    \"url\": \u003curlVar\u003e,\n    \"extract\": \u003cextractVar\u003e,\n    \"progress\": 0,\n    \"size\": 0,\n    \"status\": \"waiting\"\n}\n```\n\n2.  The server listen the `child_added` event and will trigger the download if the `status` of the added file is `waiting`.\n\n3.  On the `request` stream event :\n\n    * Update the `size` data (total size of the file in octet).\n    * Change the `status` to `pending`.\n    * Add the `filename`\n\n4.  On each `data` stream event, we update the download `progress` (in octet).\n    Note : Obviously, there is a `throttle` bound to the event to avoid data consumption.\n\n5.  On `end` stream event :\n\n    * Change the `status` to `completed`\n\n6.  When the download is finished, we update the `filepath`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdckt%2Fremote-downloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdckt%2Fremote-downloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdckt%2Fremote-downloader/lists"}