Search engine for the Interplanetary Filesystem. Sniffs the DHT gossip and indexes file and directory hashes. (fork of github.com/ipfs-search/ipfs-search for review/fixes)
  • Go 99.4%
  • Dockerfile 0.4%
  • Makefile 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-09 13:17:26 +00:00
.github Cleanup FUNDING. 2020-12-26 15:13:33 +00:00
commands fix(crawl): return error instead of log.Fatal so defers run 2026-09-09 14:46:43 +02:00
components chore: remove dead commented-out tracing spans and unreachable debug logs 2026-09-09 14:54:01 +02:00
config fix(sniffer): exponential backoff on restart instead of fixed 1s 2026-09-09 14:51:04 +02:00
docs Make sure snapshot URLs are updated. 2023-05-31 14:12:58 +01:00
instr Upgrade otel (#229) 2022-09-27 16:25:52 +01:00
scripts Test coverage script. 2020-07-29 11:06:08 +01:00
types Integrating caching and Redis index. 2022-09-29 17:42:08 +01:00
utils Upgrade otel (#229) 2022-09-27 16:25:52 +01:00
.codeclimate.yml Enable additional plugins for CodeClimate. 2021-02-06 16:43:06 +00:00
.dockerignore Move deployment to separate repo. Closes #67. 2020-11-12 16:22:49 +00:00
.editorconfig Common over specific editor settings. 2021-03-26 16:36:30 +00:00
.gitignore Ignore built docs (we only want source in GIT). 2021-03-25 15:52:45 +00:00
.gitlab-ci.yml Bump Go to 1.19 2022-09-28 15:19:21 +01:00
CONTRIBUTING.md Restructuring docs 2021-05-21 16:00:41 +02:00
docker-compose.yml Bump kubo to 0.15.0 2022-09-29 17:42:09 +01:00
Dockerfile fix(docker): build production binary without -race; move race tests to optional target 2026-09-09 14:51:42 +02:00
go.mod Bump OpenSearch, tidy modules. Closes #247. 2023-04-25 16:38:11 +01:00
go.sum Bump OpenSearch, tidy modules. Closes #247. 2023-04-25 16:38:11 +01:00
LICENSE Initial commit 2016-08-14 11:21:02 +02:00
main.go Replace ElasticSearch by OpenSearch. 2022-09-27 10:58:35 +01:00
main_test.go Travis and CodeClimate coverage fixups; working. 2018-01-06 22:52:11 +00:00
Makefile Don’t check for race conditions. 2021-11-26 13:07:34 +00:00
README.md docs(readme): note EOL toolchain and forked dependencies 2026-09-09 14:52:50 +02:00
readthedocs.yaml move readthedocs.yaml 2021-04-28 10:57:25 +02:00

ipfs-search.com

pipeline status Maintainability Test Coverage Documentation Status Go Reference Backers on Open Collective Sponsors on Open Collective

Search engine for the Interplanetary Filesystem. Sniffs the DHT gossip and indexes file and directory hashes.

Metadata and contents are extracted using ipfs-tika, searching is done using OpenSearch, queueing is done using RabbitMQ. The crawler is implemented in Go, the API and frontend are built using Node.js.

The ipfs-search command consists of two components: the crawler and the sniffer. The sniffer extracts hashes from the gossip between nodes. The crawler extracts data from the hashes and indexes them.

Docs

Documentation is hosted on Read the Docs, based on files contained in the docs folder. In addition, there's extensive Go docs for the internal API as well as SwaggerHub OpenAPI documentation for the REST API.

Contact

Please find us on our Freenode/Riot/Matrix channel #ipfs-search:matrix.org.

Snapshots

ipfs-search provides the daily snapshot for all of the indexed data using snapshots. To learn more about downloading and restoring snapshots please refer to the relevant section in our documentation.

Contributors wanted

Building a search engine like this takes a considerable amount of resources (money and TLC). If you are able to help out with either of them, do reach out (see the contact section in this file).

Please read the Contributing.md file before contributing.

Roadmap

For discussing and suggesting features, look at the issues.

External dependencies

  • Go 1.19
  • OpenSearch 2.3.x
  • RabbitMQ / AMQP server
  • NodeJS 9.x
  • IPFS 0.7

Maintenance note (toolchain staleness): The pinned toolchain is from 2022 and several components are past end-of-life as of this writing: Go 1.19 (EOL Aug 2023), ipfs/kubo:v0.15.0 (2022), and opensearchproject/opensearch:2.3.0 (2022). go.mod also uses replace directives pointing at ipfs-search/ forks of testify and radix — review those forks before relying on them. A version bump is a separate effort from the code-review fixes in this branch; this note records the current state for operators.

  • Redis

Internal dependencies

Building

$ go get ./...
$ make

Running

Docker

The most convenient way to run the crawler is through Docker. Simply run:

docker-compose up

This will start the crawler, the sniffer and all its dependencies. Hashes can also be queued for crawling manually by running ipfs-search a <hash> from within the running container. For example:

docker-compose exec ipfs-crawler ipfs-search add QmS4ustL54uo8FzR9455qaxZwuMiUhyvMcX9Ba8nUH4uVv

Ansible deployment

Automated deployment can be done on any (virtual) Ubuntu 16.04 machine. The full production stack is automated and can be found in it's own repository.

Contributors

This project exists thanks to all the people who contribute.

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors


ipfs-search is supported by NLNet through the EU's Next Generation Internet (NGI0) programme.


RedPencil is supporting the hosting of ipfs-search.com.

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]