Skip to main content

erga

Keep a website's academic publications list current, automatically, without giving up control of the data.

Status: alpha (v0.3). The CLI pipeline works end-to-end and its output has converged with a production lab site's existing pipeline in a parallel run against live OpenAlex (187/187 records, zero field diffs). That site now builds its publications with erga in CI. The JSON schema may still change before v1.0.

What it does

You list your authors (ORCID iDs) in one config file. erga fetches their works from OpenAlex, normalizes and deduplicates them across registrars (arXiv, Zenodo, publisher records), applies your curation files, and writes a canonical publications.json into your site repository. Your site (Jekyll, Astro, Hugo, anything) renders it however it likes.

  • Curation that survives refresh: manual additions, per-record overrides, and highlights live in their own files and are re-applied on every automated run.
  • Proper APIs, no scraping: OpenAlex (CC0 data) plus Crossref venue backfill, with API etiquette built in (keys, delays, retries).
  • Git-owned data: the output is a diffable, PR-reviewable file in your repo: no hosted embed, no runtime dependency, publications present in the initial HTML.
  • Delivery: a pip-installable CLI, or a GitHub Action. One workflow file plus one config file is the whole setup.

The name: έργα, "works" — the same term OpenAlex uses for publications.

Usage

Install with uv tool install erga or pip install erga (or run one-off with uvx erga). Write an erga.yml:

mailto: you@example.org          # identifies requests to Crossref/OpenAlex
# home: https://ror.org/...      # optional: where these people work (ROR id)
authors:
  - name: Josiah Carberry
    orcid: 9999-9999-9999-9999   # placeholder: no real iD starts 9999
  - name: Another Person
    openalex_id: A5000000000     # alternative when ORCID is missing/wrong

openalex:
  api_key_env: OPENALEX_API_KEY  # optional; env var name, never the key itself

output:
  path: publications.json
  # exclude_types: [other]       # optional: drop e.g. errata/editorial noise

Then:

  • erga build [--config PATH] [--dry-run] runs the pipeline and writes publications.json. With --dry-run it prints a summary (fetched, merged, deduplicated, excluded, backfilled) without writing.
  • erga verify [--config PATH] prints the author-disambiguation report: what each configured author resolves to on OpenAlex, plus a name search for same-name profiles the config does not cover. Warnings tell a split profile (one person, several ids) apart from an iD carried by strangers, and flag resolved profiles whose name does not match the configured author, zero-work authors, and implausible works counts. Run it once when setting up, and whenever a build looks off.

Run erga verify before your first build, because an ORCID does not reliably identify one person on OpenAlex. The same iD can appear on several profiles when it has been mistyped or copied into submissions, and erga tracks all of them, so a wrong iD shows up as a pile of strangers' papers rather than as an error. The report tells you what you are about to fetch.

verify works by comparing names, so the opposite failure is invisible to it: an iD that is correct, on a profile that has collected a same-name stranger's works. Two people who Latinize to the same string are one name to OpenAlex, and re-checking the iD does not help, because the iD is right. So a verified ORCID means erga fetched the person you meant. It does not mean every work it returned is theirs. Read the first build against what you expect, and exclude what does not belong in your overrides file. Where a career is mostly in one place, build also warns about clusters of works tied to an institution that share no collaborator and no institution with the rest of the profile, which is what a same-name stranger's works look like. The warning is advisory; whether to exclude them is your call.

That check works out where "one place" is by counting, which goes quiet on anyone whose record is scattered across places. Setting home: to your institution's ROR id tells it instead, for everyone in the file or per author, and then it can also tell you that a profile is mostly somebody else's work rather than listing that majority as strangers. A thin record stays quiet whoever declares it. It is only ever read by this check: like the ORCID, a declared home is trusted as given and is never treated as evidence that a profile is the right person.

Finding the iD in the first place is your step, and erga does not guess at it. An ORCID in erga.yml is trusted as given. What worked for a department that had iDs on file for five of sixty-three staff: search OpenAlex under every Latinization the person has published with, read each candidate's last_known_institutions, confirm the candidate's ORCID against the employment history on orcid.org, and only then scan the profile for works that look like someone else's. Name plus institution is not enough on its own; a same-name stranger can carry your institution on OpenAlex too.

GitHub Action

The action runs the build and stops there. It writes publications.json and leaves delivery to your workflow, so you compose it with whatever you already use to commit or open pull requests.

- uses: actions/checkout@v5
- uses: belalik/erga@v0.5.0
  with:
    version: "0.5.0"                 # pin explicitly; no default
    config: _data/erga.yml
    api-key: ${{ secrets.OPENALEX_API_KEY }}   # optional

Paths inside the config resolve against the config's own directory, so putting erga.yml where the site wants its data is usually the whole configuration: _data/erga.yml writes _data/publications.json.

Recipe 1, commit back inside your build workflow. The default, and what the origin site runs. Because the build happens in the same job, it sidesteps the rule that pushes made with GITHUB_TOKEN never trigger another workflow.

permissions:
  contents: write

steps:
  - uses: actions/checkout@v5
  - uses: belalik/erga@v0.5.0
    with:
      version: "0.5.0"
      config: _data/erga.yml
      api-key: ${{ secrets.OPENALEX_API_KEY }}
  - run: |
      git config user.name "github-actions[bot]"
      git config user.email "github-actions[bot]@users.noreply.github.com"
      git add _data/publications.json
      git diff --cached --quiet || git commit -m "Update publications"
      git push
  # ...then build and deploy the site as usual, in this same job.

Recipe 2, open a pull request. The right default when you want a review gate, and the only clean path on a protected branch. Repeated runs update one branch and one PR, so quiet weeks produce no noise, and merging is an ordinary push that fires your deploy workflow.

permissions:
  contents: write
  pull-requests: write

steps:
  - uses: actions/checkout@v5
  - uses: belalik/erga@v0.5.0
    with:
      version: "0.5.0"
      config: _data/erga.yml
      api-key: ${{ secrets.OPENALEX_API_KEY }}
  - uses: peter-evans/create-pull-request@v7
    with:
      commit-message: Update publications
      branch: erga/publications
      title: Update publications

Inputs, permissions, scheduling and version-pinning notes: docs/action.md.

Curation

Three optional curation files next to the config survive every refresh: manual.yml (records the APIs miss), overrides.yml (per-record patches, exclusions, dedup exemptions), and tags.yml (tag name to DOI/id lists; tag semantics are entirely yours). The full schema and pipeline design live in docs/requirements-v1.md.

License

MIT

Release files for erga 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for erga 0.5.0
File Size Uploaded
erga-0.5.0.tar.gz 121.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for erga 0.5.0
File Interpreter ABI Platform
erga-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 161.7 kB

Release files / erga-0.5.0.tar.gz

Download URL erga-0.5.0.tar.gz
Size 121.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1b5482fb842e9e67c580f6d489cea6c303fddbfc2311972ca526ee39c344bb65
BLAKE2b-256 checksum
How to use checksums
346c6e27db7fe157afda4f6fcb59f512c723763b9cfae76bb5a8fc02bf8a22d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.

Transparency log

Release files / erga-0.5.0-py3-none-any.whl

Download URL erga-0.5.0-py3-none-any.whl
Size 40.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ad08e7e245edbd3a50d7126bb9ae06476fac75c66bd34d4d907d0c7bf0bfc19f
BLAKE2b-256 checksum
How to use checksums
b9091519e479eecefdd61c7b581c54fe847f0c1493c66a7fa66939e098a9f9d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.

Transparency log

Release history Release notifications | RSS feed

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

This release

0.5.0 This release

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page