sources

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package sources holds one subpackage per external API.

One package per source means rate limiting, retry, caching and response-shape quirks live in exactly one place per upstream. All of them dial out through internal/httpx.

Subpackages return their own types. Mapping those onto rows belongs to internal/graph — sources never imports store, and store never imports sources.

No network in unit tests: record real responses as fixtures and replay them through an http.RoundTripper stub.

Directories

Path Synopsis
Package openalex is the client for the OpenAlex API — the source of works, metadata, resolved reference lists and open-access locations.
Package openalex is the client for the OpenAlex API — the source of works, metadata, resolved reference lists and open-access locations.
Package unpaywall resolves a DOI to a legal open-access PDF location, as the second opinion when the OA locations from OpenAlex come up empty.
Package unpaywall resolves a DOI to a legal open-access PDF location, as the second opinion when the OA locations from OpenAlex come up empty.
Package zotero reads a user's existing Zotero library.
Package zotero reads a user's existing Zotero library.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL