{"id":18674132,"url":"https://github.com/nervosnetwork/ckb-explorer","last_synced_at":"2025-04-12T01:55:39.468Z","repository":{"id":37385087,"uuid":"159456631","full_name":"nervosnetwork/ckb-explorer","owner":"nervosnetwork","description":"CKB Explorer","archived":false,"fork":false,"pushed_at":"2025-04-09T02:21:12.000Z","size":52117,"stargazers_count":38,"open_issues_count":16,"forks_count":42,"subscribers_count":10,"default_branch":"develop","last_synced_at":"2025-04-12T01:55:31.072Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://explorer.nervos.org/","language":"Ruby","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/nervosnetwork.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"COPYING","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}},"created_at":"2018-11-28T06:47:45.000Z","updated_at":"2025-04-09T02:20:21.000Z","dependencies_parsed_at":"2024-04-07T12:24:12.729Z","dependency_job_id":"e7f03fe4-5899-43bd-bb7e-c468890f59c1","html_url":"https://github.com/nervosnetwork/ckb-explorer","commit_stats":null,"previous_names":[],"tags_count":34,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nervosnetwork%2Fckb-explorer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nervosnetwork%2Fckb-explorer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nervosnetwork%2Fckb-explorer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nervosnetwork%2Fckb-explorer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nervosnetwork","download_url":"https://codeload.github.com/nervosnetwork/ckb-explorer/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248505867,"owners_count":21115354,"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":[],"created_at":"2024-11-07T09:17:41.979Z","updated_at":"2025-04-12T01:55:39.449Z","avatar_url":"https://github.com/nervosnetwork.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"## About CKB\n\nCKB is the layer 1 of Nervos Network, a public/permissionless blockchain. CKB uses [Proof of Work](https://en.wikipedia.org/wiki/Proof-of-work_system) and [improved Nakamoto concensus](https://medium.com/nervosnetwork/breaking-the-throughput-limit-of-nakamoto-consensus-ccdf65fe0832) to achieve maximized performance on average hardware and internet condition, without sacrificing decentralization and security which are the core value of blockchain.\n\n# CKB Explorer\n\nCKB Explorer is a [Nervos CKB](https://github.com/nervosnetwork/ckb) blockchain explorer built with React and Ruby on Rails.\n\nIt supports searching block, transaction, address and includes two parts: [frontend](https://github.com/nervosnetwork/ckb-explorer-frontend)\nand [backend server](https://github.com/nervosnetwork/ckb-explorer) (this project).\n\n# CKB Explorer Server\n\n[![License](https://img.shields.io/badge/license-MIT-green)](https://github.com/nervosnetwork/ckb-explorer/blob/develop/COPYING)\n[![TravisCI](https://travis-ci.com/nervosnetwork/ckb-explorer.svg?branch=develop)](https://travis-ci.com/nervosnetwork/ckb-explorer)\n[![Codecov](https://codecov.io/gh/nervosnetwork/ckb-explorer/branch/master/graph/badge.svg)](https://codecov.io/gh/nervosnetwork/ckb-explorer/branch/master)\n[![Discord](https://img.shields.io/discord/956765352514183188?label=Discord\u0026logo=discord\u0026style=default\u0026color=grey\u0026labelColor=5865F2\u0026logoColor=white)](https://discord.gg/RsyKyejxAW)\n\nA blockchain explorer service of [Nervos CKB](https://github.com/nervosnetwork/ckb).\n\n## Prerequisites\n\n- [PostgreSQL](https://www.postgresql.org/) 14.3\n- [Redis](https://redis.io/) 6+\n- [libsodium](https://github.com/nervosnetwork/ckb-sdk-ruby?tab=readme-ov-file#prerequisites)\n- [secp256k1](https://github.com/nervosnetwork/ckb-sdk-ruby?tab=readme-ov-file#prerequisites)\n\n## Initial Project\n\n```shell\n$ cd ckb-explorer/\n$ cp .env.example .env # (in this config file, please modify the items according to your local environment)\n$ touch .env.local # (overwrite `.env` config if you need in `.env.local`, such as DATABASE_URL,CKB_NODE_URL...)\n$ bin/setup\n```\n\n## Create \u0026 Setup database\n\n```shell\nbundle exec rake db:create                     # (create db for development and test)\nbundle exec rake db:schema:load                # (run migration for development db)\nbundle exec rake db:schema:load RAILS_ENV=test # (run migration for test db)\n```\n\n## Running Test\n\n```shell\n$ bundle exec rails test\n```\n\n## Run Project\n\n```shell\n$ bundle exec rails s\n\n# start sync process\n$ ruby lib/ckb_block_node_processor.rb\n```\n\n## Deploy\n\nWe suggest using [Docker Compose](https://docs.docker.com/compose/gettingstarted/) to deploy the CKB Explorer Service.\n\n### Build Docker Image\n\n```shell\n$ docker compose build .\n```\n\n### Start Services\n\nThe service is composed of 4 processes:\n\n- web: for serving the API\n- worker: for processing background job\n- blocksyncer: for synchronizing the data from CKB chain\n- scheduler: for scheduling some timer tasks\n\nYou can see these processes in the `Procfile` file.\nThe `web` \u0026 `worker` process can be scaled horizontally. And the blocksyncer and scheduler process are both singleton,\nso you can only start one instance for each process.\n\n```shell\n$ docker compose up -d\n```\n\n## How to Contribute\n\nCKB Explorer Server is an open source project and your contribution is very much appreciated. Please check out\n[CONTRIBUTING.md](CONTRIBUTING.md) for guidelines about how to proceed.\n\n## API Documentation\n\nAPI reference has been migrated to [CKB Explorer on ReadMe](https://ckb-explorer.readme.io/)\n\n\u003csub\u003eNote: [Obsolete API documentation](https://nervosnetwork.github.io/ckb-explorer/public/api_doc.html).\u003c/sub\u003e\n\n## License\n\nCKB Explorer is released under the terms of the MIT license. See [COPYING](COPYING) for more information or see\n[https://opensource.org/licenses/MIT](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnervosnetwork%2Fckb-explorer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnervosnetwork%2Fckb-explorer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnervosnetwork%2Fckb-explorer/lists"}