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

anuma-desktop

v1.0.0

Published

Anuma Desktop

Downloads

8

Readme

Anuma Desktop

Anuma Desktop is a dedicated desktop process manager for Anuma node.

Anuma Desktop process configuration (available via a simple JSON editor) allows user to specify command-line arguments for executables, as such it is possible to configure it to run multiple instances of Anuma or potentially run multiple networks simultaneously (provided Anuma nodes do not pro-actively auto-discover each-other).

Like many desktop applications, Anuma Desktop can run in the tray bar, out of the way.

Anuma Desktop is built using NWJS and is compatible Windows, Linux and Mac OS X.

Building Anuma Desktop

Pre-requisites

NOTE: Anuma Desktop build process builds and includes latest Anuma binaries from Git master branches. To build from specific branches, you can use --branch... flags (see below).

Generating Anuma Desktop installers

To build and deploy Anuma Desktop production-ready builds, do the following:

mkdir anuma-build
cd anuma-build
npm install emanator@latest
git clone https://github.com/AnumaNetwork/anuma-desktop
cd anuma-desktop

Emanator will help to create standalone desktop applications using NWJS. It accepts the following flags:

  • --portable will create a portable zipped application.
  • --innosetup will generate Windows setup executable.
  • --dmg will generate a DMG image for macOS.
  • --all will generate all OS compatible packages.

Additionally the following flags can be used to reset the environment:

  • --clean clean build folders: purges cloned GOPATH folder
  • --reset deletes downloaded/cached NWJS and NODE binaries

The --clean and --reset can be combined to cleanup build folder and cached files.

DMG - Building DMG images on macOS requires sudo access in order to use system tools such as diskutil to generate images:

sudo ../node_modules/.bin/emanate build --dmg

To build the Windows portable deployment, run the following command:

../node_modules/.bin/emanate build --archive --portable

To build the Windows installer, you need to install Innosetup and run:

../node_modules/.bin/emanate build --innosetup

Emanator stores build files in the ~/emanator folder.

Running Anuma Desktop from development environment

In addition to Node.js (must be 14.0+), please download and install Latest NWJS SDK https://nwjs.io - make sure that nw executable is available in the system PATH and that you can run nw from command line.

On Linux / Darwin, as good way to install node and nwjs is as follows:

cd ~/
mkdir bin
cd bin

wget https://nodejs.org/dist/v14.4.0/node-v14.4.0-linux-x64.tar.xz
tar xvf node-v14.4.0-linux-x64.tar.xz
ln -s node-v14.4.0-linux-x64 node

wget https://dl.nwjs.io/v0.46.2/nwjs-sdk-v0.46.2-linux-x64.tar.gz
tar xvf nwjs-sdk-v0.46.2-linux-x64.tar.gz
ln -s nwjs-sdk-v0.46.2-linux-x64 nwjs

Once done add the following to ~/.bashrc

export PATH="~/bin/node/bin:~/bin/nwjs:${PATH}"

The above method allows you to deploy latest binaries and manage versions by re-targeting symlinks pointing to target folders. Once you have node and nwjs working, you can continue with Anuma Desktop.

Anuma Desktop installation:

git clone https://github.com/AnumaNetwork/anuma-desktop
cd anuma-desktop
npm install
npm install emanator@latest
node_modules/.bin/emanate --local-binaries
nw .

Building installers from specific Anuma Git branches

The --branch argument specifies common branch name for Anuma, for example:

node_modules/.bin/emanate --branch=2024_initial_anuma_support

The branch for each repository can be overriden using --branch-<repo-name>=<branch-name> arguments as follows:

emanate --branch=2024_initial_anuma_support --branch-anumad=2024_fixes_next

Anuma Desktop Process Manager

Configuration

Anuma Desktop runtime configuration is declared using a JSON object.

Each instance of the process is declared using it's type (for example: anumad) and a unique identifier (kd0). Most process configuration objects support args property that allows passing arguments or configuration options directly to the process executable. The configuration is passed via configuration file (anumad).

Supported process types:

  • anumad - Anuma full node

NOTE: For Anuma, to specify multiple connection endpoints, you must use an array of addresses as follows: "args" : { "connect" : [ "peer-addr-port-a", "peer-addr-port-b", ...] }

Default Configuration File

{
	"description": "Anumad Node",
	"modules": {
		"anumad:kd0": {
			"reset-peers": false,
			"args": {
				"rpclisten": "0.0.0.0:42110",
				"listen": "0.0.0.0:42111",
				"profile": 8110
			},
			"upnpEnabled": true
		}
	},
	"ident": "anumad-node-only",
	"network": "mainnet",
	"upnpEnabled": true,
	"dataDir": "",
	"theme": "light",
	"invertTerminals": false,
	"compounding": {
		"auto": false,
		"useLatestAddress": false
	}
}

Data Storage

Anuma Desktop stores it's configuration file as ~/.anuma-desktop/config.json. Each configured process data is stored in <datadir>/<process-type>-<process-identifier> where datadir is a user-configurable location. The default datadir location is ~/.anuma-desktop/data/. For example, anumad process with identifier kd0 will be stored in ~/.anuma-desktop/data/anumad-kd0/ and it's logs in ~/.anuma-desktop/data/anumad-kd0/logs/anumad.log.

Anuma Binaries

Anuma Desktop can run Anuma from two locations:

  1. From integrated bin folder that is included with Anuma Desktop redistributables.
  2. Fron ~/.anuma-desktop/bin folder that is created during the Anuma build process.