{"id":23334079,"url":"https://github.com/afeiship/go-tinypng","last_synced_at":"2026-01-20T19:32:15.172Z","repository":{"id":57122705,"uuid":"231914944","full_name":"afeiship/go-tinypng","owner":"afeiship","description":"Tinypng sdk for golang.","archived":false,"fork":false,"pushed_at":"2025-12-13T15:02:03.000Z","size":92,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-19T17:11:49.831Z","etag":null,"topics":["api-key","compress","file","go-tinypng","golang","image","imagemin","sdk","tinypng"],"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/afeiship.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-01-05T12:35:56.000Z","updated_at":"2025-12-13T15:03:04.000Z","dependencies_parsed_at":"2024-12-08T01:33:08.369Z","dependency_job_id":null,"html_url":"https://github.com/afeiship/go-tinypng","commit_stats":null,"previous_names":["afeiship/next-cookie-fetch","afeiship/go-tinypng"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/afeiship/go-tinypng","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fgo-tinypng","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fgo-tinypng/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fgo-tinypng/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fgo-tinypng/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/go-tinypng/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fgo-tinypng/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28610608,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T18:56:40.769Z","status":"ssl_error","status_checked_at":"2026-01-20T18:54:26.653Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["api-key","compress","file","go-tinypng","golang","image","imagemin","sdk","tinypng"],"created_at":"2024-12-21T00:42:06.516Z","updated_at":"2026-01-20T19:32:15.152Z","avatar_url":"https://github.com/afeiship.png","language":"Go","readme":"# go-tinypng\n\u003e Tinypng sdk for golang.\n\n## installation\n```sh\ngo get -u github.com/afeiship/go-tinypng\n```\n\n## usage\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"os\"\n\n\t\"github.com/afeiship/go-tinypng\"\n)\n\nvar apiKey = os.Getenv(\"TINYPNG_API_KEY\")\nvar client = tinypng.New(apiKey)\n\nfunc main() {\n\t// compress image from file\n\tresult1, err := client.CompressFromFile(\"image.png\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tfmt.Println(result1)\n\n\t// compress image from url\n\tresult2, err := client.CompressFromURL(\"https://example.com/image.png\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tfmt.Println(result2)\n}\n```\n\n## resources\n- https://tinypng.com/developers/reference","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fgo-tinypng","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Fgo-tinypng","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fgo-tinypng/lists"}