{"id":1128677,"name":"@preact-hooks/instance","ecosystem":"npm","description":"A custom Preact Hook that provides a sensible alternative to useRef for storing instance variables.","homepage":"https://github.com/mihar-22/preact-hooks-instance#readme","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/mihar-22/preact-hooks-instance","keywords_array":["instance","preact-hooks","preact","hooks","use-ref"],"namespace":"preact-hooks","versions_count":7,"first_release_published_at":"2019-09-25T08:52:07.934Z","latest_release_published_at":"2019-10-02T11:01:24.184Z","latest_release_number":"1.0.6","last_synced_at":"2026-04-03T13:47:25.663Z","created_at":"2022-04-08T11:33:06.881Z","updated_at":"2026-04-03T13:47:25.931Z","registry_url":"https://www.npmjs.com/package/@preact-hooks/instance","install_command":"npm install @preact-hooks/instance","documentation_url":null,"metadata":{"funding":null,"dist-tags":{"latest":"1.0.6"}},"repo_metadata":{"id":57137955,"uuid":"210796959","full_name":"mihar-22/preact-hooks-instance","owner":"mihar-22","description":"A custom Preact Hook that provides a sensible alternative to useRef for storing instance variables.","archived":true,"fork":false,"pushed_at":"2020-07-13T23:59:37.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-04T18:40:13.538Z","etag":null,"topics":["hooks","preact","preact-hooks"],"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/mihar-22.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-25T08:42:40.000Z","updated_at":"2023-03-09T04:07:25.000Z","dependencies_parsed_at":"2022-08-22T20:50:25.666Z","dependency_job_id":null,"html_url":"https://github.com/mihar-22/preact-hooks-instance","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/mihar-22/preact-hooks-instance","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihar-22%2Fpreact-hooks-instance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihar-22%2Fpreact-hooks-instance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihar-22%2Fpreact-hooks-instance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihar-22%2Fpreact-hooks-instance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mihar-22","download_url":"https://codeload.github.com/mihar-22/preact-hooks-instance/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihar-22%2Fpreact-hooks-instance/sbom","scorecard":{"id":644592,"data":{"date":"2025-08-11","repo":{"name":"github.com/mihar-22/preact-hooks-instance","commit":"3d062e376c44722eacea21121be55fda74be859f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/23 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":"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":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"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":"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":"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":"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":"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":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":"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 '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 2 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-21T11:47:49.520Z","repository_id":57137955,"created_at":"2025-08-21T11:47:49.520Z","updated_at":"2025-08-21T11:47:49.520Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279718929,"owners_count":26215831,"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-19T02:00:07.647Z","response_time":64,"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"},"tags":[{"name":"v1.0.6","sha":"232e19bbec58d9d107d64125a4578221f5ef33d9","kind":"tag","published_at":"2019-10-02T11:01:11.000Z","download_url":"https://codeload.github.com/mihar-22/preact-hooks-instance/tar.gz/v1.0.6","html_url":"https://github.com/mihar-22/preact-hooks-instance/releases/tag/v1.0.6","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/mihar-22/preact-hooks-instance@v1.0.6","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihar-22%2Fpreact-hooks-instance/tags/v1.0.6","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihar-22%2Fpreact-hooks-instance/tags/v1.0.6/manifests"},{"name":"v1.0.5","sha":"deefae4f469bd482e3ae8b6fcabb43ef25ec5d50","kind":"tag","published_at":"2019-10-02T10:24:48.000Z","download_url":"https://codeload.github.com/mihar-22/preact-hooks-instance/tar.gz/v1.0.5","html_url":"https://github.com/mihar-22/preact-hooks-instance/releases/tag/v1.0.5","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/mihar-22/preact-hooks-instance@v1.0.5","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihar-22%2Fpreact-hooks-instance/tags/v1.0.5","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihar-22%2Fpreact-hooks-instance/tags/v1.0.5/manifests"},{"name":"v1.0.4","sha":"de03ef10e2b42a8bb6644c1af0ff65e24c0b590b","kind":"tag","published_at":"2019-10-02T09:11:18.000Z","download_url":"https://codeload.github.com/mihar-22/preact-hooks-instance/tar.gz/v1.0.4","html_url":"https://github.com/mihar-22/preact-hooks-instance/releases/tag/v1.0.4","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/mihar-22/preact-hooks-instance@v1.0.4","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihar-22%2Fpreact-hooks-instance/tags/v1.0.4","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihar-22%2Fpreact-hooks-instance/tags/v1.0.4/manifests"},{"name":"v1.0.3","sha":"b6695f0878febd4b71cf103834cb2414526f7c70","kind":"tag","published_at":"2019-10-02T06:09:09.000Z","download_url":"https://codeload.github.com/mihar-22/preact-hooks-instance/tar.gz/v1.0.3","html_url":"https://github.com/mihar-22/preact-hooks-instance/releases/tag/v1.0.3","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/mihar-22/preact-hooks-instance@v1.0.3","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihar-22%2Fpreact-hooks-instance/tags/v1.0.3","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihar-22%2Fpreact-hooks-instance/tags/v1.0.3/manifests"},{"name":"v1.0.2","sha":"8adc1a4cd323f747a601b9dacd32e19506ae0cc8","kind":"tag","published_at":"2019-09-30T01:38:28.000Z","download_url":"https://codeload.github.com/mihar-22/preact-hooks-instance/tar.gz/v1.0.2","html_url":"https://github.com/mihar-22/preact-hooks-instance/releases/tag/v1.0.2","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/mihar-22/preact-hooks-instance@v1.0.2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihar-22%2Fpreact-hooks-instance/tags/v1.0.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihar-22%2Fpreact-hooks-instance/tags/v1.0.2/manifests"},{"name":"v1.0.1","sha":"d0a8531da7d2d22b4e7b55dad37a066968a9056e","kind":"tag","published_at":"2019-09-27T04:51:36.000Z","download_url":"https://codeload.github.com/mihar-22/preact-hooks-instance/tar.gz/v1.0.1","html_url":"https://github.com/mihar-22/preact-hooks-instance/releases/tag/v1.0.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/mihar-22/preact-hooks-instance@v1.0.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihar-22%2Fpreact-hooks-instance/tags/v1.0.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihar-22%2Fpreact-hooks-instance/tags/v1.0.1/manifests"},{"name":"v1.0.0","sha":"20ed133f43dc8aea7df253cad6f4d23d89907469","kind":"tag","published_at":"2019-09-25T08:51:33.000Z","download_url":"https://codeload.github.com/mihar-22/preact-hooks-instance/tar.gz/v1.0.0","html_url":"https://github.com/mihar-22/preact-hooks-instance/releases/tag/v1.0.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/mihar-22/preact-hooks-instance@v1.0.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihar-22%2Fpreact-hooks-instance/tags/v1.0.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihar-22%2Fpreact-hooks-instance/tags/v1.0.0/manifests"}]},"repo_metadata_updated_at":"2026-04-03T13:47:25.910Z","dependent_packages_count":1,"downloads":14,"downloads_period":"last-month","dependent_repos_count":1,"rankings":{"downloads":38.93476506492917,"dependent_repos_count":10.40278016761116,"dependent_packages_count":21.099260671742204,"stargazers_count":16.804556135070563,"forks_count":15.481324980042931,"docker_downloads_count":null,"average":20.544537403879204},"purl":"pkg:npm/%40preact-hooks/instance","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/npm/@preact-hooks/instance","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/npm/@preact-hooks/instance","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/npm/@preact-hooks/instance/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2025-08-14T18:09:20.961Z","issues_count":0,"pull_requests_count":1,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":4582.0,"issues_closed_count":0,"pull_requests_closed_count":1,"pull_request_authors_count":1,"issue_authors_count":0,"avg_comments_per_issue":null,"avg_comments_per_pull_request":0.0,"merged_pull_requests_count":1,"bot_issues_count":0,"bot_pull_requests_count":1,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihar-22%2Fpreact-hooks-instance/issues","maintainers":[],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@preact-hooks%2Finstance/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@preact-hooks%2Finstance/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@preact-hooks%2Finstance/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@preact-hooks%2Finstance/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@preact-hooks%2Finstance/codemeta","maintainers":[{"uuid":"mihar-22","login":"mihar-22","name":null,"email":"rahim.alwer@gmail.com","url":null,"packages_count":88,"html_url":"https://www.npmjs.com/~mihar-22","role":null,"created_at":"2022-11-20T21:56:31.894Z","updated_at":"2022-11-20T21:56:31.894Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/mihar-22/packages"}]}