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

gantree-core

v0.9.1

Published

NOTE: This is a WIP to merge gantree-cli and gantree-lib into a single project

Downloads

9

Readme

Gantree Core

NOTE: This is a WIP to merge gantree-cli and gantree-lib into a single project

For the time being you should continue to use gantree-cli in favor of this repository

About

Substrate is built on the core belief that the future will be multi-chain.

In the past, setting up and managing blockchain networks required an understanding of a multitude of concepts which may have inhibited end users from experimenting with them.

With the assistance of funding from the Web3 Foundation, Flex Dapps is building a suite of technologies which will enable both power users and those less versed to create and manage substrate-powered parachain networks via rapid spin-up and tear-down of self-managed or cloud-hosted machines.

Docker Image

If you would rather install dependencies automatically in a container, a Docker image is available here:

Requirements

1 - Application Requirements

When installed locally, Gantree-lib requires the following application dependencies:

| REQUIREMENT | VERSION | NOTES | | --------------------------------------------------------------------------------------------- | --------- | ---------------------------------------------------------------- | | NodeJS | >=10.15.2 | Recommended install method: nvm | | Ansible | >=2.9.4 | Recommended install method: pip | | Git | >=2.0 | Required by ansible-galaxy for installing roles |

2 - Ansible Requirements

Install required ansible roles

curl https://raw.githubusercontent.com/flex-dapps/gantree-requirements/master/ansible-galaxy/requirements.yml > ansible_requirements.yml
ansible-galaxy install -r ansible_requirements.yml

3 - Python Requirements

Please note: It is highly recommended to use a virtual environment such as pipenv or venv

Install required python packages

pip install ansible boto boto3 botocore requests google-auth

4 - Package Installation

Install gantree-lib

npm install gantree-lib -g

5 - Environment Requirements

Provider Credentials

For security reasons, credentials for infrastructure providers must be exported as environment variables.

| PROVIDER | EXPORTS REQUIRED | NOTES | | ------------ | ----------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | | AWS | AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEY | IAM account with EC2 and VPC write access. | | GCP | GCP_SERVICE_ACCOUNT_FILE | path to json file with credentials of the service account you want to use; this service account needs to have write access to compute and network resources | | DigitalOcean | DO_API_TOKEN | A DigitalOcean access token with read + write access |

SSH Credentials

SSH private key path can be defined using environment variable references in your Gantree configuration.

Gantree Configuration

Gantree requires a configuration file (Gantree configuration) in order to guide creation, provisioning, modification and deletion of instances.

In essence, your Gantree configuration represents your desired infrastructure.

When creating your own Gantree configuration, it's recommended to create it based on one of the samples provided.

If your configuration is invalid, Gantree will try it's best to help you identify where misconfiguration has occurred.

Once you're ready to create your own Gantree configuration, please consult the links below.

Library Usage

CLI Usage

A CLI is available for gantree-lib as a separate package.

Please see gantree-cli for information