{"id":20279189,"url":"https://github.com/peterhellberg/swapi","last_synced_at":"2025-08-30T05:12:14.955Z","repository":{"id":24929156,"uuid":"28346346","full_name":"peterhellberg/swapi","owner":"peterhellberg","description":"A SWAPI client written in Go","archived":false,"fork":false,"pushed_at":"2023-02-22T13:44:02.000Z","size":33,"stargazers_count":32,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-14T14:02:25.112Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://swapi.dev","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/peterhellberg.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":"2014-12-22T16:10:44.000Z","updated_at":"2025-03-15T13:22:15.000Z","dependencies_parsed_at":"2024-06-18T22:45:58.063Z","dependency_job_id":"61cc6a93-37c5-4b13-8578-243f4c3240e6","html_url":"https://github.com/peterhellberg/swapi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/peterhellberg/swapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterhellberg%2Fswapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterhellberg%2Fswapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterhellberg%2Fswapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterhellberg%2Fswapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterhellberg","download_url":"https://codeload.github.com/peterhellberg/swapi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterhellberg%2Fswapi/sbom","scorecard":{"id":728902,"data":{"date":"2025-08-11","repo":{"name":"github.com/peterhellberg/swapi","commit":"c0bd79f5129cfe18779c91e6c7abfb295b8be8a5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/25 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/peterhellberg/swapi/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/peterhellberg/swapi/test.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T13:48:58.666Z","repository_id":24929156,"created_at":"2025-08-22T13:48:58.666Z","updated_at":"2025-08-22T13:48:58.666Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272805572,"owners_count":24995916,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-14T13:28:47.318Z","updated_at":"2025-08-30T05:12:14.918Z","avatar_url":"https://github.com/peterhellberg.png","language":"Go","readme":"A [SWAPI](http://swapi.dev) client written in Go\n================================================\n\n[![Build status](https://github.com/peterhellberg/swapi/actions/workflows/test.yml/badge.svg)](https://github.com/peterhellberg/swapi/actions/workflows/test.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/peterhellberg/swapi)](https://goreportcard.com/report/github.com/peterhellberg/swapi)\n[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/peterhellberg/swapi)\n[![License MIT](https://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat)](https://github.com/peterhellberg/swapi#license-mit)\n\n## Installation\n\n```bash\ngo get -u github.com/peterhellberg/swapi\n```\n\n## Examples\n\n### atst.go\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/peterhellberg/swapi\"\n)\n\nfunc main() {\n\tc := swapi.DefaultClient\n\n\tif atst, err := c.Vehicle(context.Background(), 19); err == nil {\n\t\tfmt.Println(\"name: \", atst.Name)\n\t\tfmt.Println(\"model:\", atst.Model)\n\t}\n}\n```\n\n## Command line tool\n\n### Installation\n\n```bash\ngo install github.com/peterhellberg/swapi/cmd/swapi@latest\n```\n\n### Usage\n\n```bash\nCommands:\n\tfilm     [id]\n\tperson   [id]\n\tplanet   [id]\n\tspecies  [id]\n\tstarship [id]\n\tvehicle  [id]\n\tfilms\n\tpeople\n\tplanets\n\tfilms\n\tspecies\n\tvehicles\n\tstarships\n```\n\n```json\n$ swapi planet 1\n{\n  \"name\": \"Tatooine\",\n  \"rotation_period\": \"23\",\n  \"orbital_period\": \"304\",\n  \"diameter\": \"10465\",\n  \"climate\": \"arid\",\n  \"gravity\": \"1 standard\",\n  \"terrain\": \"desert\",\n  \"surface_water\": \"1\",\n  \"population\": \"200000\",\n  \"residents\": [\n    \"http://swapi.dev/api/people/1/\",\n    \"http://swapi.dev/api/people/2/\",\n    \"http://swapi.dev/api/people/4/\",\n    \"http://swapi.dev/api/people/6/\",\n    \"http://swapi.dev/api/people/7/\",\n    \"http://swapi.dev/api/people/8/\",\n    \"http://swapi.dev/api/people/9/\",\n    \"http://swapi.dev/api/people/11/\",\n    \"http://swapi.dev/api/people/43/\",\n    \"http://swapi.dev/api/people/62/\"\n  ],\n  \"films\": [\n    \"http://swapi.dev/api/films/1/\",\n    \"http://swapi.dev/api/films/3/\",\n    \"http://swapi.dev/api/films/4/\",\n    \"http://swapi.dev/api/films/5/\",\n    \"http://swapi.dev/api/films/6/\"\n  ],\n  \"created\": \"2014-12-09T13:50:49.641000Z\",\n  \"edited\": \"2014-12-21T20:48:04.175778Z\",\n  \"url\": \"http://swapi.dev/api/planets/1/\"\n}\n```\n\n\u003cimg src=\"https://data.gopher.se/gopher/viking-gopher.svg\" align=\"right\" width=\"30%\" height=\"300\"\u003e\n\n## License (MIT)\n\nCopyright (c) 2014-2023 [Peter Hellberg](https://c7.se)\n\n\u003e Permission is hereby granted, free of charge, to any person obtaining\n\u003e a copy of this software and associated documentation files (the \"Software\"),\n\u003e to deal in the Software without restriction, including without limitation\n\u003e the rights to use, copy, modify, merge, publish, distribute, sublicense,\n\u003e and/or sell copies of the Software, and to permit persons to whom the\n\u003e Software is furnished to do so, subject to the following conditions:\n\u003e\n\u003e The above copyright notice and this permission notice shall be included\n\u003e in all copies or substantial portions of the Software.\n\u003e\n\u003e THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n\u003e EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\n\u003e OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n\u003e IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n\u003e DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n\u003e TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE\n\u003e OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterhellberg%2Fswapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterhellberg%2Fswapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterhellberg%2Fswapi/lists"}