Skip to content

napari/npe2api

Repository files navigation

npe2api

The rest API used by napari to query plugins

Status: vercel

https://api.napari.org

how this repo works

  1. The fetch action is triggered by:
    • any push to the main branch
    • a cron job every 10 minutes
    • a workflow_dispatch triggered manually from the actions page
    • TODO: a comment on an issue that says please re-index (or something like that)
  2. When triggered, the fetch action
    1. installs npe2
    2. calls npe2 fetch --all -o public/manifest which
    3. runs scripts/reindex.py which validates the manifests and builds any aggregates/indices.
    4. commits these changes to the main branch using git-auto-commit-action
  3. This triggers vercel to build the (fully static) API and deploy to https://npe2api.vercel.app
  4. Endpoints:

local development

to run the next.js app locally:

git checkout https://github.com/napari/npe2api.git
cd npe2api
npm i
npm run dev