LitSync#

Incremental mirror for PubMed, PMC, FDA, and ClinicalTrials.gov

LitSync is a daily-runnable CLI for mirroring bulk biomedical datasets. It tracks every file in a SQLite state database, so re-runs do the minimum work: already-verified immutable files are skipped with no network request beyond the directory/manifest listing.

Quick Start

Install LitSync and run your first mirror in five minutes.

Quick Start
User Guide

Learn about the on-disk layout, integrity model, cron setup, and best practices.

User Guide
CLI Reference

Complete reference for litsync and litsync-extract commands and options.

CLI Reference
API Reference

Python API for configuration, syncing, sources, state, and extraction.

API Reference

What LitSync does#

  1. Plan — lists the remote directories/manifests of the enabled sources.

  2. Diff — compares each remote file against the SQLite ledger and local disk.

  3. Download — fetches only new or changed files, atomically and resumably.

  4. Verify — checks MD5 sidecars (PubMed) or size/ETag (PMC, FDA, ClinicalTrials.gov).

  5. Extract — converts the mirror into sharded JSONL corpora with litsync-extract.

litsync --data-root /data/literature --email you@institute.org

Where to go next#