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

@cfxdevkit/cli

v2.0.9

Published

Conflux developer CLI: network status + HD key derivation.

Readme

@cfxdevkit/cli

Tiny developer CLI bundled with @cfxdevkit/cdk. Provides three commands:

  • cfx status — pings each chain and prints head block / epoch + latency.
  • cfx derive — derives dual-space accounts (EVM 0x… + Core cfx[…]:…) from a mnemonic or generates new ones.
  • cfx generate — prints a fresh BIP-39 mnemonic.

Install

pnpm --filter @cfxdevkit/cli build
node repos/cfx-tools/packages/cli/dist/bin.js --help

When published, the cfx binary will be on PATH after pnpm i -g @cfxdevkit/cli.

Examples

cfx status
cfx status --chain core-testnet
cfx status --chain 1030 --rpc https://my-private-rpc.example
cfx status --json

cfx derive --generate --count 3 --core-network-id 1
cfx derive --mnemonic "test test test test test test test test test test test junk" --count 5
cfx derive --mnemonic "..." --type mining --core-network-id 2029 --show-private-keys

cfx generate

Notes

  • The default --core-network-id is 1029 (mainnet cfx:…). Use 1 for testnet (cfxtest:…) and 2029 for the local devnet (net2029:…).
  • --type mining switches the BIP-44 account segment from 0' to 1', matching the convention used by the original @cfxdevkit/cdk POC for faucet / miner accounts.
  • Private keys are not printed unless you pass --show-private-keys.

API Reference

Sub-paths

| Sub-path | Exports | |----------|---------| | . | ParsedArgs, parseArgs, DeriveReport, runDerive, GenerateReport, runGenerate, runStatus, StatusReport, run |


.

export { ParsedArgs }
export { parseArgs }
export { DeriveReport }
export { runDerive }
export { GenerateReport }
export { runGenerate }
export { runStatus }
export { StatusReport }
export { run }

Usage

import { run } from '@cfxdevkit/cli';

// Run CLI with default behavior (uses process.argv)
await run();

// Run CLI with custom arguments
await run({
  command: 'status',
  chain: 'core-testnet',
  json: true
});

Tier

Tier 1 — platform — May import Tier 0 framework packages.

API Reference

See API.md for the full public surface.

API REFERENCE EXCERPT:

@cfxdevkit/cli — Public API

Conflux developer CLI: network status + HD key derivation.

Sub-paths

| Sub-path | Exports | |----------|---------| | . | 15 symbols |


.

// Represents the parsed command-line arguments structure.
export { ParsedArgs }

// Parses raw command-line arguments into a structured format.
export { parseArgs }

// Report type returned after successfully deriving an HD wallet key.
export { DeriveReport }

// Options for configuring HD key derivation.
export { RunDeriveOptions }

// Runs HD key derivation, returning a report.
export { runDerive }

// Report type returned after successfully generating a new keypair.
export { GenerateReport }

// Options for configuring key generation.
export { RunGenerateOptions }

// Generates a new keypair, returning a report.
export { runGenerate }

// Options for querying network status.
export { RunStatusOptions }

// Queries the current network status and returns a report.
export { runStatus }

// Report type returned after successfully retrieving network status.
export { StatusReport }

// Main entry point for CLI execution, dispatching to appropriate subcommands.
export { run }

Usage

import { run } from '@cfxdevkit/cli';

// Run the CLI with process.argv
await run(process.argv.slice(2));

Subcommand Usage Examples

Derive Accounts

import { runDerive, RunDeriveOptions } from '@cfxdevkit/cli';

const options: RunDeriveOptions = {
  mnemonic: 'test test test test test test test test test test test junk',
  count: 3,
  coreNetworkId: 1,
  type: 'mining',
  showPrivateKeys: true
};

const report = await runDerive(options);
console.log(report.accounts);

Generate Mnemonic

import { runGenerate, RunGenerateOptions } from '@cfxdevkit/cli';

const options: RunGenerateOptions = {
  // optional: strength in bits (128, 192, or 256)
};

const report = await runGenerate(options);
console.log(report.mnemonic);

Check Network Status

import { runStatus, RunStatusOptions } from '@cfxdevkit/cli';

const options: RunStatusOptions = {
  chain: 'core-testnet',
  json: true
};

const report = await runStatus(options);
console.log(report);