{"id":16694438,"url":"https://github.com/foxfriends/openfetch","last_synced_at":"2026-04-27T18:34:55.085Z","repository":{"id":42617670,"uuid":"349907093","full_name":"foxfriends/openfetch","owner":"foxfriends","description":"Fetch-like OpenAPI client library","archived":false,"fork":false,"pushed_at":"2026-02-14T15:25:55.000Z","size":257,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-14T23:38:16.798Z","etag":null,"topics":["fetch-api","openapi","openapi3","swagger"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/foxfriends.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":"2021-03-21T05:20:39.000Z","updated_at":"2026-02-14T15:25:57.000Z","dependencies_parsed_at":"2024-06-17T14:52:45.384Z","dependency_job_id":"5124d17c-2eda-41ec-af5f-6a31e3eb0354","html_url":"https://github.com/foxfriends/openfetch","commit_stats":{"total_commits":36,"total_committers":3,"mean_commits":12.0,"dds":"0.16666666666666663","last_synced_commit":"31baafd561fe10df1a0c52529f40e4c131fd9d74"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/foxfriends/openfetch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxfriends%2Fopenfetch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxfriends%2Fopenfetch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxfriends%2Fopenfetch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxfriends%2Fopenfetch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foxfriends","download_url":"https://codeload.github.com/foxfriends/openfetch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxfriends%2Fopenfetch/sbom","scorecard":{"id":408142,"data":{"date":"2025-08-11","repo":{"name":"github.com/foxfriends/openfetch","commit":"439d1cce5b9162a3a4a2d0a7a0d063346dabf271"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yaml: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":"Code-Review","score":0,"reason":"Found 0/12 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":"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":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/foxfriends/openfetch/ci.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/foxfriends/openfetch/ci.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/foxfriends/openfetch/ci.yaml/main?enable=pin","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand 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":"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":"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 18 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw"],"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-18T21:55:27.103Z","repository_id":42617670,"created_at":"2025-08-18T21:55:27.104Z","updated_at":"2025-08-18T21:55:27.104Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32349858,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T17:12:42.749Z","status":"ssl_error","status_checked_at":"2026-04-27T17:12:41.658Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["fetch-api","openapi","openapi3","swagger"],"created_at":"2024-10-12T16:45:52.948Z","updated_at":"2026-04-27T18:34:55.069Z","avatar_url":"https://github.com/foxfriends.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenFetch\n\n[![ci](https://github.com/foxfriends/openfetch/actions/workflows/ci.yaml/badge.svg)](https://github.com/foxfriends/openfetch/actions/workflows/ci.yaml)\n\nFetch-like OpenAPI client library. Supports [OpenAPI 3](https://swagger.io/specification/) only.\n\nInstall from NPM: `npm install openfetch`\n\n## Usage\n\n```js\nimport * as openfetch from 'openfetch';\n\n// Build an API based on the spec. Shown below are the default options:\nconst api = openfetch.create(SPEC, {\n  // The base URL from which to make requests.\n  url,\n  // Enable logging. Validation errors will be logged to the console.\n  logging: false,\n  // The console, providing the log methods (only `warn` is used).\n  console: window.console,\n  // The default implementation of fetch to use for making requests.\n  fetch: window.fetch,\n});\n\n// If your spec is hosted, it can be retrieved automatically.\nconst api = await openfetch.hosted('http://example.com', {\n  // ... same opts as above\n});\n\n// Create an invocation context with credentials and such. The keys of the credentials\n// object are names of security schemes, and the values are their values...\n// *   HTTP Basic Auth expects the value to be `{ user, pass }`\n// *   HTTP Bearer Auth expects the value to be just the token (i.e. not including the \"Bearer\" prefix)\n// *   Other HTTP auth expects the full header value (i.e. including the scheme name)\n// *   OAuth2 will pass the token via Autorization header\nconst invoke = openfetch.client({\n  // Override the base URL from which to make requests\n  url,\n  // Override the implementation of `fetch` again. This value takes precedence over the one\n  // passed to `create`, if both were provided.\n  fetch,\n  // The credentials to use to satisfy security requirements\n  credentials: {},\n});\n\n// Invoke an operation by `operationId` (here: `getUser`):\n// *   Parameter are supplied by name\n// *   Options are the same as fetch, with a few being supplied automatically:\n//     *   `Content-Type` will be determined automatically if the spec only defines one request body\n//         type, otherwise it must be supplied via `headers`.\n//     *   If `Content-Type` is JSON, `body` will be passed through `JSON.stringify`.\n//         No processing will be done to any other bodies.\n//     *   The `Authorization` header will be set automatically based on the security requirements.\n//     *   Set the `Accept` header manually to specify which response format to receive.\nconst response = await invoke(api.getUser({ id: 'foxfriends' }, { headers, body }));\n\n// The response is whatever is returned by the provided implementation of `fetch`. Refer to the\n// relevant documentation on how to handle that response. In particular:\n// *   The response body is not interpreted at all (e.g. JSON is not parsed automatically)\n// *   The response status is not interpreted at all (e.g. 4XX/5XX reponses do not throw)\nconsole.assert(response instanceof Response)\n```\n\nPoints to note:\n*   This package assumes your OpenAPI spec is valid/correct, and that you are (for the most part)\n    calling it with sensible values. Undefined behaviour will occur if you deviate from spec.\n*   The `servers` field of the spec is ignored. Provide a correct `url` on your own.\n*   There is currently no support for any extensions, but to be able to implement those as plugins\n    is something that is being considered.\n\n## Testing\n\nSo far... very little testing has been done. Just a bit of manual stuff. Trust this project at your\nown risk for now, until I feel like writing a proper test suite.\n\n## Contributing\n\nContributions are welcome! Please send a PR or create issues if you would like something improved.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxfriends%2Fopenfetch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoxfriends%2Fopenfetch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxfriends%2Fopenfetch/lists"}