Skip to content

sycertech/crates.pm

Repository files navigation

crates.pm

A crates.io indexer for Meilisearch

Usage

Prerequisites

cargo binstall cargo-make

Services

Start Meilisearch with:

./y.sh dev up --wait

This will also start an instance of dozzle, which is at http://localhost:9999. You can also open Meilisearch at http://localhost:7700.

Initial Run: Loading All Crates

For the first load, we use the crates.io-index.

  1. Clone rust-lang/crates.io-index
makers clone-index
  1. Run init
makers run-init

Incremental Updates

In production, two tasks are run periodically:

Task Frequency Description
update_downloads Daily @ 2:30am UTC Downloads the crates-io database dump to update downloads.
live Every 10 minutes Reads the docs.rs RSS feed and updates the index.
makers run update

Frontend

  1. Search-and-replace API keys and Meilisearch URL
  2. Install dependencies with yarn
  3. Start development server with yarn dev
  4. Cash Money

Credits

This project is based on https://github.com/meilisearch/demos.

About

a crates.io indexer for meilisearch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published