Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Command Line Interface for Codius
The command line interface for uploading and extending pods on Codius.
Codius is an open-source decentralized hosting plaform, built with Interledger. With it, users can run software on servers anywhere in the world and pay for it using any currency. This tutorial will teach you how to upload contracts using the Codius Command-line interface, and pay for hosting using XRP.
The Codius CLI can be installed globally by running the following command:
npm install -g codius
It can then be run with the command codius
.
All codius
commands have a --help
parameter describing their usage, e.g. codius upload --help
for help with the upload
command.
hash <manifest>
Hashes your manifest file. This hash is used as an identifier for the Codius host and the CLI to identify your manifest.
Arguments:
<manifest>
upload <manifest>
Uploads a manifest to a number of Codius hosts. By default it uploads it to a single random known host with a duration of 10 minutes. Its recommended that you start with a short duration and then extend it to ensure your manifest is running appropriately.
Arguments:
<manifest>
Options | Argument Type | Description |
---|---|---|
--duration, -d | Integer | Duration (in seconds) by which the contract will be run on all Codius hosts, defaults to 10 mins. |
--max-monthly-rate, --max | Integer | The max rate per month the uploader is willing to pay a Codius host to run the manifest. |
--units, -u | Integer | The unit of currency to pay the Codius hosts with. e.g. XRP |
--host-count, -c | Integer | The number of hosts to upload the manifest to. They are discovered from known hosts and selected randomly. This and --host, -h are mutually exclusive. |
--host, -h | String | The public URI of a host to upload the manifest to. Can be repeated any number of times. This and --host-count, -c are mutually exclusive. |
--add-host-env, --add | Boolean | Adds a $HOST env in the manifest before upload which contains all the hosts the manifest will be uploaded |
--no-prompt, --np | None | Run without making any prompts to the user. |
extend <manifest>
Extends the duration of existing contracts.
Arguments:
<manifest>
Options | Argument Type | Description |
---|---|---|
--duration, -d | Integer | Duration (in seconds) by which the contract will be extended on all Codius hosts currently running it. |
--max-monthly-rate, --max | Integer | The max rate per month the uploader is willing to pay a Codius host to run the manifest. |
--units, -u | Integer | The unit of currency to pay the Codius hosts with. E.g. XRP |
--no-prompt, --np | None | Run without making any prompts to the user. |
pods
Retrieves information about the pods uploaded by the codius cli, their hosts and expiration date.
Options | Argument Type | Description |
---|---|---|
--list, -l | Boolean | Lists all pods uploaded by the codius cli, their hash, hosts, and expiration date. |
--get-pod-manifest, -m | String | Takes the manifest hash and looks up the raw manifest file used for the pod. |
host
Modifies the host's local database where peers are stored.
Options | Argument Type | Description |
---|---|---|
--remove-host, -rmhost | String | Removes the host passed in as a string from the local Codius CLI db. |
--remove-all-hosts, -rmall | Boolean | Removes all hosts from the local database to reset the peer lookup table. |
The Codius CLI uses LevelDB to store data about hosts and containers. The LevelDB database is stored in the user's home directory with the name .codius-cli
by default if XDG_CONFIG_HOME
is not set. For example, the folder will have the following path on a machine running OSX:
/Users/<username>/.codius-cli
If XDG_CONFIG_HOME
is set the database will simply be named codius-cli
in that directory.
Apache-2.0
FAQs
Command Line Interface for Codius
The npm package codius receives a total of 4 weekly downloads. As such, codius popularity was classified as not popular.
We found that codius demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.