{"id":18301781,"url":"https://github.com/kfsoftware/hlf-sync","last_synced_at":"2025-07-25T02:05:53.651Z","repository":{"id":57571339,"uuid":"347466111","full_name":"kfsoftware/hlf-sync","owner":"kfsoftware","description":"Synchronize the ledger with your databases","archived":false,"fork":false,"pushed_at":"2025-01-24T16:34:14.000Z","size":259,"stargazers_count":14,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-21T05:43:09.612Z","etag":null,"topics":["fabric","hyperledger","hyperledger-fabric"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kfsoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2021-03-13T19:58:27.000Z","updated_at":"2025-03-18T20:20:34.000Z","dependencies_parsed_at":"2022-09-17T15:42:05.819Z","dependency_job_id":null,"html_url":"https://github.com/kfsoftware/hlf-sync","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kfsoftware%2Fhlf-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kfsoftware%2Fhlf-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kfsoftware%2Fhlf-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kfsoftware%2Fhlf-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kfsoftware","download_url":"https://codeload.github.com/kfsoftware/hlf-sync/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247352531,"owners_count":20925284,"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","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":["fabric","hyperledger","hyperledger-fabric"],"created_at":"2024-11-05T15:16:58.522Z","updated_at":"2025-04-05T14:31:12.752Z","avatar_url":"https://github.com/kfsoftware.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HLF Sync\n\n## Introduction\n\nHyperledger Fabric stores the information in blocks, but this information is not structured and lacks search/processing capabilities of new databases.\n\nThis project aims to store all the information in an OffChain database to access the blockchain data as well as add as a means to see the data for other purposes, such as validating, dashboards, statistics, etc. \n## Databases supported\n\n- [x] Elasticsearch\n- [x] PostgreSQL\n- [x] MySQL\n- [x] MariaDB\n- [x] Meilisearch\n\n## Get started\n\nPre requisites:\n- A running Hyperledger Fabric network \n- A running supported database\n\nYou can download the binary in the [release page](https://github.com/kfsoftware/hlf-sync/releases)\n\n```bash\nhlf-sync --network=./hlf.yaml --config=config.yaml --channel=mychannelname\n```\n\n## Network Config\n\nNetwork config file needs to be compliant with fabric-sdk-go. You can find examples in [the official repo](https://github.com/hyperledger/fabric-sdk-go/blob/main/test/fixtures/config/config_e2e.yaml).\n\n## Configuration file\nThe configuration file for a meilisearch backend\n```yaml\ndatabase:\n  type: meilisearch\n  url: \"http://localhost:7700\"\n  apiKey: \"\"\n```\n\nThe configuration file for a postgresql backend\n```yaml\ndatabase:\n  type: sql\n  driver: postgres\n  dataSource: host=localhost port=5432 user=postgres password=postgres dbname=hlf sslmode=disable\n\n```\nThe configuration file for a mysql backend\n```yaml\ndatabase:\n  type: sql\n  driver: mysql\n  dataSource: root:my-secret-pw@tcp(127.0.0.1:3306)/hlf?charset=utf8mb4\u0026parseTime=True\u0026loc=Local\n```\n\nThe configuration file for a mariadb backend\n```yaml\ndatabase:\n  type: sql\n  driver: mysql\n  dataSource: root:my-secret-pw@tcp(127.0.0.1:3306)/hlf?charset=utf8mb4\u0026parseTime=True\u0026loc=Local\n```\n\nThe configuration file for an Elasticsearch backend\n```yaml\ndatabase:\n  type: elasticsearch\n  urls:\n    - http://localhost:9200\n  user:\n  password:\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkfsoftware%2Fhlf-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkfsoftware%2Fhlf-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkfsoftware%2Fhlf-sync/lists"}