{"id":13481356,"url":"https://github.com/tkh44/holen","last_synced_at":"2025-10-11T19:16:26.393Z","repository":{"id":66133972,"uuid":"90181922","full_name":"tkh44/holen","owner":"tkh44","description":"Declarative fetch for React","archived":false,"fork":false,"pushed_at":"2019-01-21T20:53:52.000Z","size":36,"stargazers_count":150,"open_issues_count":13,"forks_count":16,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-12T21:45:11.671Z","etag":null,"topics":["declarative","fetch","react","react-fetch","request","response"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/tkh44.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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}},"created_at":"2017-05-03T18:42:00.000Z","updated_at":"2023-04-05T21:49:38.000Z","dependencies_parsed_at":"2024-01-27T23:44:34.112Z","dependency_job_id":"0a9fddf7-b007-4238-881b-d9e592466e29","html_url":"https://github.com/tkh44/holen","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/tkh44/holen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkh44%2Fholen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkh44%2Fholen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkh44%2Fholen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkh44%2Fholen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tkh44","download_url":"https://codeload.github.com/tkh44/holen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkh44%2Fholen/sbom","scorecard":{"id":888909,"data":{"date":"2025-08-11","repo":{"name":"github.com/tkh44/holen","commit":"6f70f1bc1ebae96b6886184a52b6a502ed096de1"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"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":"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":"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":"Code-Review","score":4,"reason":"Found 9/20 approved changesets -- score normalized to 4","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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"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"}},{"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 19 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"}}]},"last_synced_at":"2025-08-24T11:01:22.909Z","repository_id":66133972,"created_at":"2025-08-24T11:01:22.909Z","updated_at":"2025-08-24T11:01:22.909Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008460,"owners_count":26084460,"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-10-11T02:00:06.511Z","response_time":55,"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":["declarative","fetch","react","react-fetch","request","response"],"created_at":"2024-07-31T17:00:51.136Z","updated_at":"2025-10-11T19:16:26.375Z","avatar_url":"https://github.com/tkh44.png","language":"JavaScript","readme":"\n\n# Holen\nDeclarative fetch in React\n\n[![npm version](https://badge.fury.io/js/holen.svg)](https://badge.fury.io/js/holen)\n[![Build Status](https://travis-ci.org/tkh44/holen.svg?branch=master)](https://travis-ci.org/tkh44/holen)\n[![codecov](https://codecov.io/gh/tkh44/holen/branch/master/graph/badge.svg)](https://codecov.io/gh/tkh44/holen)\n\n-   [Install](#install)\n-   [Basic Usage](#basic-usage)\n\n## Install\n\n```bash\nnpm install -S holen\n```\n\n## Basic Usage\n```jsx\n// Fetch on mount\n\u003cHolen url=\"api.startup.com/users\"\u003e\n  {({data}) =\u003e \u003cpre\u003e{JSON.stringify(data, null, 2)}\u003c/pre\u003e}\n\u003c/Holen\u003e\n\n// Lazy fetch\n\u003cHolen lazy onResponse={handleResponse} url=\"api.startup.com/users\"\u003e\n  {({fetching, data, fetch, error}) =\u003e (\n    \u003cdiv\u003e\n      \u003cbutton onClick={fetch}\u003eLoad Data\u003c/button\u003e\n      \u003cpre\u003e{JSON.stringify(data, null, 2)}\u003c/pre\u003e\n    \u003c/div\u003e\n  )}\n\u003c/Holen\u003e\n```\n\n## Props\n\n**body** `any`\n\n```jsx\n\u003cHolen\n  body={JSON.stringify({ message: 'hello' })}\n  method=\"POST\"\n  url=\"api.startup.com/users\"\n\u003e\n  {({data}) =\u003e \u003cpre\u003e{JSON.stringify(data, null, 2)}\u003c/pre\u003e}\n\u003c/Holen\u003e\n```\n\n*[MDN - Body](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#Body)*\n\n**children** `function`\n\nChildren is a function that receives an object as its only argument.\n\nThe object contains the following keys:\n\n- fetching: `bool`\n- response: `object`\n- data: `object`\n- error: `object`\n- fetch: `function`\n\n```jsx\n\u003cHolen url=\"api.startup.com/users\"\u003e\n  {({data}) =\u003e \u003cdiv\u003e{data.name}\u003c/div\u003e}\n\u003c/Holen\u003e\n```\n\n**credentials** `string`\n\n*[MDN - Credentials](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#Sending_a_request_with_credentials_included)*\n\n**headers** `string`\n\n*[MDN - Headers](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#Headers)*\n\n**lazy** `boolean`\n\nIf true then the component will **not** perform the fetch on mount.\nYou must use the `fetch` named argument in order to initiate the request.\n\n```jsx\n\u003cHolen lazy url=\"api.startup.com/users\"\u003e\n  {({fetching}) =\u003e {fetching \u0026\u0026 \u003cdiv\u003eLoading\u003c/div\u003e}} // renders nothing, fetch was not started\n\u003c/Holen\u003e\n```\n\n**method** `string` - *default `GET`*\n\n*[MDN - Method](https://developer.mozilla.org/en-US/docs/Web/API/Request/method)*\n\n**onResponse** `function`\n\ncallback called on the response.\n\n```jsx\nconst handleResponse = (error, response) =\u003e {\n  if (error || !response.ok) {\n    panic()\n  }\n\n  cheer()\n}\n\n\u003cHolen\n  lazy\n  onResponse={handleResponse}\n  url=\"api.startup.com/users\"\u003e\n  {({ data, fetch }) =\u003e (\n    \u003cdiv\u003e\n      \u003cbutton onClick={fetch}\u003eLoad Data\u003c/button\u003e\n      \u003cpre\u003e{JSON.stringify(data, null , 2)}\u003c/pre\u003e\n    \u003c/div\u003e\n  )}\n\u003c/Holen\u003e\n```\n\n**transformResponse** `function` - *default `data =\u003e data`*\n\nThe `transformResponse` prop is a function that can be used to massage the response data. It receives one argument, `data`, and by default, performs an identity operation, returning the data passed to it.\n\n**type** `string` - *default `json`*\n\nThe [body method](https://developer.mozilla.org/en-US/docs/Web/API/Body) applied to\nthe response. One of `json`, `text`, `blob`, `arrayBuffer` or `formData`.\n\n**url** `string`\n\nurl of the request.\n","funding_links":[],"categories":["Uncategorized","Components"],"sub_categories":["Uncategorized","Data"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkh44%2Fholen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftkh44%2Fholen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkh44%2Fholen/lists"}