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

@republicroad/jdm-appshell

v0.7.0

Published

Application shell for @republicroad/jdm-editor — custom node hosting, UI slot overrides and skinning

Readme

@republicroad/jdm-appshell

@republicroad/jdm-editor(内核)的参考消费者层:自定义节点托管、UI 槽位 出现与换肤、持久化契约与认证适配。

定位

宿主应用 (apps/*)
  ├── @republicroad/jdm-appshell   → 观点性 shell Provider / 自定义节点 / UI kit / 持久化
        └── @republicroad/jdm-editor   → 编辑器内核(peer)
              └── react >= 18 (peer)
  • 内核只提供编辑器界面/主题/导入契约,不持有任何宿主观点。
  • appshell 承载业务侧自定义节点、皮肤系统(按 kind 出现/替换节点 UI, 配合 JdmConfigProvider seeds 一键换肤)与图持久化契约。

五大职责域

| 职责域 | 位置 | 内容 | | -------------------- | ------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------- | | Custom node 宿主 | components/custom-node/hooks/useCustomNodes.ts | 六节点(http-request / query-list / crypto / json-path / template / current-date)+ KeyValueEditor + LockedCornerBadge | | Registry 与协议 | lib/ | custom-node-registry(schema→节点,内置兜底)、协议库(http-request / json-path / crypto)、user-resolver、storage-key | | 组合 Hook | hooks/useCustomNodes.ts | 基础节点 + schema 拉取节点(优雅回退)+ 皮肤覆盖 → customNodes 数组 | | Skin 皮肤系统 | skin/context/theme.provider | applyNodeOverrides 按 kind 覆盖 renderTab/renderNode | | 持久化契约 | shell/persistence.tsshell/graphs-http-adapter.ts | GraphPersistenceAdapter:宿主实现,乐观锁 + 404 语义 + 版本历史 |

在线文档:https://republicroad.github.io/jdm-editor/docs/

完整说明见仓库文档 docs/appshell.md(在线站点 Docs 区同文)。

宿主接线

import { DecisionGraph } from '@republicroad/jdm-editor';
import { useCustomNodes } from '@republicroad/jdm-appshell';

// 六个自定义节点开箱即用;schema 拉取失败时自动回退内置定义
const { customNodes, ready } = useCustomNodes();

// 完整壳:用户解析(better-auth 或匿名)+ 持久化适配器由宿主实现
<DecisionGraph customNodes={customNodes} userResolver={...} />

消费方式

  • monorepo 内部:源码直连——main/types 直指 src/index.ts, vite/bun 直接吃源码;路径别名见根 tsconfig.json@republicroad/jdm-appshell / @republicroad/jdm-appshell/*)。
  • 外部(npm)publishConfig 于发布时切换到 dist/bun run build 产出 index.js + index.d.ts + style.css)。

开发

pnpm --filter @republicroad/jdm-appshell typecheck   # tsc --noEmit
pnpm --filter @republicroad/jdm-appshell test        # vitest(8 套件 / 67 用例)
pnpm --filter @republicroad/jdm-appshell build       # dist + style.css
pnpm --filter @republicroad/jdm-appshell test:npm-smoke

运行要求

  • React >= 18;@republicroad/jdm-editor >= 0.3;monaco-editor 需显式安装
  • Tailwind v4 + shadcn 语义 token(--background/--foreground/... 参考 src/main.css);内核侧 --grl-* 变量由 JdmConfigProvider 自动注入

发布契约

dist 是唯一的发布工件(npm 安装即 dist/);monorepo 内部消费源码直连 (main/types → src/index.ts),便于本仓库内的快速迭代与外部仓库的稳定性 隔离。