{"id":48112,"library":"grpcoin","title":"grpcoin","description":"Grpc Coin Node cli is a CLI tool for managing cryptocurrency transactions built with oclif. Current stable version is 2.1.0. It supports buying, selling, and watching coins, and displaying portfolio. Requires a GitHub token for permissions. Uses TypeScript and oclif framework. Differentiated as a gRPC-based coin CLI with simple commands.","status":"active","version":"2.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/TheYkk/grpcoin","tags":["javascript","oclif","typescript"],"install":[{"cmd":"npm install grpcoin","lang":"bash","label":"npm"},{"cmd":"yarn add grpcoin","lang":"bash","label":"yarn"},{"cmd":"pnpm add grpcoin","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core oclif framework for CLI commands","package":"@oclif/core","optional":false},{"reason":"gRPC client for interacting with coin service","package":"@grpc/grpc-js","optional":false}],"imports":[{"note":"ESM-only since v2. Use dynamic import if needed.","wrong":"const run = require('grpcoin');","symbol":"run","correct":"import { run } from 'grpcoin';"},{"note":"Named export, not default.","wrong":"import CliUx from 'grpcoin';","symbol":"CliUx","correct":"import { CliUx } from 'grpcoin';"},{"note":"TypeScript type available.","wrong":"const Command = require('grpcoin').Command;","symbol":"Command","correct":"import { Command } from 'grpcoin';"}],"quickstart":{"code":"import { run } from 'grpcoin';\n\n// Ensure TOKEN environment variable is set\nprocess.env.TOKEN = process.env.TOKEN ?? 'ghp_xxxxxxxxxxxx';\n\n// Run a command programmatically\nawait run(['buy', 'ETH', '2.5']);\n\n// Or use CLI directly:\n// $ npx grpcoin sell BTC 1.0","lang":"typescript","description":"Shows how to import and run grpcoin commands programmatically and as CLI."},"warnings":[{"fix":"Use import syntax or dynamic import().","message":"Breaking change in v2: Switched to ESM only. CommonJS require() no longer works.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Use 'portfolio' command instead.","message":"The 'watch' command is deprecated and will be removed in v3.","severity":"deprecated","affected_versions":"2.x"},{"fix":"Set TOKEN environment variable before running commands.","message":"Requires a valid GitHub TOKEN environment variable. Without it, commands fail.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'2.1.0':21 'base':48 'built':14 'buy':24 'cli':5,8,50 'coin':3,28,49 'command':53 'cryptocurr':12 'current':17 'differenti':43 'display':30 'framework':42 'github':34 'grpc':2,47 'grpc-base':46 'grpcoin':1 'javascript':54 'manag':11 'node':4 'oclif':16,41,55 'permiss':37 'portfolio':31 'requir':32 'sell':25 'simpl':52 'stabl':18 'support':23 'token':35 'tool':9 'transact':13 'typescript':39,56 'use':38 'version':19 'watch':27","created_at":"2026-06-07T16:54:58.833131+00:00","updated_at":"2026-06-07T16:54:58.833131+00:00","problems":[{"fix":"Use import { run } from 'grpcoin';","cause":"Using require() in ESM-only v2+","error":"Error: Cannot find module 'grpcoin'"},{"fix":"export TOKEN=ghp_xxxxxxxxxxxx","cause":"Missing GitHub token","error":"Error: TOKEN environment variable not set"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/grpcoin/example-cli-node","github":"https://github.com/TheYkk/grpcoin","docs":null,"changelog":null,"pypi":null,"npm":"grpcoin","openapi_spec":null,"status_page":null,"smithery":null,"categories":["finance"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}