{"id":38325075,"url":"https://github.com/statebox/cli-tool","last_synced_at":"2026-01-17T02:43:32.925Z","repository":{"id":47889463,"uuid":"168540560","full_name":"statebox/cli-tool","owner":"statebox","description":"Statebox CLI tool","archived":false,"fork":false,"pushed_at":"2021-08-12T02:53:30.000Z","size":111,"stargazers_count":5,"open_issues_count":5,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-17T14:39:19.661Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/statebox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-31T14:42:11.000Z","updated_at":"2022-11-27T18:54:45.000Z","dependencies_parsed_at":"2022-09-06T00:10:10.968Z","dependency_job_id":null,"html_url":"https://github.com/statebox/cli-tool","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/statebox/cli-tool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statebox%2Fcli-tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statebox%2Fcli-tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statebox%2Fcli-tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statebox%2Fcli-tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/statebox","download_url":"https://codeload.github.com/statebox/cli-tool/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statebox%2Fcli-tool/sbom","scorecard":{"id":846721,"data":{"date":"2025-08-11","repo":{"name":"github.com/statebox/cli-tool","commit":"335b1258bc379ff7d085f8d93fe1bca7520f8e28"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU Affero General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-x3cc-x39p-42qx","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T21:39:33.699Z","repository_id":47889463,"created_at":"2025-08-23T21:39:33.699Z","updated_at":"2025-08-23T21:39:33.699Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28492419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T02:39:23.645Z","status":"ssl_error","status_checked_at":"2026-01-17T02:34:19.649Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-17T02:43:32.071Z","updated_at":"2026-01-17T02:43:32.908Z","avatar_url":"https://github.com/statebox.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Statebox Commandline Tool\n\nThis is a (temporary) tool that is supposed to do various useful thingss.\n\n- Encode \u0026 decode transactions\n- Convert file formats\n- Compute hashes\n- ~~Communicate with the API~~\n- ~~Create EC keypairs~~\n- ~~Sign transactions \u0026 Verify signatures~~\n\n## Installation\n\nCan install tool locally or globally (`-g`) or run once using `npx`.\n\n```\nnpm i stbx # install locally\nnpm i -g stbx # or install globally\nnpx stbx -V # or run once using npx\n```\n\n## Usage\n\nSee  `node stbx-cli.js --help`\n\n```\nUsage: stbx-cli [options] [command]\n\nOptions:\n  -V, --version  output the version number\n  -h, --help     output usage information\n\nCommands:\n  codec          work with transactions\n  help [cmd]     display help for [cmd]\n```\n\n### `codec`: Transaction Encoding \u0026 Decoding\n\nWhen you type `stbx codec --help` you get this:\n\n```\nUsage: stbx-codec [options]\n\nOptions:\n  -V, --version            output the version number\n  -e, --encode             Encode message\n  -d, --decode             Decode message\n  -i, --input [filename]   File to read data from\n  -o, --output [filename]  File to write transaction to\n  -f, --force              Force file overwrite\n  -h, --help               output usage information\n```\n\nExamples:\n\n```sh\n$ echo '{\"previous\":\"deadc0de\",\"firing\":{\"execution\":\"beefbabe\",\"path\":[0]}}' \u003e file\n$ cat file | stbx codec --encode\n0a04deadc0de12080a04beefbabe1000\n```\n\n```sh\n$ echo \"0a04deadc0de12080a04beefbabe1000\" | stbx codec --decode\n{\"previous\":\"deadc0de\",\"firing\":{\"execution\":\"beefbabe\",\"path\":[0]}}\n```\n\n```sh\necho 0a04deadbeef1a420a2b0a0161100010011000100110001002100010021000100310001003100010001a01781a01791a017a1a0177120f0a017a10011801180222017322017418001800 | stbx codec --decode\n{\"nets\":[{\"name\":\"a\",\"partition\":[0,1,0,1,0,2,0,2,0,3,0,3,0,0],\"names\":[\"x\",\"y\",\"z\",\"w\"]}],\"diagrams\":[{\"name\":\"z\",\"width\":1,\"pixels\":[1,2],\"names\":[\"s\",\"t\"]}],\"labels\":[0,0]}\n```\n\n### `hash`: Compute Hashes\n\nComputes hashes, pass a hexadecimal string via stdin or using a file (with `-i`).\n\n```sh\n$ echo 'feedc0de' | stbx hash                                     fafec8b68b40c948930d7e4f7263a1b8e9bbd543ec37d0f7b3403b6fd6066737fb75b56ac43290b9d8c1191882fc2f0c055eb06f6155c4a462c4f61d71b92e7e\n```\n\n### `convert`: Conversion from GreatSPN\n\nConvert PNPRO to statebox petrinet representation.\n\n```\nUsage: stbx-cli-convert [options]\n\nOptions:\n  -V, --version            output the version number\n  -i, --input [filename]   File to read input from\n  -o, --output [filename]  File to write output to\n  -F, --force              Force file overwrite\n  -l, --list               List available pages (Petri nets) in PNPRO project file.\n  -1, --one [name]         Extract single net by name.\n  -a, --all                Extract all nets as a dictionary.\n  -f, --format [format]    Specify output format: `nll` or `nbpt`.\n  -h, --help               output usage information\n```\n\nThe output format is specified with `--format` and is either either:\n\n- `nbpt` ~ Nano-Bipartite Graph\n- `nll` ~ Number List List\n\nUsage:\n\n```sh\n# list all nets\nstbx convert -i myProject.pnpro --list \n\n# pick one and output as NBPT\nstbx convert -i myProject.pnpro --one \"name\" --format=nbpt\n```\n\n```\n# convert all and write to `myProject.nets` as NLL\nstbx convert -i myProject.pnpro --all -o myProject.nets\n```\n\nIf you convert with `--all`, the output format is a JSON dictionary of either `nbpt` or `nll` object, indexed by page title.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatebox%2Fcli-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstatebox%2Fcli-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatebox%2Fcli-tool/lists"}