{"id":20530458,"url":"https://github.com/tahmidefaz/snapfile","last_synced_at":"2026-05-08T08:34:54.065Z","repository":{"id":105009299,"uuid":"293364275","full_name":"tahmidefaz/snapfile","owner":"tahmidefaz","description":"Snapfile is a REST file upload/download service that allows users to download files for a specific amount of time. Written in Go.","archived":false,"fork":false,"pushed_at":"2020-09-07T00:17:26.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-16T12:35:48.467Z","etag":null,"topics":["docker-compose","filestore","go","golang","rest-api","upload-download"],"latest_commit_sha":null,"homepage":"","language":"Go","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/tahmidefaz.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":"2020-09-06T21:27:06.000Z","updated_at":"2020-09-07T00:17:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"8d2e7869-ddf9-4ff5-94fe-65bc1ec11e6a","html_url":"https://github.com/tahmidefaz/snapfile","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/tahmidefaz%2Fsnapfile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tahmidefaz%2Fsnapfile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tahmidefaz%2Fsnapfile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tahmidefaz%2Fsnapfile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tahmidefaz","download_url":"https://codeload.github.com/tahmidefaz/snapfile/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242135220,"owners_count":20077414,"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":["docker-compose","filestore","go","golang","rest-api","upload-download"],"created_at":"2024-11-15T23:38:33.410Z","updated_at":"2026-05-08T08:34:49.013Z","avatar_url":"https://github.com/tahmidefaz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Snapfile\nSnapfile is a REST file upload/download service that allows users to download files for a specific amount of time. The file is deleted once\nthe predermined download quota is met. Written in Go. The frontend is under development.\n\n### Setup Instructions\n1. Though it is optional, you should install docker and docker-compose. It helps with obtaining a PostgreSQL instance.\n2. Run `make setup` to install go dependencies.\n3. If you have docker/docker-compose installed, run `make up_db` to spin up the Postgres instance.\n4. Go to the `Makefile` and verify your DB credentials under `run`.\n5. Finally, run `make run` to start the service. The server listens and serves on port `3000` by default.\n\n### API Interface\nThe API provides the following end points:\nEndpoint|Method(s)|Instructions\n--------|---------|------------\n/v1/upload|`POST`|required `form-data`: `file` and `max_downloads`. optional: `preferred_url`. See below.\n/v1/download/:url|`GET`|`url` will be provided to you when you upload a file.\n/v1/ping|`GET`|simple api health check\n\n#### form-data for the upload endpoint\nIn order to upload a file to the API, you need to provide the following `form-data` in the body of your `POST` request.\nform-data key|Reuired/Optional|Explanation\n-------------|----------------|-----------\n`file`|Required|The file you want to upload.\n`max_downloads`|Required|The number of times you want users to download the file before it gets deleted.\n`preferred_url`|Optional|Your url preference. If a preferred url is not provided or is not available, an UUID is generated.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftahmidefaz%2Fsnapfile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftahmidefaz%2Fsnapfile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftahmidefaz%2Fsnapfile/lists"}