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

@vanityx/cli

v1.0.0

Published

A command-line tool for searching Ethereum CREATE2 vanity addresses.

Readme

@vanityx/cli

English | 中文


一个用于搜索以太坊 CREATE2 vanity 地址的命令行工具。API 库请查看 vanityx

  • 支持 CreateX 盐值规则。
  • 支持多线程并行搜索。
  • 支持 Glob 通配符模式。

安装

bunx vanityx --help
# Or
bunx -p @vanityx/cli vanityx --help

如果你不想在本地安装/使用 Bun,可以直接在 releases 下载预编译的二进制文件。

快速开始

子命令

  • search:多线程搜索符合 pattern 的 CREATE2 地址。
  • completions:生成 shell 自动补全脚本。

[!TIP]

运行 vanityx <command> --help 查看每个子命令的详细参数。

示例

使用 CreateX 工厂

如果使用 CreateX 工厂且未启用保护,直接运行:

vanityx search -i "$INITCODE_HASH" -p "$PATTERN"

使用其他部署器

如果使用其他 factory / deployer,请显式指定:

vanityx search -i "$INITCODE_HASH" -p "$PATTERN" -d "$DEPLOYER"

CreateX:跨链 / 许可模式

启用 crosschain(需提供 chainId):

vanityx search -i "$INITCODE_HASH" -p "$PATTERN" -x -c "$CHAIN_ID"

启用 permissioned(需提供 msg.sender):

vanityx search -i "$INITCODE_HASH" -p "$PATTERN" -y -s "$SENDER"

同时启用:

vanityx search -i "$INITCODE_HASH" -p "$PATTERN" -xy -c "$CHAIN_ID" -s "$SENDER"

Pattern 语法

--pattern 基于 Bun 的 Glob 语法匹配地址。常用写法:

  • 0xcafe*:前缀匹配。
  • 0x*beef:后缀匹配。
  • 0x*bee?? 匹配单个十六进制字符。
  • 0x{aa,bb}*:多前缀可选。
  • 0x[0-4][c-e]*:字符集范围匹配。

[!CAUTION]

  • pattern 合法性检查有限,请确保输入正确的 glob 模式。
  • 有效但错误的 pattern 可能导致无法匹配预期的地址,例如 0xVVV*VVV
  • 注意添加 * 以避免过早固定地址长度,例如 0x1234* 而不是 0x1234
  • **! 在地址模式里没有特殊含义,不建议使用。

性能预期

搜索本质是随机采样:每固定 $n$ 个十六进制字符,期望尝试次数约 $16^n$。

Thanks