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

@silviomollov/ai-isolate-quickjs

v0.1.46-fork.3

Published

Temporary fork of @tanstack/ai-isolate-quickjs (0.1.45) with promise-bridge host functions replacing asyncify (fixes quickjs-emscripten#258 refcount corruption on sequential tool awaits). Use until the upstream fix is released.

Downloads

248

Readme

@silviomollov/ai-isolate-quickjs

Temporary fork of @tanstack/ai-isolate-quickjs 0.1.45 (MIT, © TanStack). Host tool functions are bridged as QuickJS promises instead of asyncify suspensions, fixing refcount corruption / WASM aborts on sequential awaits of the same tool binding (quickjs-emscripten#258), and enabling concurrent tool calls via Promise.all. The fix uses the plain (non-asyncify) QuickJS build — if you bundle the wasm yourself, ship @jitl/quickjs-wasmfile-release-sync/wasm. This package will be deprecated once the fix lands upstream.

Drop-in usage via npm alias: "@tanstack/ai-isolate-quickjs": "npm:@silviomollov/[email protected]"

QuickJS WASM driver for TanStack AI Code Mode. Runs everywhere — Node.js, browsers, and edge runtimes — with zero native dependencies.

Installation

pnpm add @tanstack/ai-isolate-quickjs

Usage

import { createQuickJSIsolateDriver } from "@tanstack/ai-isolate-quickjs";
import { createCodeModeTool } from "@tanstack/ai-code-mode";

const driver = createQuickJSIsolateDriver({
  timeout: 30000, // execution timeout in ms (default: 30000)
  memoryLimit: 128, // memory limit in MB (default: 128)
  maxStackSize: 512 * 1024, // max stack size in bytes (default: 512 KiB)
});

const executeTypescript = createCodeModeTool({
  driver,
  tools: [myTool],
});

Config Options

  • timeout — Default execution timeout in milliseconds (default: 30000)
  • memoryLimit — Default QuickJS runtime memory limit in MB (default: 128)
  • maxStackSize — Default QuickJS runtime max stack size in bytes (default: 524288)

Tradeoffs vs Node Driver

| | QuickJS (WASM) | Node (isolated-vm) | | --------------- | -------------------------- | ----------------------- | | Native deps | None | Yes (C++ addon) | | Browser support | Yes | No | | Performance | Slower (interpreted) | Faster (V8 JIT) | | Memory limit | Configurable | Configurable | | Best for | Browser, edge, portability | Server-side performance |

How It Works

Uses QuickJS compiled to WebAssembly via quickjs-emscripten. Each execution creates a fresh async QuickJS context with tool bindings injected as global async functions.

Runtime Limits and Errors

  • QuickJS enforces runtime memory and stack limits for each context.
  • Exceeding limits can produce normalized errors such as MemoryLimitError or StackOverflowError.
  • Certain fatal limit conditions may dispose the underlying VM; create a fresh context before running more code after disposal.

Refreshing the Fork

From Git Bash, refresh the staged sources and set the next package version with:

./refresh.sh 0.1.46-fork.2

The source repository defaults to the sibling ../ai directory. Set REPO_DIR if it is elsewhere.

License

MIT