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

@alexzeng666/dsh-timelab

v0.1.1

Published

Speeds up, slows down, or shifts the target process's clock.

Readme

dsh-timelab

Speeds up, slows down, or shifts the target process's clock.

Install

dsh plugin --profile "$env:DSH_PROFILE" add @alexzeng666/dsh-timelab

Usage

verify_timeshift(pid=12345, offset_sec=3456000)            # 40 days forward
verify_timeshift(pid=12345, offset_sec=-86400)             # 1 day back
verify_timeshift(pid=12345, factor=5, duration_ms=10000)   # 5x speed

Pick either offset_sec or factor. Hooks are removed at duration_ms.

Covered APIs (19)

| Category | APIs | |---|---| | Reads | GetTickCount GetTickCount64 timeGetTime QueryPerformanceCounter GetSystemTimeAsFileTime GetSystemTimePreciseAsFileTime GetMessageTime GetSystemTime GetLocalTime | | Waits | Sleep SleepEx WaitForSingleObject WaitForSingleObjectEx WaitForMultipleObjects WaitForMultipleObjectsEx | | Timers | SetTimer SetWaitableTimer SetWaitableTimerEx timeSetEvent |

Algorithm

Reads use four-point baseline re-anchoring: the first call sets baseReal = baseHook = real, after which virtual = baseHook + (real - baseReal) × factor; offset mode adds a fixed offset on top. On a factor change it re-anchors on the last observed value, so virtual time stays continuous across the switch.

Waits / timers take duration ÷ factor, with INFINITE and 0 passed through unchanged.

Return

VerifyFragment. detail holds mode, hooks_installed, hook_failures, covered_apis and log_path.

Behavior

  • kernel32's forwarded APIs (Sleep, GetSystemTimeAsFileTime and friends) are really implemented in kernelbase: the hook tries kernelbase first and falls back to the given module. Otherwise it installs but never fires.
  • Hooks install one at a time; a failure loses only that one, counted in hook_failures.
  • Early exit, injection failure, or not a single hook installed all still produce a conclusion.
  • 32-bit targets are not supported.