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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@bnb-chain/gnfd-deploy

v1.2.1

Published

Zero-Config CLI to Deploy Static Websites to BNB Greenfield

Downloads

11

Readme

Gnfd-Deploy

GNFD Deploy is a command-line tool designed to simplify the process of uploading files or folders to the BNB Greenfield storage network. Whether you're managing assets, deploying resources, or sharing data, GNFD Deploy streamlines the file upload process, making it more convenient and efficient.

Installation

You can install GNFD Deploy globally using npm or yarn:

# npm
npm install @bnb-chain/gnfd-deploy -g
# yarn
yarn global add @bnb-chain/gnfd-deploy

Usage

> gnfd -h

Usage: gnfd-deploy [path] [options]

Zero-Config CLI to Deploy Static Websites to BNB Greenfield

Arguments:
  path                   A local file or folder relative or absolute path.

Options:
  -a, --addr [addr]      a Greenfield network address starting with '0x'
  -k, --key [key]        private key for a Greenfield network account starting with '0x'.
  -b, --bucket [bucket]  a bucket name similar to AWS S3
  -d, --debug            use debug mode to see full error.
  -m, --mainnet          upload file to Greenfield mainnet network.[testnet]
  -V, --version          output the version number
  -h, --help             display help for command

Using Environment Variables (Optional)

Set the following environment variables based on the information in the env.example file:

ACCOUNT_ADDRESS="your wallet address"
ACCOUNT_PRIVATE_KEY="your private key"
BUCKET_NAME=testcli1

# optional, default is testnet. more infos: https://docs.bnbchain.org/greenfield-docs/docs/api/endpoints
GREENFIELD_RPC_URL=https://gnfd-testnet-fullnode-tendermint-ap.bnbchain.org
GREENFIELD_CHAIN_ID=5600

Upload a file or folder

# if you have not set the env variables.
> gnfd your-local-path --key=0xyourtestprivatekey --addr=0xyourtestaddress --bucket=testcli1

[INFO]: Start upload file to https://gnfd-testnet-fullnode-tendermint-ap.bnbchain.org 5600
[INFO]: Checking a bucketName for testcli1
[INFO]: The bucketName testcli1 already exist. skipped
[INFO]: Checking an object for test.txt
[INFO]: Creating an object for test.txt
[INFO]: Object created successfully: xxx
[INFO]: Upload Info: {
  address: '0xffffxxxxx',
  bucketName: 'testcli1',
  bucketTx: 'skipped',
  endpoint: 'https://gnfd-testnet-sp3.nodereal.io',
  primarySpAddress: '0x5FFf5A6c94b182fB965B40C7B9F30199b969eD2f'
}
[INFO]: File upload completed => baseUrl: https://gnfd-testnet-sp3.nodereal.io/view/testcli1/test.txt

Contributing

If you want to contribute to GNFD Deploy or have suggestions, feel free to open an issue or submit a pull request.

License

This project is licensed under the LGPL-3.0 License - see the LICENSE.md file for details.

DISCLAIMER

The software and related documentation are under active development, all subject to potential future change without notification and not ready for production use. The code and security audit have not been fully completed and not ready for any bug bounty. We advise you to be careful and experiment on the network at your own risk. Stay safe out there.