{"name":"thru","version":"0.0.3","author":{"name":"Jesse Tane","email":"jesse.tane@gmail.com"},"_id":"thru@0.0.3","maintainers":[{"name":"jessetane","email":"jesse.tane@gmail.com"}],"homepage":"https://github.com/jessetane/thru#readme","bugs":{"url":"https://github.com/jessetane/thru/issues"},"dist":{"shasum":"88923df49545d8025d44d8d34197856187f2f25c","tarball":"http://registry-npm.ywwl.com/thru/download/thru-0.0.3.tgz","fileCount":4,"integrity":"sha512-M14sWQ8iNw/1jHSlHOracKQEcBYYqO1bhZ1UScdBuOBOAJRoSYqFsJ4H4OzcgaXrgAq+A877QrzbfUKvkPMq2Q==","signatures":[{"sig":"MEUCICNsOURm9U5AECXUCD4pHBSKCY7jDDEauXvUnOjCGL7YAiEAqXqRzzD2WQPhidRgKjNsbyKADt/u+cD6TOHU7TqTmE4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3106,"size":1185,"noattachment":false,"key":"/thru/-/thru-0.0.3.tgz"},"gitHead":"0fd2825ffd11ac100bae60edf1b1332800370f5f","_npmUser":{"name":"jessetane","email":"jesse.tane@gmail.com"},"repository":{"url":"git+https://github.com/jessetane/thru.git","type":"git"},"_npmVersion":"11.12.1","description":"transform stream sugar","directories":{},"_nodeVersion":"25.9.0","dependencies":{"inherits":"2.0.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/thru_0.0.3_1777033017765_0.7120670285322039","host":"s3://npm-registry-packages-npm-production"},"readme":"# Thru CLI\n\nCommand-line interface for the Thru blockchain: keys, accounts, transactions, program deployment, and ABI tooling.\n\nInstall the Thru command-line interface with npm:\n\n```bash\nnpm i -g thru     # puts `thru` on your PATH\nthru --help\n```\n\nA global install (`-g`) is what puts the bare `thru` command on your PATH. A\nlocal install works too, but exposes the command through the project instead:\n\n```bash\nnpm i thru        # local dependency\nnpx thru --help   # or node_modules/.bin/thru\n```\n\n## Request test funds\n\n```bash\nthru auth login\nthru --network betanet faucet withdraw thrusd ta... 100\n```\n\nReplace `ta...` with an existing THRUSD token-account address. Your Developers account shares 5 requests per minute across browser, CLI, and API keys. Native THRU uses `thru faucet withdraw native <account> <amount>` with a local signing key.\n\n[Authentication and API keys](https://thru.org/docs/cli-reference/global-flags-and-config#developers-authentication) · [Faucet reference](https://thru.org/docs/cli-reference/faucet-commands)\n\n## Supported platforms\n\n| platform | arch  | binary package      |\n| -------- | ----- | ------------------- |\n| Linux    | x64   | `thru-linux-x64`    |\n| Linux    | arm64 | `thru-linux-arm64`  |\n| macOS    | x64   | `thru-darwin-x64`   |\n| macOS    | arm64 | `thru-darwin-arm64` |\n| Windows  | x64   | `thru-win32-x64`    |\n\nThe Linux binaries require glibc >= 2.17, which every mainstream distro\nsince CentOS 7 satisfies (Ubuntu, Debian, RHEL/Rocky/Alma, Amazon Linux,\nFedora, SUSE). Alpine/musl is not supported.\n\n## Install without npm (Linux packages)\n\nEach release also ships `.deb` and `.rpm` packages (x86_64 and aarch64)\nbuilt from the same binaries, for machines without npm — e.g. cloud VMs.\nThe `releases/latest/download/` URLs below always resolve to the newest\nrelease, so no package repository setup is needed and nothing to update here\nbetween versions. Run only the one block that matches your distro and\narchitecture.\n\nDebian / Ubuntu:\n\n```bash\n# x86_64\ncurl -fsSLO https://github.com/Unto-Labs/thru/releases/latest/download/thru_amd64.deb\nsudo apt install ./thru_amd64.deb\n```\n\n```bash\n# arm64\ncurl -fsSLO https://github.com/Unto-Labs/thru/releases/latest/download/thru_arm64.deb\nsudo apt install ./thru_arm64.deb\n```\n\nRHEL / Rocky / Alma / Fedora / Amazon Linux (`dnf` accepts the URL directly):\n\n```bash\n# x86_64\nsudo dnf install https://github.com/Unto-Labs/thru/releases/latest/download/thru-x86_64.rpm\n```\n\n```bash\n# aarch64\nsudo dnf install https://github.com/Unto-Labs/thru/releases/latest/download/thru-aarch64.rpm\n```\n\nTo pin a specific version instead, take the versioned asset from the [releases\npage](https://github.com/Unto-Labs/thru/releases) — `thru_<version>_amd64.deb`\nor `thru-<version>-1.x86_64.rpm`.\n\nPackages installed this way are not picked up by `apt upgrade` /\n`dnf upgrade` (there is no hosted repository); to update, install the\nnewer release's package the same way.\n\n## How it works\n\nThe `thru` package contains a small Node.js launcher plus one\n`optionalDependencies` entry per platform package above. npm installs only the\npackage whose `os`/`cpu` constraints match your machine, and the launcher runs\nthe native binary it carries. Because the binary ships inside a regular npm\npackage:\n\n- no install scripts run — `npm install --ignore-scripts` works,\n- installs work offline or from the npm cache, with npm's usual integrity\n  checks covering the binary itself,\n- nothing is downloaded from GitHub at install time.\n\nThe same binaries are also published as release assets at\n<https://github.com/Unto-Labs/thru/releases> — as plain tarballs (e.g.\n`thru-cli-Linux-x86_64-<tag>.tar.gz`) and as the `.deb`/`.rpm` packages\nabove, all verified by `thru-cli-SHA256SUMS` — if you prefer not to use\nnpm.\n\n## Troubleshooting\n\n- `The thru CLI platform package ... is not installed`: the install skipped\n  optional dependencies (`--omit=optional` / `--no-optional`). Reinstall\n  without those flags, or download a release binary and set `THRU_CLI_BIN`.\n- `THRU_CLI_BIN=/path/to/thru` overrides binary resolution entirely; useful\n  for development builds (`cargo build` in `rpc/cli`).\n\n## Development notes\n\n`optionalDependencies` are intentionally absent from the committed\n`package.json`; `scripts/make-platform-packages.mjs` generates the platform\npackages from the built binaries and pins them during the CLI publish\nworkflow (`.github/workflows/cli-artifacts.yml`). Run `node --test` for the\ntest suite and `node scripts/check-package.mjs` for the packaging invariants.\n","publish_time":1777033017914,"_cnpm_publish_time":1777033017914,"dist-tags":{"latest":"0.4.4"}}