flowchart TD
A[Sparse Index] --> B(Find Ratatui Dependents)
B --> C{Index Cache Check}
C -->|Needs Fetch| D[Fetch from crates.io]
C -->|Fresh/Hit| E[Load from Metadata Cache]
D --> F[Update Caches]
E --> F
F --> G[Generate ratcrate.json]
02-overview
Chapter 2 — Project Overview
What ratcrate-core Does
- Reads the crates.io sparse index
- Identifies crates that depend on
ratatui - Fetches metadata from the crates.io HTTP API
- Applies intelligent multi-day caching
- Produces the final
ratcrate.jsondataset
High-Level Pipeline
Inputs and Outputs
Input:
Local clone of crates.io sparse index
Crates.io HTTP API
Output:
output/ratcrate.json