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

opork

v0.1.6

Published

CLI wrapper for Porkbun API, optimized for agentic use

Readme

opork

CLI wrapper for the Porkbun API, optimized for agentic use.

Install

npm install -g opork

Configuration

Set credentials via environment variables:

export PORKBUN_API_KEY=pk1_xxx
export PORKBUN_SECRET_KEY=sk1_xxx

Or create a config file:

opork config init --api-key pk1_xxx --secret-key sk1_xxx

Config file location: ~/.config/opork/config.yaml

Commands

General

opork ping                    # Test connectivity
opork version                 # Print version
opork config path             # Show config path

DNS Records

opork dns list <domain>
opork dns list <domain> --type A
opork dns list <domain> --type A --subdomain www

opork dns create <domain> <type> <content>
opork dns create example.com A 192.168.1.1
opork dns create example.com A 192.168.1.1 --name www
opork dns create example.com MX mail.example.com --prio 10

opork dns update <domain> <id> <type> <content>
opork dns set <domain> <type> <subdomain> <content>   # Update by name
opork dns set example.com A www 192.168.1.1
opork dns set example.com A @ 192.168.1.1             # @ = root

opork dns delete <domain> <id>
opork dns delete-by-name <domain> <type> <subdomain>

Domains

opork domain list
opork domain get <domain>

opork domain register <domain>
opork domain register example.com --years 2 --ns ns1.example.com --ns ns2.example.com

opork domain auto-renew <domain> enable
opork domain auto-renew <domain> disable

opork domain ns-get <domain>
opork domain ns-set <domain> <ns1> [ns2] [ns3]...

opork domain forward-list <domain>
opork domain forward-add <domain> <url> [--subdomain www] [--type permanent]
opork domain forward-delete <domain> <id>

Pricing

opork pricing list            # List all TLD prices
opork pricing check <domain>  # Check availability and price

SSL Certificates

opork ssl get <domain>
opork ssl get <domain> --part cert
opork ssl get <domain> --part key
opork ssl get <domain> --part intermediate

DNSSEC

opork dnssec list <domain>
opork dnssec create <domain> --keytag X --algorithm Y --digest-type Z --digest ABC
opork dnssec delete <domain> <keytag>

Glue Records

opork glue list <domain>
opork glue create <domain> <subdomain> <ip> [ip...]
opork glue update <domain> <subdomain> <ip> [ip...]
opork glue delete <domain> <subdomain>

JSON Output

Add --json to any command for JSON output:

opork dns list example.com --json
opork pricing check example.com --json

Exit Codes

  • 0 - Success
  • 1 - Error (message printed to stderr)

Development

Local Build

make build      # Build binary
make test       # Run tests
make lint       # Run linter
make dist       # Build for all platforms

Releasing

Releases are automated via GitHub Actions. To publish a new version:

  1. Bump the version in package.json:

    npm version patch   # 0.1.0 -> 0.1.1
    npm version minor   # 0.1.0 -> 0.2.0
    npm version major   # 0.1.0 -> 1.0.0
  2. Push to main:

    git push

The workflow will automatically:

  • Build binaries for all platforms (darwin/linux/windows, amd64/arm64)
  • Create a GitHub release with the binaries
  • Publish to npm

License

MIT