{"id":44971586,"url":"https://github.com/rtang03/fabric-es","last_synced_at":"2026-02-18T16:00:36.779Z","repository":{"id":40292202,"uuid":"207711335","full_name":"rtang03/fabric-es","owner":"rtang03","description":"Hyperledger Fabric =\u003e event-store","archived":false,"fork":false,"pushed_at":"2023-07-22T15:54:25.000Z","size":24580,"stargazers_count":11,"open_issues_count":10,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-14T17:25:54.140Z","etag":null,"topics":["apollo-graphql","hyperledger-fabric","jest","lerna","redux","rxjs"],"latest_commit_sha":null,"homepage":"https://fabric-es.readthedocs.io/en/latest/index.html","language":"TypeScript","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/rtang03.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-11T03:03:58.000Z","updated_at":"2024-04-10T17:01:12.000Z","dependencies_parsed_at":"2024-10-24T20:38:39.703Z","dependency_job_id":null,"html_url":"https://github.com/rtang03/fabric-es","commit_stats":{"total_commits":888,"total_committers":9,"mean_commits":98.66666666666667,"dds":0.6768018018018018,"last_synced_commit":"cbe55a9a0522c4f917ab54095ff95aa30f7eb28c"},"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/rtang03/fabric-es","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtang03%2Ffabric-es","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtang03%2Ffabric-es/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtang03%2Ffabric-es/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtang03%2Ffabric-es/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rtang03","download_url":"https://codeload.github.com/rtang03/fabric-es/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtang03%2Ffabric-es/sbom","scorecard":{"id":787980,"data":{"date":"2025-08-11","repo":{"name":"github.com/rtang03/fabric-es","commit":"cbe55a9a0522c4f917ab54095ff95aa30f7eb28c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/27 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":"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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/changelog.yaml:1","Warn: no topLevel permission defined: .github/workflows/ci.yaml:1","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/create-release.yaml:1","Warn: no topLevel permission defined: .github/workflows/npm-publish.yaml:1","Warn: no topLevel permission defined: .github/workflows/stale.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":"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":"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":"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":"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":"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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.7.18 not signed: https://api.github.com/repos/rtang03/fabric-es/releases/54674232","Warn: release artifact v0.7.16 not signed: https://api.github.com/repos/rtang03/fabric-es/releases/49953294","Warn: release artifact v0.7.15 not signed: https://api.github.com/repos/rtang03/fabric-es/releases/49721715","Warn: release artifact v0.7.14 not signed: https://api.github.com/repos/rtang03/fabric-es/releases/48545264","Warn: release artifact v0.7.13 not signed: https://api.github.com/repos/rtang03/fabric-es/releases/46910273","Warn: release artifact v0.7.18 does not have provenance: https://api.github.com/repos/rtang03/fabric-es/releases/54674232","Warn: release artifact v0.7.16 does not have provenance: https://api.github.com/repos/rtang03/fabric-es/releases/49953294","Warn: release artifact v0.7.15 does not have provenance: https://api.github.com/repos/rtang03/fabric-es/releases/49721715","Warn: release artifact v0.7.14 does not have provenance: https://api.github.com/repos/rtang03/fabric-es/releases/48545264","Warn: release artifact v0.7.13 does not have provenance: https://api.github.com/repos/rtang03/fabric-es/releases/46910273"],"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":"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/changelog.yaml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/rtang03/fabric-es/changelog.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/changelog.yaml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/rtang03/fabric-es/changelog.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/rtang03/fabric-es/ci.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/rtang03/fabric-es/ci.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/rtang03/fabric-es/ci.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/rtang03/fabric-es/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/rtang03/fabric-es/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/rtang03/fabric-es/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:67: update your workflow using https://app.stepsecurity.io/secureworkflow/rtang03/fabric-es/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/create-release.yaml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/rtang03/fabric-es/create-release.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/create-release.yaml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/rtang03/fabric-es/create-release.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/create-release.yaml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/rtang03/fabric-es/create-release.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/create-release.yaml:91: update your workflow using https://app.stepsecurity.io/secureworkflow/rtang03/fabric-es/create-release.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/create-release.yaml:113: update your workflow using https://app.stepsecurity.io/secureworkflow/rtang03/fabric-es/create-release.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/create-release.yaml:128: update your workflow using https://app.stepsecurity.io/secureworkflow/rtang03/fabric-es/create-release.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yaml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/rtang03/fabric-es/npm-publish.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yaml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/rtang03/fabric-es/npm-publish.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yaml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/rtang03/fabric-es/npm-publish.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/stale.yaml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/rtang03/fabric-es/stale.yaml/master?enable=pin","Warn: containerImage not pinned by hash: deployments/dev-net/build.gw-org1/dockerfile.gw-org1:1: pin your Docker image by updating node:12.20-alpine to node:12.20-alpine@sha256:77fe10dbc042121e94db7f43b4b912a52514759b847978588eec4d5d0eb5282c","Warn: containerImage not pinned by hash: deployments/dev-net/build.gw-org2/dockerfile.gw-org2:1: pin your Docker image by updating node:12.20-alpine to node:12.20-alpine@sha256:77fe10dbc042121e94db7f43b4b912a52514759b847978588eec4d5d0eb5282c","Warn: containerImage not pinned by hash: deployments/dev-net/build.gw-org3/dockerfile.gw-org3:1: pin your Docker image by updating node:12.20-alpine to node:12.20-alpine@sha256:77fe10dbc042121e94db7f43b4b912a52514759b847978588eec4d5d0eb5282c","Warn: containerImage not pinned by hash: deployments/dev-net/build.tester/dockerfile.tester:1: pin your Docker image by updating node:12.20-alpine to node:12.20-alpine@sha256:77fe10dbc042121e94db7f43b4b912a52514759b847978588eec4d5d0eb5282c","Warn: downloadThenRun not pinned by hash: .github/workflows/ci.yaml:34","Info:   0 out of  15 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   4 third-party GitHubAction dependencies pinned","Info:   0 out of   4 containerImage dependencies pinned","Info:   0 out of   1 downloadThenRun 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":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 8 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":"139 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-cpwx-vrp4-4pq7","Warn: Project is vulnerable to: GHSA-h5c8-rqwp-cp95","Warn: Project is vulnerable to: GHSA-h75v-3vvj-5mfj","Warn: Project is vulnerable to: GHSA-q2x7-8rv6-6q7h","Warn: Project is vulnerable to: PYSEC-2021-140 / GHSA-9w8r-397f-prfh","Warn: Project is vulnerable to: PYSEC-2023-117 / GHSA-mrwq-x4v8-fh7p","Warn: Project is vulnerable to: PYSEC-2021-141 / GHSA-pq64-v7f5-gqh8","Warn: Project is vulnerable to: GHSA-p2q6-pwh5-m6jr","Warn: Project is vulnerable to: GHSA-q2f9-x4p4-7xmh","Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-pp75-xfpw-37g9","Warn: Project is vulnerable to: GHSA-7v5v-9h63-cj86","Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-qm7x-rc44-rrqw","Warn: Project is vulnerable to: GHSA-2p3c-p3qw-69r4","Warn: Project is vulnerable to: GHSA-j5g3-5c8r-7qfx","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-257v-vj4p-3w2h","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-h452-7996-h45h","Warn: Project is vulnerable to: GHSA-7gc6-qh9x-w6h8","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-9j49-mfvp-vmhm","Warn: Project is vulnerable to: GHSA-wm7h-9275-46v2","Warn: Project is vulnerable to: GHSA-r9p9-mrjm-926w","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-6h5x-7c5m-7cr7","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44","Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-58f5-hfqc-jgch","Warn: Project is vulnerable to: GHSA-jv3g-j58f-9mq9","Warn: Project is vulnerable to: GHSA-hhhv-q57g-882q","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-8cf7-32gw-wr33","Warn: Project is vulnerable to: GHSA-hjrf-2m68-5959","Warn: Project is vulnerable to: GHSA-qwph-4952-7xr6","Warn: Project is vulnerable to: GHSA-27fj-mc8w-j9wg","Warn: Project is vulnerable to: GHSA-h87q-g2wp-47pj","Warn: Project is vulnerable to: GHSA-3fvg-4v2m-98jf","Warn: Project is vulnerable to: GHSA-rh63-9qcf-83gf","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-4r62-v4vq-hr96","Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj","Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-8hfj-j24r-96c4","Warn: Project is vulnerable to: GHSA-wc69-rhjr-hc9g","Warn: Project is vulnerable to: GHSA-56x4-j7p9-fcf9","Warn: Project is vulnerable to: GHSA-v78c-4p63-2j6c","Warn: Project is vulnerable to: GHSA-6xwr-q98w-rvg7","Warn: Project is vulnerable to: GHSA-4c7m-wxvm-r7gc","Warn: Project is vulnerable to: GHSA-pch5-whg9-qr2r","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-px4h-xg32-q955","Warn: Project is vulnerable to: GHSA-v39p-96qg-c8rf","Warn: Project is vulnerable to: GHSA-8v63-cqqc-6r2c","Warn: Project is vulnerable to: GHSA-3j8f-xvm3-ffx4","Warn: Project is vulnerable to: GHSA-4p35-cfcx-8653","Warn: Project is vulnerable to: GHSA-7f3x-x4pr-wqhj","Warn: Project is vulnerable to: GHSA-jpp7-7chh-cf67","Warn: Project is vulnerable to: GHSA-q6wq-5p59-983w","Warn: Project is vulnerable to: GHSA-j9fq-vwqv-2fm2","Warn: Project is vulnerable to: GHSA-pqw5-jmp5-px4v","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-x5gf-qvw8-r2rm","Warn: Project is vulnerable to: GHSA-566m-qj78-rww5","Warn: Project is vulnerable to: GHSA-hwj9-h5mp-3pm3","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-g954-5hwp-pp24","Warn: Project is vulnerable to: GHSA-h755-8qp9-cq85","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-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6","Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj","Warn: Project is vulnerable to: GHSA-vx3p-948g-6vhq","Warn: Project is vulnerable to: GHSA-2m8v-572m-ff2v","Warn: Project is vulnerable to: GHSA-jff2-qjw8-5476","Warn: Project is vulnerable to: GHSA-cvv5-9h9w-qp2m","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-38fc-wpqx-33j7","Warn: Project is vulnerable to: GHSA-78cj-fxph-m83p","Warn: Project is vulnerable to: GHSA-fhg7-m89q-25r3","Warn: Project is vulnerable to: GHSA-9m6j-fcg5-2442","Warn: Project is vulnerable to: GHSA-hh27-ffr2-f2jc","Warn: Project is vulnerable to: GHSA-rqff-837h-mm52","Warn: Project is vulnerable to: GHSA-8v38-pw62-9cw2","Warn: Project is vulnerable to: GHSA-hgjh-723h-mx2j","Warn: Project is vulnerable to: GHSA-jf5r-8hm2-f872","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"],"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-23T06:36:46.659Z","repository_id":40292202,"created_at":"2025-08-23T06:36:46.660Z","updated_at":"2025-08-23T06:36:46.660Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29585441,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T13:56:48.962Z","status":"ssl_error","status_checked_at":"2026-02-18T13:54:34.145Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["apollo-graphql","hyperledger-fabric","jest","lerna","redux","rxjs"],"created_at":"2026-02-18T16:00:35.986Z","updated_at":"2026-02-18T16:00:36.773Z","avatar_url":"https://github.com/rtang03.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Build](https://github.com/rtang03/fabric-es/workflows/CI/badge.svg?branch=master)\n![Release](https://github.com/rtang03/fabric-es/workflows/Create%20Release/badge.svg)\n![Changelog](https://github.com/rtang03/fabric-es/workflows/Changelog/badge.svg)\n[![CodeQL](https://github.com/rtang03/fabric-es/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/rtang03/fabric-es/actions/workflows/codeql-analysis.yml)\n[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)\n\n# Project Overview\n\nThis project enables event-driven architecture for Hyperledger Fabric projects. It provides a collection of library\npackages to accelerate development of Hyperledger Fabric application stack.\n\n- See [Full Documentation](https://fabric-es.readthedocs.io/en/latest/)\n- See [TypeDocs](https://rtang03.github.io/fabric-es/)\n\n### Package libraries\n\nThis monorepo includes package libraries.\n\n1. `fabric-cqrs` is the utility to write data to Hyperledger Fabric, and query data from Redis/RediSearch.\n1. `gateway-lib` creates Apollo federated gateway, along with entity-based microservice (in form of Apollo server)\n\n# Simple-counter example\n\nLet start with simple-counter example. See [simple-counter](https://github.com/rtang03/fabric-es/blob/master/packages/gateway-lib/src/__tests__/__utils__/)\n\n## Application Architecture\n\nThe application is developed based on [Clean Architecture](https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html).\n\n_Dependency graph_\n\n```text\n(1) -- domain service for on-chain data\n        ⎿ Input-argument \u003c FileWallet, connectionProfile,  Redis connection, auth-server \u003e\n        ⎿ typeDefs\n        ⎿ Resolvers\n           ⎿ Command handler\n              ⎿ Repository (same as below)\n           ⎿ Repository\n              ⎿ Input-argument \u003c event, model, reducer \u003e\n              ⎿ Query Database (internal)\n                  ⎿ RedisRepository (internal)\n                      ⎿ Input-argument \u003c IndexDefinition, inRedisModel, outputModel, Selectors \u003e\n(2) -- Query handler service\n        ⎿ Input-argument \u003c FileWallet, connectionProfile,  Redis connection, auth-server \u003e\n        ⎿ typeDefs\n        ⎿ Resolvers\n           ⎿ Query handler\n             ⎿ Input-argument \u003c event, model, reducer \u003e\n             ⎿ Query Database (internal)\n                  ⎿ RedisRepository (internal)\n                      ⎿ Input-argument \u003c IndexDefinition, inRedisModel, outputModel, Selectors \u003e\n\n```\n\n### Step 1: Define domain model\n\nHere adopts the [Domain-driven design](https://en.wikipedia.org/wiki/Domain-driven_design). _Event_, _Entity_, _Reducer_\nand _Repository_ are most fundamental model elements.\n\n**Events**\n\nThe simple counter accepts two event `Increment` and `Decrement`.\n\n```typescript\n// Typing\n// packages/fabric-cqrs/src/unit-test-counter/events.ts\ninterface Increment extends BaseEvent {\n  readonly type: 'Increment';\n  payload: {\n    id: string;\n    desc: string;\n    // ...\n  };\n}\n```\n\n**Entity**\n\nThe entity, named `Counter`, determines the current state of the counter, defined\nby `value` field.\n\n```typescript\ninterface Counter extends BaseEntity {\n  id: string;\n  value: number;\n}\n```\n\n**Reducer**\n\nThe reducer computes from the current state of the entity, from events history.\n\n```typescript\n// packages/fabric-cqrs/src/unit-test-counter/reducer.ts\nimport { Reducer } from '../types';\nimport { CounterEvents } from './events';\nimport { Counter, CounterEvent } from './types';\n\nconst counterReducer: Reducer\u003cCounter\u003e = (\n  history: CounterEvent[],\n  initial = { id: null, desc: null /* .... */ }\n): Counter =\u003e history.reduce(reducerFcn, initial);\n// ...\n```\n\n**Repository**\n\nRepository provides data access abstraction via [repository pattern](https://martinfowler.com/eaaCatalog/repository.html).\nIts type `CounterRepo` is derived by type computation, `Repository`\n\n```typescript\n// Typing\n// packages/gateway-lib/src/__tests__/__utils__/types.ts\nimport { Counter, CounterEvent, Repository } from '@fabric-es/fabric-cqrs';\ntype CounterRepo = Repository\u003cCounter, OutputCounter, CounterEvents\u003e;\n```\n\n`CounterRepo` will be used in `packages/gateway-lib/src/__tests__/__utils__/handler.ts`.\n\n```typescript\nexport const commandHanlder: (option: {\n  enrollmentId: string;\n  counterRepo: CounterRepo;\n}) =\u003e CounterCommandHandler = ({ enrollmentId, counterRepo }) =\u003e ({\n  Increment: async ({ userId, payload: { id } }) =\u003e {\n    const { data, error } = await counterRepo.create({ enrollmentId, id }).save({\n    // ...\n    })\n```\n\n### Step 2: Define additional model for Redisearch\n\n`Redisearch` uses Redis hashes object, for data storage and indexing. This step defines the domain models with Redisearch.\nNotice that Redis is a primiarly key-value database. Also, it has naming convention, and data type restriction; so that\nthe data model used in Hyperledger Fabric and in Redis are likely incompatible. Besides, it shall require additional\nfields in Redis, for a better search experienece. Hence, a moderate complex scenario shall require different domain\nmodel definition. See below example.\n\n```typescript\n// packages/fabric-cqrs/src/unit-test-counter/types/counter.ts\n// all fields here are persisted in Hyperledger Fabric\ninterface Counter {\n  id: string;\n  desc: string;\n  tag: string;\n  value: number;\n}\n\n// packages/fabric-cqrs/src/unit-test-counter/types/counterInRedis.ts\ninterface CounterInRedis {\n  de: string; // renamed field\n  event: string; // derived field\n  id: string; // no change\n  tag: string; // no change\n  tl: string; // derived field\n  val: string | number; // renamed field\n  history: string; // derived field\n}\n\n// packages/fabric-cqrs/src/unit-test-counter/types/outputCounter.ts\n// the output counter restore CounterInRedis back, after search.\ninterface OutputCounter {\n  description: string;\n  eventInvolved: string[]; // derived field\n  id: string;\n  tags: string[]; // derived field\n  value: number;\n}\n```\n\n### Step 3: Define indexing definition for Redisearch\n\nDefine which fields of Counter to save to Redis. Optionally step may pick some fields, and / or define\nnewly derived fields.\n\n```typescript\n// packages/fabric-cqrs/src/unit-test-counter/types/counterIndexDefinition.ts\nexport type CommonCounterFields = Pick\u003cCounter, 'id' | 'value' | 'desc' | 'tag'\u003e;\ntype DerivedCounterFields = { event: string };\ntype CounterIndexDefintion = RedisearchDefinition\u003cPickedCounterFields \u0026 DerivedCounterFields\u003e;\n```\n\n**IndexDefinition**\n\nDefine the indexing definition\n\n```typescript\n// packages/fabric-cqrs/src/unit-test-counter/domain/counterIndexDefinition.ts\nconst counterIndexDefinition: CounterIndexDefintion = {\n  // original fields\n  id: { index: { type: 'TEXT', sortable: true } },\n  value: { altName: 'val' },\n  // ...\n  // derived fields\n  event: { index: { type: 'TAG' } },\n};\n```\n\n**Selector**\n\n_preSelector_ and _postSelector_ define the transformation.\n\n```typescript\n// packages/fabric-cqrs/src/unit-test-counter/preSelector.ts\n// the input argument of preSelector is a tuple of Coutner, and its commit history.\nconst preSelector: Selector\u003c[Counter, Commit[]], CounterInRedis\u003e = createStructuredSelector({\n  // ...\n});\n\n// packages/fabric-cqrs/src/unit-test-counter/postSelector.ts\nconst postSelector: Selector\u003cCounterInRedis, OutputCounter\u003e = createStructuredSelector({\n  // ...\n});\n```\n\nSuppose the model is simple, so that derived field is not required; single type definition may be sufficient.\nAlso, _Selector_ no longer required.\n\n### Step 4: Define application architecture\n\n📌 IMPORATNT NOTE: There are two authentication approaches, via:\n\n- legacy [auth-server](https://github.com/rtang03/auth-server), it will call with `createGateway.ts`\n- [Auth0 Identity Provider](https://auth0.com) (recommended), it will call with `createGatewayWithAuth0.ts`\n\nBelow example is based on legacy auth-server. If you are interested with Auth0 authentication,\nplease see `packages/gateway-lib/src/__tests__/counter.auth0.unit-test.ts`.\n\nThere are serveral technical constructs, _commandHandler_, _resolvers_, _queryHandler microservice_, and\n_entity microservice_. They are not carrying domain model information. They are defining the architecture how\nthe data can be consumed. The entity microservice defines the api endpoint(s); giving _Apollo_ federated\nmicroservice.\n\n**Command handler**\n\nCommand handler will send the events. Its type `CounterCommandHandler` is derived by type computation, `CommandHandler`.\n\n```typescript\n// Typing\n// packages/gateway-lib/src/__tests__/__utils__/types.ts\nimport { CounterCommands } from '@fabric-es/fabric-cqrs';\nimport { CommandHandler } from '../..';\ntype CounterCommandHandler = CommandHandler\u003cCounterCommands\u003e;\n```\n\nAlso, the implementation as below. The `Increment` command save the new event `[{ type: 'Increment' }]`\nto `counterRepo`.\n\n```typescript\n// Implementation\n// packages/gateway-lib/src/__tests__/__utils__/handler.ts\nconst commandHanlder: (option: {\n  enrollmentId: string;\n  counterRepo: CounterRepo;\n}) =\u003e CounterCommandHandler = ({ enrollmentId, counterRepo }) =\u003e ({\n  Increment: async ({ userId, payload: { id } }) =\u003e {\n    const { data, error } = await counterRepo.create({ enrollmentId, id }).save({\n      events: [{ type: 'Increment', payload: { id } }],\n    });\n  },\n  // ...\n});\n```\n\n**Graphql resolvers**\n\nGraphql resolvers defines the endpoint behaviours, via the use of `commandHandler`. The mutation function\n`increment` invokes the `Increment` command of `commandHandler`; and returning `Commit` object, if it\nsuccessfully writes to Fabric.\n\n```typescript\n// Resolver Mutation\n// packages/gateway-lib/src/__tests__/__utils__/resolvers.ts\nconst resolvers = {\n  /** ... **/\n  Mutation: {\n    increment: catchResolverErrors(\n      // catchResolverErrors decorates the orignal mutation function\n      async (\n        _,\n        { counterId }, // variables\n        {\n          // Apollo Data Source\n          dataSources: {\n            counter: { repo },\n          },\n          user_id, // user_id will be saved in the event payload\n          username, // authenticated username will be used as enrollmentId\n        }: Context // Apollo Context bring in data source, i.e. counterRepo\n      ): Promise\u003cCommit\u003e =\u003e\n        commandHanlder({ enrollmentId: username, counterRepo: repo }).Increment({\n          userId: user_id,\n          payload: { id: counterId /* ... */ },\n        }),\n      { fcnName: 'increment', logger, useAuth: true, useAdmin: false }\n    ),\n  },\n  // ...\n};\n```\n\nOn the query side, the _resolvers_ utilize entity repository, to invoke _fullTextSearchEntity_ api.\n\n```typescript\n// Resolver Query\n// packages/gateway-lib/src/__tests__/__utils__/resolvers.ts\nconst resolvers = {\n  /** ... */\n  Query: {\n    search: catchResolverErrors(\n      async (\n        _,\n        { query }: { query: string },\n        {\n          dataSources: {\n            'gw-repo-counter': { repo },\n          },\n        }\n      ): Promise\u003cPaginated\u003cOutputCounter\u003e\u003e =\u003e {\n        const { data, error, status } = await repo.fullTextSearchEntity\u003cOutputCounter\u003e({\n          entityName: 'gw-repo-counter',\n          query,\n        });\n        return data;\n      }\n    ),\n  },\n  // ...\n};\n```\n\n**Entity microservice**\n\nEntity microservice configures Apollo federated service, based on `counter` models, and resolvers. Each\nentity microservice may define one or mulitple _Repository_ or _RedisRepository_. `addRedisRepository`\nrequires the input argument from previous steps, e.g. indexDefinition and Selector.\n\n```typescript\n// packages/gateway-lib/src/__tests__/counter.unit-test.ts\n// (1) inject persistence\nconst { config } = await createService({\n  asLocalhost: true,\n  channelName,\n  connectionProfile,\n  serviceName: 'counter',\n  enrollmentId: orgAdminId,\n  wallet,\n  redisOptions,\n});\n\n// (2) inject Apollo typeDefs and resolvers\nmodelApolloService = config([{ typeDefs, resolvers }])\n  // define the Redisearch index, and selectors\n  .addRepository\u003cCounter, CounterInRedis, OutputCounter, CounterEvents\u003e(Counter, {\n    reducer: counterReducerCallback,\n    fields: counterIndexDefinition,\n    postSelector: counterPostSelector,\n    preSelector: counterPreSelector,\n  })\n  .create();\n```\n\n**QueryHandler microservice**\n\nQuery handler microservice is a single microservice per organization. It is NOT part of federated services.\nIt is partially configurable. You are not required to define the `typeDefs`, and `resolvers`. You are only\nrequired to define indexes, AND organziational-wide reducer map, like `{ counter: counterReducer }`.\n\n```typescript\n// packages/gateway-lib/src/__tests__/counter.unit-test.ts\nconst qhService = await createQueryHandlerService({\n  asLocalhost: !(process.env.NODE_ENV === 'production'),\n  authCheck: `${proxyServerUri}/oauth/authenticate`,\n  channelName,\n  connectionProfile,\n  enrollmentId,\n  redisOptions: { host: 'localhost', port: 6379 },\n  wallet,\n})\n  .addRedisRepository\u003cCounter, CounterInRedis, OutputCounter, CounterEvents\u003e(\n    Counter, {\n      reducer: counterReducerCallback,\n      fields: counterIndexDefinition,\n      postSelector: counterPostSelector,\n      preSelector: counterPreSelector,\n    })\n  .run();\n```\n\n### Step 5: Bootstrap it\n\nThe funniest part is here, when every part are glued together.\n\n📌 Make sure `dev-net` is running, before executing the unit-test above.\n\n```typescript\n// Full implementation is here\n// ./packages/gateway-lib/src/__tests__/counter.unit-test.ts\n\n// (1) Wallet\nconst wallet = await Wallets.newFileSystemWallet(walletPath);\n\n// (2) Enroll Admin\nawait enrollAdmin({\n  enrollmentID: orgAdminId,\n  enrollmentSecret: orgAdminSecret,\n  // ...\n});\n\n// (3) Enroll Ca Admin\nawait enrollAdmin({\n  enrollmentID: caAdmin,\n  enrollmentSecret: caAdminPW,\n  // ...\n});\n\n// (4) Start QueryHandler\nconst qhService = await createQueryHandlerService({\n  /*...*/\n});\n\n// (5) Launh queryHander non-federated service\nawait queryHandlerServer.listen({ port });\n\n// (6) Prepare Counter microservice\nconst { config } = await createService({\n  /* ... */\n});\n\n// (7) Config Apollo with typeDefs, resolver, and repository\nmodelApolloService = config([{ typeDefs, resolvers }])\n  // define the Redisearch index, and selectors\n  .addRepository\u003cCounter, CounterInRedis, OutputCounter, CounterEvents\u003e(Counter, {\n    reducer: counterReducerCallback,\n    fields: counterIndexDefinition,\n    postSelector: counterPostSelector,\n    preSelector: counterPreSelector,\n  })\n  .create();\n\n// (8) Launch Counter federated service\nawait modelApolloService.listen({ port });\n\n// (9) Start federated API gateway\napp = await createGateway({\n  serviceList: [{ name: 'counter', url }],\n  authenticationCheck: `${proxyServerUri}/oauth/authenticate`,\n});\n```\n\n### Step 6: Register / Login / Invoke Tx\n\n```typescript\n// (10) Reister new user, at auth-server\nawait fetch(`http://localhost:8080/account`, {\n  method: 'POST',\n  headers: { 'Content-Type': 'application/json' },\n  body: JSON.stringify({ username, email, password }),\n});\n\n// (11) Login new user\nawait fetch(`http://localhost:8080/account/login`, {\n  method: 'POST',\n  headers: { 'Content-Type': 'application/json' },\n  body: JSON.stringify({ username, password }),\n})\n  .then((r) =\u003e r.json())\n  .then((res) =\u003e {\n    accessToken = res.access_token; // accessToken is obtained\n  });\n\n// (12) Create server side digital wallet, targeting Apollo federated gateway;\n// authtenicated with above accessToken\nawait request(app)\n  .post('/graphql')\n  .set('authorization', `bearer ${accessToken}`)\n  .send({\n    operationName: 'CreateWallet',\n    query: CREATE_WALLET,\n  })\n  .expect(({ body: { data, errors } }) =\u003e {\n    /* ... */\n  });\n\n// (13) Increment counter, at Apollo federated gateway;\n// authtenicated with above accessToken\nawait request(app)\n  .post('/graphql')\n  .set('authorization', `bearer ${accessToken}`)\n  .send({\n    operationName: 'Increment',\n    query: INCREMENT,\n    variables: { counterId, id: counterId },\n  })\n  .expect(({ body: { data, errors } }) =\u003e {\n    /* ... */\n  });\n```\n\n## dev-net\n\n`dev-net` provisions different development networks, based on docker-compose. Notice that the upcoming production\ndeployment will be running with k8s. For common development scenario, may use `./dn-run.sh 2 auth`,\nwhich is 2-org Fabric setup, with Redis, and auth-server.\n\n```shell\ncd dev-net\n./dn-run.sh 2 auth\n```\n\n## Advanced example\n\n`packages/gw-orgX` \u0026 `package/model-X` provide advanced example, about how multiple organizations gateways are configured.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtang03%2Ffabric-es","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frtang03%2Ffabric-es","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtang03%2Ffabric-es/lists"}