@refract-org/ingestion
v0.3.1
Published
MediaWiki ingestion client for fetching revisions, diffs, page metadata, and source histories from Wikipedia, Fandom, and generic MediaWiki instances
Readme
@refract-org/ingestion
Wikimedia API adapters — revision fetching, diffing, rate limiting.
bun add @refract-org/ingestionExports
Interfaces
RevisionFetcher— fetch revisions by page titleRevisionSource— async iterable revision streamDiffFetcher— fetch diff between two revisions
Classes
MediaWikiClient— Wikipedia REST API client with pagination and error handlingRateLimiter— configurable request throttling
import { MediaWikiClient, RateLimiter } from "@refract-org/ingestion";
import type { RevisionFetcher, RevisionOptions } from "@refract-org/ingestion";