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

@morlay/dsh-oxc-node

v0.2.12

Published

本仓库的 TS 运行时入口:注册 hooks 后 Node 也能跑 node_modules 下的 .ts(ESM only)。壳与宿主按路径取用(工具把它装进随包运行时)。

Readme

@morlay/dsh-oxc-node

本仓库的 TS 运行时入口:注册 Node 的 module hooks,让 node_modules 下的 .ts 也能直接跑(ESM only)。

为什么需要它:Node 内建的 type stripping 拒绝对 node_modules 里的文件动手,而 @oxc-node/core 也刻意 放行那类文件(转译本身当然能做,只是那层策略不放)。这里自己注册 hooks、直接调 oxc-transform, 于是"源码面"(exports 指向 src/*.ts 的包)在壳与宿主里都能直接加载。

用法

node --import <本包>/register.mjs <入口>
  • 壳不直接依赖它:随包运行时(<Resources>/runtime/loader)里放着一份,壳按路径把它交给宿主 与子进程(见 packages/desktop/dsh-desktop-shell/src/index.ts 的 loader);
  • 工具(@local/dshdev)依赖它,并在备 runtime 时把这一份连同它的依赖层一起拷进 <buildCache>/runtime/loader(见 devpackages/dshdev/src/cli/prepare-runtime.ts 的 prepareLoader)。

依赖方向因此是"devpackages → packages":@local/* 只出现在工具链里,不落到任何发布包的运行时依赖上。