npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

seaf-plugins-toolkit

v0.1.2

Published

CLI toolkit for developing and packaging SEAF document plugins

Downloads

630

Readme

SEAF Plugins Toolkit

CLI для разработки и сборки document plugins SEAF ArchTool. Один проект — один плагин. Toolkit устанавливается как dev dependency; создавайте проект отдельно от репозитория toolkit.

Быстрый старт

Нужны Node.js 22.12+ и npm 10.8.3+.

В репозитории toolkit выполните npm pack --ignore-scripts. Затем в отдельном каталоге создайте проект (замените путь к .tgz на фактический):

mkdir my-card
cd my-card
npm init -y
npm install --save-dev --save-exact /path/to/seaf-plugins-toolkit-0.1.0.tgz
npx seaf-plugin init my-card
npm install

init создаёт src/, plugin.json и vite.config.js, добавляет зависимости в package.json, но не устанавливает их — поэтому нужен второй npm install.

Команды

Запускайте из проекта плагина. CLI находит его корень по plugin.json; явно указать корень можно через --workspace /path/to/my-card.

| Команда | Что делает | |---|---| | npx seaf-plugin init [name] | Создаёт плагин; повторный запуск обновляет инструкции AGENTS.md, сохраняя исходники | | npx seaf-plugin dev | Собирает preview в .dev/ и пересобирает при изменениях | | npx seaf-plugin dev --once | Собирает preview один раз, без watcher | | npx seaf-plugin bundle | Собирает релиз и catalog.json в dist/ | | npx seaf-plugin clean | Удаляет только dist/, не затрагивая исходники и preview | | npx seaf-plugin portal up | Запускает Docker-портал для preview | | npx seaf-plugin portal down | Останавливает и удаляет контейнер портала | | npx seaf-plugin portal restart | Перезапускает портал для перечитывания manifests | | npx seaf-plugin portal logs | Показывает последние 100 строк логов | | npx seaf-plugin --help / --version | Справка / версия toolkit |

Базовый цикл разработки

  1. Редактируйте Vue-компоненты в src/. Регистрация типов документов — в src/index.js, описание плагина — в plugin.json; типы должны совпадать и быть уникальными.
  2. Запустите npx seaf-plugin dev, проверьте результат в портале (см. ниже). После успешной пересборки обновляйте страницу вручную — HMR нет.
  3. Выполните npx seaf-plugin bundle. Результат: dist/catalog.json и dist/<plugin-id>/ с JS, CSS и descriptor.
  4. Для поставки скопируйте содержимое dist/ в dist/plugins/ портала (или public/plugins/ перед сборкой core). Не затирайте каталог других плагинов: catalog.json задаёт весь список. Для отображения документа добавьте в архитектурный manifest документ с соответствующим type.

После обновления toolkit запустите npx seaf-plugin init: он обновит managed AGENTS.md. Собственные инструкции в этом файле не храните — он перезаписывается.

Подробнее: разработка плагинов. Для работы над самим toolkit: make test, make pack; публикация.

Preview через Docker

Нужен Docker Compose v2. Из проекта плагина:

npx seaf-plugin dev          # терминал 1: дождитесь [preview] Ready
npx seaf-plugin portal up    # терминал 2

Откройте http://localhost:8080 → Plugin development/my-card. Первый запуск скачает образ портала. Docker использует preview из .dev/, а не релизный dist/.

  • После правок исходников дождитесь пересборки и обновите страницу.
  • После изменения manifest или типов документов выполните npx seaf-plugin portal restart; после изменения vite.config.js перезапустите dev.
  • Другой порт: SEAF_PORTAL_PORT=8081 npx seaf-plugin portal up; другой совместимый образ — через SEAF_PORTAL_IMAGE.
  • Завершение: Ctrl+C в терминале с dev, затем npx seaf-plugin portal down.