🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

nitya.connect

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nitya.connect

Client-side tools for users request Turbo credits from sponsor pools

latest
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

nitya.connect

A minimal CLI utility to interact with the Nitya Sponsor Server, allowing developers to securely manage Arweave wallets, initialize deployments, and request sponsor credits for event-based pools.

✨ Installation

npm install -g nitya.connect

This will install the following global CLI commands:

  • nityabegin
  • nityafuel

🛠 Commands

🔁 nityabegin

Initialize or inspect your local project wallet.

Generate a wallet

nityabegin --projectname <project>

Creates a new Arweave wallet for the given project in:

~/.permaweb/<project>/wallet.json

View wallet address

nityabegin --wallet-address

Prints the address of your most recently created wallet.

nityabegin --event <eventPoolId>

Creates a perma-config.json in your working directory:

{
  "walletAddress": "arweave-address",
  "eventPoolId": "pool-id",
  "walletPath": "/home/user/.permaweb/<project>/wallet.json"
}

nityafuel

Request deploy credits from an event-based sponsor pool.

Request credits

nityafuel --projectname <project>

Looks for:

  • The wallet at ~/.permaweb/<project>/wallet.json
  • A local perma-config.json

Signs the pool ID and submits it to the sponsor server:

POST http://167.86.105.114/share-credits

Success response:

{
  "message": "Credits shared successfully",
  "txId": "arweave-tx-id",
  "amount": "1000000000000"
}

📂 File Layout

~/.permaweb/
  └── <project>/
        └── wallet.json

./perma-config.json   # Linked config

🔐 Security Notes

  • Wallets are never uploaded; signatures happen locally.
  • Wallet keyfiles live in ~/.permaweb/.
  • This CLI is offline-safe and respects user privacy.

🔧 Server Compatibility

Must be used with a compatible Nitya Sponsor Server exposing:

  • POST /share-credits
  • Signature verification for event pools

📄 License

Licensed under the GNU Affero General Public License v3.0. See the LICENSE file for full terms.

FAQs

Package last updated on 01 Jun 2025

Did you know?

Socket

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.

Install

Related posts