Skip to content

napari/npe2api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c83d2d4 · Apr 25, 2025
Feb 25, 2025
Aug 23, 2022
Dec 6, 2022
Apr 25, 2025
Jan 12, 2025
Nov 29, 2022
Jul 27, 2022
Aug 17, 2022
Mar 7, 2023
Aug 4, 2022
Aug 4, 2022
Jan 6, 2025

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