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

@wyreup/core

v3.0.2

Published

Tools for local file and text processing, calculations, and public network lookups.

Readme

@wyreup/core

Privacy-first tools for images, PDFs, audio, text, and calculations. Local processing tools use your device. Public network lookups disclose what they send before execution. Wyreup's hosted inference and account service is retired; legacy hosted definitions remain in the library for compatibility, but the service rejects their requests. Use local tools without an account.

Domain Registration Age is a free network tool: the entered domain is sent to Wyreup, which reads the public IANA bootstrap without sending IANA the queried domain, then sends the domain to its registration registry. No API key is required. Registration age may differ from first-ever use. Node callers use the trusted ctx.proOrigin (default https://wyreup.com); browser callers use the current site origin. This tool needs a connection.

Wyreup keeps no domain-query database. Public lookups use temporary rotating HMAC network counters and random short-lived reservation tokens for shared capacity limits. Shared networks can reach those limits together. Expired records are pruned on later requests; platform logs and backups have their own retention. Your caller, assistant provider, local operator, or exported results may retain inputs and outputs.

Install

npm install @wyreup/core

Requires Node >= 22.13.0. Ships browser and Node builds. Individual tools also require the browser or native capabilities used by their runtime adapters.

Model tools require the optional official runtime:

npm install @huggingface/transformers@^4.3.1

When upgrading an existing installation, update its transitive lockfile entries, then reinstall. An old lockfile can retain vulnerable native dependencies even after the top-level Wyreup version changes. The patched model graph requires Transformers.js >= 4.3.1, onnxruntime-node >= 1.30.0, sharp >= 0.35.5, adm-zip >= 0.6.1 and global-agent >= 4.1.3. Check nested installed versions and run your package manager's full dependency audit.

OpenPGP migration

PGP tools use OpenPGP.js 6. Standard v4 keys, armored and binary messages, passphrase-protected keys and detached signatures remain supported. Legacy experimental v5 key packets are rejected; they are different from standard v4 keys generated by OpenPGP.js 5. Migrate legacy v5 material with a trusted local PGP application before upgrading. Do not enable experimental v5 parsing as a workaround. Keep existing key backups until you have verified the migration.

Usage

import { createDefaultRegistry } from '@wyreup/core';
import { readFile } from 'node:fs/promises';
import { randomUUID } from 'node:crypto';

const registry = createDefaultRegistry();
const tool = registry.toolsById.get('compress');

// Read input file
const bytes = await readFile('photo.jpg');
const input = new File([bytes], 'photo.jpg', { type: 'image/jpeg' });

// Run the tool
const ctx = {
  onProgress: () => {},
  signal: new AbortController().signal,
  cache: new Map(),
  executionId: randomUUID(),
};
const result = await tool.run([input], { quality: 80 }, ctx);
// result is a Blob or Blob[]

Chain tools

import { createDefaultRegistry, runChain, parseChainString } from '@wyreup/core';
import { randomUUID } from 'node:crypto';

const registry = createDefaultRegistry();
const chain = parseChainString('strip-exif|compress[quality=75]');

const ctx = {
  onProgress: () => {},
  signal: new AbortController().signal,
  cache: new Map(),
  executionId: randomUUID(),
};

const outputs = await runChain(chain, [inputFile], ctx, registry);
// outputs is Blob[]

Available tool categories

  • Image — compress, convert, crop, resize, rotate, flip, watermark, face-blur, strip-exif, image-diff, OCR, SVG rendering, favicon, color palette, color-blind simulation, background removal, 2× upscale, image captioning
  • PDF — merge, split, compress, rotate, reorder, extract/delete pages, extract images, page numbers, encrypt/decrypt, redact, extract tables/text, convert to/from images, watermark, metadata, prompt-injection scan
  • Audio + video — transcribe (Whisper), audio enhance, convert, extract, trim, record, video concat/crossfade/overlay/color, video to GIF, burn subtitles
  • Text — diff, redact, suspicious-scan, confusable detection, template (mustache), summarise, translate, sentiment, NER, stats, readability, unicode info/normalize, Markdown and HTML conversion
  • Dev — JSON (format, diff, merge, flatten, path, schema infer/validate), YAML, XML ↔ JSON, SQL/CSS/HTML formatting, CSS/HTML minify, regex, JWT decode, OpenAPI / package.json validation
  • Security & auth — hash, hmac, base32/58/64, TOTP/HOTP, JWT sign, signed URLs, signed cookies, backup codes, API/license keys, OTP-auth URIs, webhook verify/replay, file fingerprint
  • Privacy — strip EXIF, face blur, PGP encrypt/decrypt/sign/verify/armor
  • Data — CSV (info, dedupe, merge, diff, schema, template/mail-merge), Excel ↔ CSV/JSON, GeoJSON ↔ KML/GPX/shapefile, geo conversion
  • Create — QR codes, barcodes, UUIDs, secure passwords, lorem ipsum, slugs
  • Finance — compound interest, dollar-cost averaging, percentages, dates

Full catalog: wyreup.com/tools

Dual build

@wyreup/core ships two builds:

  • dist/browser/index.js — for browser and bundler environments (uses WebAssembly workers)
  • dist/node/index.js — for Node and CLI environments

Your bundler resolves the right one automatically via the exports map.

PNG encoding loads the bundled jSquash codec and its WASM asset. Browser workers have their own build graph. For Vite 8, use ES workers, exclude the Node-only adapters from both build graphs and dependency optimization, and explicitly optimize the worker's nested CommonJS dependencies. This configuration was checked with a fresh packed installation in development and production preview:

import { defineConfig } from 'vite';

const nodeOnly = [
  '@resvg/resvg-js', '@napi-rs/canvas', 'tesseract.js',
  '@mediapipe/tasks-vision', 'canvas', 'sharp',
];
const external = [...nodeOnly, /^node:/, /\.node$/];

export default defineConfig({
  worker: { format: 'es', rolldownOptions: { external } },
  optimizeDeps: {
    exclude: ['@jsquash/png', ...nodeOnly],
    include: ['@wyreup/core > papaparse', '@wyreup/core > ag-psd'],
  },
  build: { rolldownOptions: { external } },
});

The Node-only branches are not executed in the browser. The nested dependency notation resolves dependencies from the installed core package, including installations with pnpm's strict dependency layout. For offline operation, cache the emitted worker, codec chunks and squoosh_png_bg*.wasm asset before disconnecting. Node consumers resolve the codec from their installed dependencies. The PDF API and worker versions are pinned together; overriding the PDF dependency can break that pairing.

Markdown producer limits

Markdown input admission is limited to 10 MiB. Before rendering, a conservative HTML bound must fit both 50 MiB and 64 times the input bytes (with a minimum allowance of 1 MiB). The token tree is limited to 100,000 token, table-cell and list-item visits, parser nesting of 128 levels, and 128 MiB of charged string-scan units. Admission does not guarantee conversion: any document shape, including a literal paragraph, can exceed these bounds or native parser capacity below the input limit. Catchable RangeError failures at the synchronous lexer and parser call boundaries become an explicit capacity refusal. This does not classify every runtime capacity failure or uncatchable exhaustion, or guarantee a conversion threshold. Repeated reference targets still pay for every rendered occurrence. URL safety decisions use a per-conversion cache limited to 256 entries and 1 MiB of retained keys.

The nesting limit applies after the native lexer and does not protect the lexer's stack. Native synchronous lexer/parser calls cannot be forcibly cancelled. Raw HTML remains inert text, and unsafe URL schemes remain neutralized. The browser's separate 1 MiB preview limit does not change the producer output allowance.

More

License

MIT