{"id":23010023,"url":"https://github.com/dmdhrumilmistry/gofilecheck","last_synced_at":"2025-08-22T13:47:23.795Z","repository":{"id":244649902,"uuid":"815670703","full_name":"dmdhrumilmistry/gofilecheck","owner":"dmdhrumilmistry","description":"API for detecting file type using magic bytes","archived":false,"fork":false,"pushed_at":"2025-03-15T09:03:00.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T05:42:21.136Z","etag":null,"topics":["file-validation","go","golang","microservice"],"latest_commit_sha":null,"homepage":"","language":"Go","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/dmdhrumilmistry.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-15T19:33:42.000Z","updated_at":"2025-03-15T09:03:02.000Z","dependencies_parsed_at":"2024-06-16T12:32:07.853Z","dependency_job_id":"503bf6ad-4910-4a0f-bf76-902339e829a5","html_url":"https://github.com/dmdhrumilmistry/gofilecheck","commit_stats":null,"previous_names":["dmdhrumilmistry/gofilecheck"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmdhrumilmistry%2Fgofilecheck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmdhrumilmistry%2Fgofilecheck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmdhrumilmistry%2Fgofilecheck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmdhrumilmistry%2Fgofilecheck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmdhrumilmistry","download_url":"https://codeload.github.com/dmdhrumilmistry/gofilecheck/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246847137,"owners_count":20843444,"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":["file-validation","go","golang","microservice"],"created_at":"2024-12-15T09:16:44.733Z","updated_at":"2025-04-02T16:15:05.389Z","avatar_url":"https://github.com/dmdhrumilmistry.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoFileCheck\n\nMicroservice written in GoLang for checking file types using magic bytes\n\n## Installation\n\n### Using GoBinaries\n\n* Install using gobinaries\n\n```bash\ncurl -sf https://gobinaries.com/dmdhrumilmistry/gofilecheck | sh\n```\n\n* Start API\n\n```bash\ngofilecheck\n```\n\n### Using Golang and Github\n\n* Get and build project\n\n```bash\ngo install github.com/dmdhrumilmistry/gofilecheck/cmd/gofilecheck@latest\n```\n\n* Start API\n\n```bash\ngofilecheck\n```\n\n### Using Docker\n\n* Download docker file and start containers\n\n```bash\ndocker compose up -d\n```\n\n\n## Usage\n\n* Send file to API\n\n```bash\ncurl --location 'http://localhost:3000/api/check' \\\n--form 'file=@\"/path/to/png/file.png\"'\n```\n\nResponse\n```json\n{\n    \"extension\": \".png\",\n    \"filename\": \"gofilecheck.png\",\n    \"size\": 315659,\n    \"type\": \"image/png\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmdhrumilmistry%2Fgofilecheck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmdhrumilmistry%2Fgofilecheck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmdhrumilmistry%2Fgofilecheck/lists"}