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

quickwin

v2026.5.26-141420

Published

QuickJS Win32 runtime — GUI, networking, WASM, FFI, and more

Downloads

3,686

Readme

QuickWin

QuickJS Win32 runtime — run JavaScript with native Windows GUI, networking, WASM, FFI, and more.

npm i -g quickwin
quickwin script.js

Features

  • Win32 GUI — native windows, buttons, edit boxes, list boxes, tray icons, popup menus
  • Preact renderer — declarative GUI in JSX with useState/useEffect, diff updates
  • HTTP/HTTPSfetch() API, Brotli decompression, chunked transfer, conditional caching
  • WebSocket — full RFC 6455 implementation, ws:// + wss://
  • WebAssembly — WAMR-based, supports WebAssembly.* standard API
  • FFI — call any DLL function via libffi
  • mupdf — embedded PDF rendering
  • PolyfillsTextEncoder, URL, URLSearchParams, btoa/atob, crypto.subtle, setTimeout
  • Dynamic importimport('https://esm.sh/...'), no npm install needed

CLI

quickwin script.js                  # run a script
quickwin examples/preact_demo.js    # run an example

Modules

| Module | Import | Description | |--------|--------|-------------| | std | built-in | file I/O, environment, URL download | | os | built-in | filesystem, process, Worker, timer | | gui | built-in | Win32 window/control/message/tray API | | sock | built-in | socket networking (AddrFamily, FdEvent etc.) | | wolfssl | built-in | TLS/SSL (VerifyMode, ReturnCode etc.) | | ffi | built-in | foreign function interface | | win | built-in | DLL loading (LoadLibrary, GetProcAddress) | | brotli | built-in | Brotli decompression | | wamr | built-in | low-level WAMR API | | fetch | import './lib/fetch.js' | adds fetch(), Response, Headers to globalThis | | websocket | import './lib/websocket.js' | adds WebSocket to globalThis | | polyfill | import './lib/polyfill.js' | adds TextEncoder, URL, btoa/atob, setTimeout to globalThis | | preact | lib/preact/... | JSX → Win32 renderer (render, useState, useEffect) |

Examples

npx quickwin examples/preact_demo.js   # counter GUI with JSX + hooks
npx quickwin examples/tray_demo.js     # system tray app
npx quickwin examples/pdf_preview.js   # PDF reader with mupdf

Build from Source

Prerequisites

  • MSYS2 UCRT64 or MINGW64
  • Node.js (for TypeScript compilation via tsgo)
  • Git (for submodules)

Build

git clone --recursive https://github.com/anomalyco/quickwin.git
cd quickwin

.\run.ps1 "make wamr"       # build WAMR library (first time only)
.\run.ps1 "make minimal"    # build win.exe (-Os + LTO + UPX)
.\run.ps1 "make js"         # compile TypeScript
.\run.ps1 "make test"       # run all tests

Build Targets

| Target | Description | |--------|-------------| | make / make nodebug | fast build | | make minimal | -Os + LTO + UPX, ~1MB | | make release | -O2 + LTO + strip, ~2.5MB | | make debug | debug build with bridge logs | | make js | compile TypeScript via tsgo | | make wasm | compile WAT → WASM fixtures | | make test | run all tests | | make test TEST=-net | skip network tests (fast) | | make test TEST=wasm | run WASM tests only | | make wamr | rebuild WAMR library | | make npm-pkg | package into dist/quickwin/ | | make clean | clean build artifacts |

License

MIT