crates.io

crates.io

Connect crates.io to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.

Pull metadata, versions, owners, and daily download counts for Rust crates from the crates.io API into the PostHog Data warehouse.

crates.io's read APIs are public, so no credentials are required. There is no practical way to sync the whole registry, so enter the crate names you want to track, one per line (or comma-separated). For example:

serde
tokio
posthog-rs

Each sync fetches the current data for every configured crate. crates.io has no server-side "changed since" filter, and daily download counts only cover the trailing ~90 days, so all tables sync as a full refresh.

Configuration

OptionTypeRequired
CratestextareaYes

Linking crates.io to PostHog

  1. Go to the Data pipeline page in PostHog
  2. Click New source and select crates.io
  3. Fill in the required configuration fields
  4. Click Next, select the tables you want to sync, and then press Import

Community questions

Questions about this page? or post a community question.