{"id":13737024,"url":"https://github.com/codex-storage/nim-codex-dht","last_synced_at":"2025-07-13T05:35:54.081Z","repository":{"id":42371528,"uuid":"462139224","full_name":"codex-storage/nim-codex-dht","owner":"codex-storage","description":"A DHT based on Discv5 with libp2p provider records support","archived":false,"fork":false,"pushed_at":"2025-03-26T10:19:36.000Z","size":776,"stargazers_count":3,"open_issues_count":16,"forks_count":5,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-06-09T05:46:16.279Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Nim","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/codex-storage.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHEv2","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":"2022-02-22T04:35:52.000Z","updated_at":"2025-02-14T01:02:00.000Z","dependencies_parsed_at":"2024-01-04T22:37:32.989Z","dependency_job_id":"b441887f-d3fb-4847-810b-cda7d54f3460","html_url":"https://github.com/codex-storage/nim-codex-dht","commit_stats":null,"previous_names":["codex-storage/nim-codex-dht","status-im/nim-libp2p-dht"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/codex-storage/nim-codex-dht","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codex-storage%2Fnim-codex-dht","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codex-storage%2Fnim-codex-dht/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codex-storage%2Fnim-codex-dht/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codex-storage%2Fnim-codex-dht/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codex-storage","download_url":"https://codeload.github.com/codex-storage/nim-codex-dht/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codex-storage%2Fnim-codex-dht/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265096031,"owners_count":23710768,"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-08-03T03:01:33.740Z","updated_at":"2025-07-13T05:35:54.062Z","avatar_url":"https://github.com/codex-storage.png","language":"Nim","funding_links":[],"categories":["Web"],"sub_categories":["Protocols"],"readme":"# A DHT implementation for Codex\n\n[![License: Apache](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n[![Stability: experimental](https://img.shields.io/badge/stability-experimental-orange.svg)](#stability)\n[![CI (GitHub Actions)](https://github.com/codex-storage/nim-codex-dht/workflows/CI/badge.svg?branch=master)](https://github.com/codex-storage/nim-codex-dht/actions/workflows/ci.yml?query=workflow%3ACI+branch%3Amaster)\n[![codecov](https://codecov.io/gh/codex-storage/nim-codex-dht/branch/master/graph/badge.svg?token=tlmMJgU4l7)](https://codecov.io/gh/codex-storage/nim-codex-dht)\n\nThis DHT implementation is aiming to provide a DHT for Codex with the following properties\n* flexible secure transport usage with\n  * fast UDP based operation\n  * eventual fallback to TCP-based operation (maybe though libp2p)\n  * eventually support operation on top of libp2p\n* flexible message encoding that plays well with the above transports\n* provide node lookup, content storage/lookup, and provider storage/lookup operations\n  * roughly follow the libp2p-dht specifications from https://github.com/libp2p/specs/tree/master/kad-dht\n  * eventually provide compatibility mode with the above specs\n\nCurrent implementation is based on nim-eth's Discovery v5 implementation.\n\nBase files were copied from [`status-im/nim-eth@779d767b024175a51cf74c79ec7513301ebe2f46`](https://github.com/status-im/nim-eth/commit/779d767b024175a51cf74c79ec7513301ebe2f46)\n\n## Building\n\nThis repo is setup to use Nimble lockfiles. This requires Nimble 0.14+ which isn't installed by default when this was written. If `nimble -v` reports `0.13.x` then you will need to install Nimble 0.14. Note that using Nimble 0.14 changes how Nimble behaves! \n\nNimble 0.14 can be install by: \n\n```sh\nnimble install nimble@0.14.2\n```\n\nAfter this you can setup your Nimble environment. Note that this will build the pinned version of Nim! The first run can take ~15 minutes.\n\n```sh\nnimble setup # creates a nimble.paths used for rest of Nimble commands\nnimble testAll\n```\n\nYou can also run tasks directly:\n\n```sh\nnim testAll\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodex-storage%2Fnim-codex-dht","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodex-storage%2Fnim-codex-dht","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodex-storage%2Fnim-codex-dht/lists"}