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

omnimux-publish

v0.1.2

Published

omnimux-publish: social publishing orchestration layer over OmniMux hub publish tools. Drafts, per-account subtask ledger, publish/retry/refresh, agent tools + local web UI.

Readme

omnimux-publish

当前产品方向见角色生成与视频复刻。本页保留该组件的技术职责与既有实现记录,不证明全部功能当前可用,也不扩展默认产品范围;模型/渠道信息属于内部执行,普通用户的简化入口仍需对应实现证据。

社媒内容发布中心插件(Host + Client 双半边):从草稿到多账号分发到审核跟进的发布编排层。执行走 hub omnimux_publish_* 官方工具通道,本插件不直连任何平台、不存任何 OMNIMUX_* secret。

  • PRD:docs/PRD.md(v1 Confirmed)
  • 架构:docs/architecture.md(Phase 2 定稿)
  • hub 工具契约核对:docs/hub-tool-contracts.md(T0 产出,含 statusMap 定稿依据)

形态

双半边(同 omnimux-accounts / omnimux-assets 范式):

  • Host 半边(src/):9 个 publish_* 工具 + publish:ops systemPrompt section + /omnimux/publish(及兼容别名 /dsh-publish)HTTP 前缀路由
  • 客户端半边(src/client/ → esbuild → lib/client.js,ModuleLoader id = omnimux-publish):侧边栏「发布」行(协调器 rank 4.2,marker data-omnimux-publish-entry)+ shell.overlay 一级页(slot id omnimux-publish-stage,order 22)三 tab + 发布页(视频/图文表单 + 媒体拾取 + 能力矩阵表单裁剪)+ 账号面板(平台→账号两级勾选,数据源 hub GET /omnimux/accounts)+ 一键发布(submit 立即返回 + state?rev= 轮询进度)+ 记录详情(per-account 子任务 + 手动刷新 + 单账号重试)

装载件:package.json 带 dsh.bundle.patch + exports['./client'] + files;工具用 raw ctx.tools.register + objectParams(完整 JSON Schema,additionalProperties:false)。

安装(dev profile 验证用法)

# dev 环境(推荐,数据根 ~/.dsh-dev 与生产隔离)
PDIR=~/.dsh-dev/profiles/omnimux-dev-publish
mkdir -p "$PDIR" && cp ~/.dsh/profiles/omnimux/package.json ~/.dsh/profiles/omnimux/cordis.patch.yml "$PDIR/"
cp -Rc ~/.dsh/profiles/omnimux/node_modules "$PDIR/node_modules"
ln -s "$PWD" "$PDIR/node_modules/omnimux-publish"
cat > "$PDIR/verify.patch.yml" <<'EOF'
- insert:
    - id: omnimux-publish
      name: omnimux-publish
EOF

# 配置树确认(应出现 omnimux-publish 条目)
DSH_HOME=~/.dsh-dev node <harness>/apps/cli/lib/bin.js \
  --profile omnimux-dev-publish --patch "$PDIR/verify.patch.yml" --dump-config | grep omnimux-publish

# 启动 Host(日志无 error 即装载成功;/omnimux/publish 路由应答即 apply() 完整跑通)
DSH_HOME=~/.dsh-dev node <harness>/apps/cli/lib/bin.js \
  --profile omnimux-dev-publish --patch "$PDIR/verify.patch.yml" --host 127.0.0.1 --port 0 --no-open

生产 profile 走 dsh plugin --profile <name> add <package>(file: 物化形态,见 dev-doctor 规范)。

验证命令

npm test              # node --test src/*.test.js src/client/*.test.js —— L1 单测(Host + 客户端纯逻辑)
npm run build         # esbuild → lib/client.js(ModuleLoader 包裹,ID = omnimux-publish)
curl "$B/omnimux/publish/state"                # 修订号轮询
curl "$B/omnimux/publish/capabilities"         # 合并后能力矩阵(UI 表单裁剪数据源)
curl "$B/omnimux/publish/records?status=draft" # 三 tab 列表
curl -X POST "$B/omnimux/publish/media?filename=a.png" -H "Origin: http://127.0.0.1:<port>" \
     -H "Content-Type: image/png" --data-binary @a.png   # 媒体入库(sha256)
# 客户端装载验证(boot manifest 与 client.js 可达,同 omnimux-assets 惯例):
#   1) curl "$B/" | grep omnimux-publish        → boot manifest 含 omnimux-publish 条目
#   2) curl "$B/plugins/omnimux-publish/client.js?rev=<manifest rev>" → 200 text/javascript
#   3) Host 日志 0 error

注意:POST 需同源(loopback origin 或无 Origin);跨源 POST 一律 403(assertLocalWrite 自实现)。

数据位置

$DSH_HOME/omnimux/publish/(目录 0700 / JSON 0600 / tmp+rename 原子写):

  • records.json —— 单一账本:草稿 + 发布记录 + per-account 子任务(三类记录是状态机视图)
  • media.json + media/<sha256> —— 内容寻址媒体仓(上传字节与本地路径导入统一入库)
  • 只读依赖:$DSH_HOME/omnimux/accounts.json(omnimux-accounts overlay,数据文件耦合,不 import hub 模块)

配置(plugin config,坏配置显式失败)

| 字段 | 默认 | 说明 | |---|---|---| | dataDir | $DSH_HOME/omnimux/publish | 数据目录覆盖 | | platforms | 内置矩阵 | 平台能力矩阵深合并覆盖(media_types/supports_cover/supports_schedule/max_images/声明槽位) | | statusMap | 内置映射 | hub get 平台原始状态 → submitted/reviewing/published/failed(见 hub-tool-contracts.md §4) | | maxMediaMb | 512 | 单媒体入库上限 | | submitTimeoutSeconds | 120 | 单账号 create 超时 | | accountsOverlayPath | $DSH_HOME/omnimux/accounts.json | overlay 只读路径 |

版本观察

  • harness 141eb6fef8(dsh-0.1.0-rc.8);产品树 e25b9cb
  • ctx.tools.execute 程序化调用通道:packages/core/tools/src/index.ts:1342(官方测试 tools.spec.ts:91)