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

kex-ts

v0.1.0

Published

Fast TypeScript runner. tsx alternative powered by Rolldown/Oxc.

Downloads

6

Readme

tsox

Fast TypeScript runner for Node.js. Like tsx but uses Rolldown/Oxc (Rust) instead of esbuild (Go) for transforms.

Install

pnpm add tsox

Usage

tsox file.ts                       # run a ts file
tsox watch server.ts               # watch mode
tsox -e "const x: number = 1"      # eval
tsox -p "1 + 2"                    # eval + print
tsox --test                        # node test runner w/ ts
tsox                               # repl

All node flags pass through (--env-file, --inspect, etc).

As a loader

Skip the CLI overhead entirely:

node --import tsox/loader file.ts

Benchmarks

Measured with hyperfine on Node v25.6.1, macOS arm64. 30 runs, 3 warmup.

Hooks-only (no CLI process, just the loader -- apples-to-apples transform comparison):

| | tsx | tsox | | |---|--:|--:|---| | 1 file | 177ms | 126ms | 1.4x | | 5 modules | 193ms | 120ms | 1.6x | | 100 modules | 303ms | 148ms | 2.1x |

E2E (full tsox file.ts vs tsx file.ts):

| | tsx | tsox | | |---|--:|--:|---| | 1 file | 190ms | 153ms | 1.2x | | types-heavy | 208ms | 151ms | 1.4x | | enums | 207ms | 146ms | 1.4x | | 5 modules | 171ms | 143ms | 1.2x | | 100 modules | 226ms | 164ms | 1.4x |

The gap grows with more modules since Oxc's per-file transform cost is way lower than esbuild's (~0.02ms vs ~0.31ms). E2E numbers are closer because both tools pay the same child-process spawn cost.

Run bash bench/run.sh to reproduce (needs hyperfine + tsx).

How it works

Same architecture as tsx -- CLI spawns node --no-strip-types --import <loader> file.ts, loader registers ESM hooks via module.register(), hooks intercept .ts/.tsx/.mts/.cts imports and run them through Oxc's transformSync. CJS support via Module._extensions patching.

We import from rolldown/utils instead of rolldown/experimental which avoids loading the full bundler engine (~9ms vs ~44ms import time).

Also handles .js -> .ts remapping, extensionless resolution, directory/index resolution, and tsconfig paths (lazy-loaded so there's zero cost if you don't use them).

Requirements

  • Node >= 22.12.0
  • Works as a drop-in tsx replacement (same CLI flags, same loader interface)

License

MIT