DEPRECATED! Nexus Wallet Module documentation has been moved to https://github.com/Nexusoft/NexusInterface/tree/master/docs/Modules
nxs_package.json
is a mandatory file that all Nexus Wallet Modules must contain, and must be located in the top-level directory of the module.
nxs_package.json
contains most meta-data about the module, and helps Nexus Wallet identify if a directory is a module or not.
As the name suggests, nxs_package.json
is inspired by npm
’s package.json
file, plays a pretty similar role in Nexus Wallet Modules as package.json
does in npm
packages, and has many similar fields as in package.json
.
name
string
_
) and dashes (-
)This will be used as the unique identifier of your module. If more than one modules with the same name
are installed in a wallet, only one of them will work. Currently there hasn’t been a central “module store” that hosts all the Nexus Wallet Modules available, so naming collision must be taken care by the module developers yourself. When you need to name your module, please do some basic searching to see if there is already an existing module with the same name on the public.
displayName
string
A user-friendly name to be displayed on the GUI and most other places where your module name is needed.
Should not be too different from the name
field.
version
string
The version of your module.
specVersion
string
The version of the Nexus Wallet Module Specifications that this version of your module was built on.
If this specVersion
is lower than the lowest Spec version that user’s wallet supports, your module will be marked “invalid” and will not work.
type
string
app
(the only supported module type currently)The type of your module. This decides how your module will be used in the wallet. See Module types for more details.
options
object
{
// Whether the module's webview is wrapped inside a panel
// Only available with `app` type modules
wrapInPanel: boolean
}
files
string[]
nxs_package.json
, repo_info.json
, storage.json
This is where you should list ALL the files needed to run your module (without wildcards). Only those files that present in this list will be copied over when users install your module their wallets, so please don’t miss any file.
description
string
A brief description about your module.
entry
string
Path to the entry file of your module. The type of entry file depends on the module type. If your module is of type app
, your entry
file must be in .html
format. See HTML entry file section for more details.
icon
string
Path to the icon of you module. See Module icon for more details.
author
object
{
name: string,
email: string
}
name
field is requiredInformation about the module’s author.
../
) are not allowed.