{"id":1994630,"name":"match-rules","ecosystem":"npm","description":"A tiny (1kB GZipped) zero dependency JavaScript utility that lets you write your conditional business logic in a declarative way (React like).","homepage":null,"licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/naman03malhotra/match-rules","keywords_array":["javascript","declarative","imperative","react","react-like","react-rendering","tiny","zero dependency","if-else","react-conditional-rendering","conditional-rendering","feature-flag","rules","matchrules","match-rules","complex-conditions","render-ui-based-on-flags","dynamic-rendering"],"namespace":null,"versions_count":25,"first_release_published_at":"2020-05-22T10:17:00.446Z","latest_release_published_at":"2021-02-18T06:58:33.983Z","latest_release_number":"1.3.8","latest_published_release_number":null,"last_synced_at":"2026-08-29T16:00:36.762Z","created_at":"2022-04-09T19:20:31.613Z","updated_at":"2026-08-29T17:36:59.797Z","registry_url":"https://www.npmjs.com/package/match-rules","install_command":"npm install match-rules","documentation_url":null,"metadata":{"funding":null,"dist-tags":{"latest":"1.3.8"},"contentPolicy":null},"repo_metadata":{"id":40768280,"uuid":"262560578","full_name":"naman03malhotra/match-rules","owner":"naman03malhotra","description":"A tiny 1kB zero dependency JavaScript utility that lets you write your conditional business logic in a declarative way  (React like).","archived":false,"fork":false,"pushed_at":"2023-01-06T05:59:23.000Z","size":1299,"stargazers_count":44,"open_issues_count":16,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-05-09T09:56:38.096Z","etag":null,"topics":["complex-conditions","complex-rules","conditional-statements","declarative","declarative-programming","if-else","if-else-refactoring","imperative","imperative-programming","javascript-utility","npm-module","react","reactjs"],"latest_commit_sha":null,"homepage":"https://stackblitz.com/edit/match-rules","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/naman03malhotra.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"MIT-LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-09T11:56:16.000Z","updated_at":"2026-02-20T16:28:22.000Z","dependencies_parsed_at":"2023-02-05T11:46:47.534Z","dependency_job_id":null,"html_url":"https://github.com/naman03malhotra/match-rules","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/naman03malhotra/match-rules","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naman03malhotra%2Fmatch-rules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naman03malhotra%2Fmatch-rules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naman03malhotra%2Fmatch-rules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naman03malhotra%2Fmatch-rules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naman03malhotra","download_url":"https://codeload.github.com/naman03malhotra/match-rules/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naman03malhotra%2Fmatch-rules/sbom","scorecard":{"id":673485,"data":{"date":"2025-08-11","repo":{"name":"github.com/naman03malhotra/match-rules","commit":"f2eff3877063b06da3e72e82bbb216fbc4b06879"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"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":"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":"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":0,"reason":"Found 1/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":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CD.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/naman03malhotra/match-rules/CD.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CD.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/naman03malhotra/match-rules/CD.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CD.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/naman03malhotra/match-rules/CD.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/naman03malhotra/match-rules/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/naman03malhotra/match-rules/CI.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/naman03malhotra/match-rules/CI.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/CD.yml:1","Warn: no topLevel permission defined: .github/workflows/CI.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":10,"reason":"license file detected","details":["Info: project has a license file: MIT-LICENSE.txt:0","Info: FSF or OSI recognized license: MIT License: MIT-LICENSE.txt: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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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 28 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":0,"reason":"30 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-5fw9-fq32-wv5p","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh"],"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-21T20:53:21.169Z","repository_id":40768280,"created_at":"2025-08-21T20:53:21.170Z","updated_at":"2025-08-21T20:53:21.170Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":36972225,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-08-22T15:14:58.755Z","status":"online","status_checked_at":"2026-08-29T02:00:05.978Z","response_time":51,"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"},"owner_record":{"login":"naman03malhotra","name":"Naman Malhotra","uuid":"15019298","kind":"user","description":"I am a software engineer with a strong focus on real-life problem-solving.","email":"","website":null,"location":"Remote","twitter":"naman03malhotra","company":"Automattic","icon_url":"https://avatars.githubusercontent.com/u/15019298?u=17048f0ac689efad2beed3df86f3272177e9de31\u0026v=4","repositories_count":6,"last_synced_at":"2023-03-08T00:15:16.638Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/naman03malhotra","funding_links":[],"total_stars":null,"followers":null,"following":null,"created_at":"2022-11-17T19:20:14.502Z","updated_at":"2023-03-08T00:15:16.711Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naman03malhotra","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naman03malhotra/repositories"},"tags":[{"name":"v1.3.8","sha":"3a4d0b23a089a506698a5d1a5232e5d1769aa92e","kind":"commit","published_at":"2021-02-18T06:57:12.000Z","download_url":"https://codeload.github.com/naman03malhotra/match-rules/tar.gz/v1.3.8","html_url":"https://github.com/naman03malhotra/match-rules/releases/tag/v1.3.8","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/naman03malhotra/match-rules@v1.3.8","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naman03malhotra%2Fmatch-rules/tags/v1.3.8","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naman03malhotra%2Fmatch-rules/tags/v1.3.8/manifests"},{"name":"1.3.7","sha":"13736b32a722feb8c1bc1d122ed5eada4e95a50f","kind":"commit","published_at":"2021-02-18T06:34:36.000Z","download_url":"https://codeload.github.com/naman03malhotra/match-rules/tar.gz/1.3.7","html_url":"https://github.com/naman03malhotra/match-rules/releases/tag/1.3.7","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/naman03malhotra/match-rules@1.3.7","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naman03malhotra%2Fmatch-rules/tags/1.3.7","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naman03malhotra%2Fmatch-rules/tags/1.3.7/manifests"},{"name":"v1.3.7","sha":"13736b32a722feb8c1bc1d122ed5eada4e95a50f","kind":"commit","published_at":"2021-02-18T06:34:36.000Z","download_url":"https://codeload.github.com/naman03malhotra/match-rules/tar.gz/v1.3.7","html_url":"https://github.com/naman03malhotra/match-rules/releases/tag/v1.3.7","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/naman03malhotra/match-rules@v1.3.7","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naman03malhotra%2Fmatch-rules/tags/v1.3.7","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naman03malhotra%2Fmatch-rules/tags/v1.3.7/manifests"},{"name":"3.0.1","sha":"05b2a9e82ad1aadf0b606de075a3e419957e339c","kind":"commit","published_at":"2020-07-29T10:13:48.000Z","download_url":"https://codeload.github.com/naman03malhotra/match-rules/tar.gz/3.0.1","html_url":"https://github.com/naman03malhotra/match-rules/releases/tag/3.0.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/naman03malhotra/match-rules@3.0.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naman03malhotra%2Fmatch-rules/tags/3.0.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naman03malhotra%2Fmatch-rules/tags/3.0.1/manifests"},{"name":"1.3.1","sha":"05b2a9e82ad1aadf0b606de075a3e419957e339c","kind":"commit","published_at":"2020-07-29T10:13:48.000Z","download_url":"https://codeload.github.com/naman03malhotra/match-rules/tar.gz/1.3.1","html_url":"https://github.com/naman03malhotra/match-rules/releases/tag/1.3.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/naman03malhotra/match-rules@1.3.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naman03malhotra%2Fmatch-rules/tags/1.3.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naman03malhotra%2Fmatch-rules/tags/1.3.1/manifests"},{"name":"1.2.5","sha":"d2960e7e9b74816eac10bc3d3125b8dd00610fc8","kind":"commit","published_at":"2020-06-15T22:18:12.000Z","download_url":"https://codeload.github.com/naman03malhotra/match-rules/tar.gz/1.2.5","html_url":"https://github.com/naman03malhotra/match-rules/releases/tag/1.2.5","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/naman03malhotra/match-rules@1.2.5","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naman03malhotra%2Fmatch-rules/tags/1.2.5","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naman03malhotra%2Fmatch-rules/tags/1.2.5/manifests"}]},"repo_metadata_updated_at":"2026-08-29T17:36:59.797Z","dependent_packages_count":2,"downloads":947,"downloads_period":"last-month","dependent_repos_count":1,"rankings":{"downloads":16.635322041770777,"dependent_repos_count":10.340532343810322,"dependent_packages_count":8.8589471387427,"stargazers_count":6.35970345738585,"forks_count":7.339086083181501,"docker_downloads_count":null,"average":9.90671821297823},"purl":"pkg:npm/match-rules","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/npm/match-rules","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/npm/match-rules","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/npm/match-rules/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2026-08-29T15:47:24.897Z","issues_count":5,"pull_requests_count":47,"avg_time_to_close_issue":2898749.3333333335,"avg_time_to_close_pull_request":95594.12121212122,"issues_closed_count":3,"pull_requests_closed_count":33,"pull_request_authors_count":4,"issue_authors_count":1,"avg_comments_per_issue":3.4,"avg_comments_per_pull_request":0.0,"merged_pull_requests_count":32,"bot_issues_count":0,"bot_pull_requests_count":14,"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/naman03malhotra%2Fmatch-rules/issues","maintainers":[{"login":"naman03malhotra","count":36,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/naman03malhotra"}],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/match-rules/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/match-rules/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/match-rules/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/match-rules/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/match-rules/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/match-rules/codemeta","maintainers":[{"uuid":"naman03malhotra","login":"naman03malhotra","name":null,"email":"naman03malhotra@gmail.com","url":null,"packages_count":1,"html_url":"https://www.npmjs.com/~naman03malhotra","role":null,"created_at":"2022-11-13T05:49:31.868Z","updated_at":"2022-11-13T05:49:31.868Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/naman03malhotra/packages"}]}