Skip to content

sonic-chain/storetheindex

 
 

Repository files navigation

StoreTheIndex 🗂️

Go Reference Coverage Status

The first place to go in order to find a CID stored in Filecoin

This repo provides an indexer implementation that can be used to index data stored by a range of participating storage providers.

Design

Current Status

Released for production: The current production release is running at https://cid.contact

This project and is currently under active development 🚧.

Install

This assumes go is already installed.

Install storetheindex:

go get github.com/filecoin-project/storetheindex

Initialize the storetheindex repository and configuration:

storetheindex init

Optionally, edit the configuration

edit ~/.storetheindex/config 

Running the Indexer Service

To run storetheindex as a service, run the daemon command. The service watches for providers to index, and exposes a query / content routing client interface.

The daemon is configured by the config file in the storetheindex repository. The config file and repo are created when storetheindex is initialized, using the init command. This repo is located in the local file system. By default, the repo is located at ~/.storetheindex. To change the repo location, set the $STORETHEINDEX_PATH environmental variable.

Indexer CLI Commands

There are a number of client commands included with storetheindex. Their purpose is to perform simple indexing and lookup actions against a running daemon. These can be helpful to test that an indexer is working. These include the following commands:

Informational:

  • find Find value by CID or multihash in indexer
  • providers Show information about providers known to the indexer
    • get Get information about a specified provider
    • list List the known providers

Administrative:

  • admin Perform admin activities with an indexer
    • allow Allow advertisements and content from peer
    • block Block advertisements and content from peer
    • import-providers Import provider information from another indexer
    • reload-config Reload various settings from the configuration file
    • sync Sync indexer with provider
  • init Initialize or upgrade indexer node config file

Testing:

  • import Imports data to indexer from different sources
  • register Register provider information with an indexer
  • synthetic Generate synthetic load to import in indexer

Help

To see a list of available commands, see storetheindex --help. For help with command usage, see storetheindex <command> --help.

Configuration

The storetheindex config file documentation

License

SPDX-License-Identifier: Apache-2.0 OR MIT

About

A storethehash based directory of CIDs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 88.9%
  • HCL 9.5%
  • Shell 0.6%
  • Dockerfile 0.5%
  • Python 0.2%
  • Makefile 0.2%
  • HTML 0.1%