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

@alltuner/vacant

v0.4.3

Published

Fast domain availability checker — asks authoritative TLD nameservers directly instead of WHOIS.

Readme

@alltuner/vacant — domain availability via authoritative DNS

npm PyPI crates.io

JavaScript / TypeScript bindings for the vacant Rust engine. Asks the authoritative TLD nameservers directly instead of WHOIS — fast, no rate limits, no waiting.

The package ships the same Rust engine compiled in via napi-rs, with a small TypeScript facade and a vacant CLI entry point. Lockstep-versioned with the vacant crate: @alltuner/vacant 0.4.x wraps vacant 0.4.x (Rust) exactly.

Install

Pick the path that matches how you'll use it:

CLI

brew install alltuner/tap/vacant   # macOS, Linux — native Rust binary
cargo install vacant               # any platform with a Rust toolchain
npx -y @alltuner/vacant google.com # one-shot, no install (Node wheel)

The brew / cargo paths give you the native Rust binary (instant startup, ideal for daily use). npx runs the Node package — convenient when you don't want a global install, slightly slower to start because it boots Node.

Library

npm install @alltuner/vacant
# or
pnpm add @alltuner/vacant
import { checkMany, Status } from '@alltuner/vacant'

const results = checkMany(['example.com', 'anthropic.com', 'totally-made-up-zxqv.cat'])
for (const r of results) {
  console.log(r.domain, r.status, r.detail)
}

The on-disk SQLite cache is shared with the Rust CLI — runs against the same ~/.cache/vacant/results.db, so the brew binary and a Node script see each other's results.

import { DiskCache, checkMany } from '@alltuner/vacant'

const cache = new DiskCache() // default ~/.cache/vacant/results.db
const results = checkMany(['example.com'], { cache })

How it works

checkMany calls into the Rust engine via napi-rs. The engine:

  1. Normalizes the input.
  2. Looks up cache; returns hits immediately.
  3. Runs a per-zone precheck (length, charset, reserved labels) from the bundled rules.toml.
  4. For inputs that pass, asks the parent zone's NS directly. NXDOMAIN → available; delegation → registered; ambiguous answers fall back to RDAP.

Cache shape, rules format, and verdict semantics are all the engine's — see alltuner/vacant for the source of truth.

Supported platforms

Prebuilt binaries ship for:

  • darwin-arm64 (Apple silicon)
  • darwin-x64 (Intel macs)
  • linux-arm64-gnu
  • linux-x64-gnu

npm picks the right one via optionalDependencies at install time. Other platforms aren't supported in v1; build from source via the Rust crate (cargo install vacant) if you need them.

Develop

The Node package lives in the alltuner/vacant monorepo alongside the Rust engine, so dev commands run from the repo root:

just                 # menu
just js-develop      # build the napi-rs extension into js/
just js-check        # tsc + node:test smoke
just js-pack         # produce a publishable tarball

License

MIT — see ../LICENSE.