{"id":13683006,"url":"https://github.com/0xs34n/blockchain-cli","last_synced_at":"2025-05-16T15:02:45.951Z","repository":{"id":49399710,"uuid":"97018955","full_name":"0xs34n/blockchain-cli","owner":"0xs34n","description":"⛓️ A minimal blockchain command-line interface.","archived":false,"fork":false,"pushed_at":"2022-07-12T18:42:04.000Z","size":3072,"stargazers_count":1154,"open_issues_count":13,"forks_count":167,"subscribers_count":64,"default_branch":"master","last_synced_at":"2025-04-12T12:54:21.818Z","etag":null,"topics":["blockchain","blockchain-demos","blockchain-technology","cryptocurrencies","cryptocurrency","javascript","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xs34n.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":"2017-07-12T14:42:55.000Z","updated_at":"2025-03-15T20:58:46.000Z","dependencies_parsed_at":"2022-07-26T16:02:08.164Z","dependency_job_id":null,"html_url":"https://github.com/0xs34n/blockchain-cli","commit_stats":null,"previous_names":["seanseany/blockchain-cli","seanseany/blockchain.js"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xs34n%2Fblockchain-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xs34n%2Fblockchain-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xs34n%2Fblockchain-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xs34n%2Fblockchain-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xs34n","download_url":"https://codeload.github.com/0xs34n/blockchain-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254553936,"owners_count":22090415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["blockchain","blockchain-demos","blockchain-technology","cryptocurrencies","cryptocurrency","javascript","nodejs"],"created_at":"2024-08-02T13:01:57.229Z","updated_at":"2025-05-16T15:02:45.894Z","avatar_url":"https://github.com/0xs34n.png","language":"JavaScript","readme":"\n\u003ch1 align=\"center\"\u003e\n  \u003cbr\u003e\n  \u003ca href=\"https://github.com/seanseany/blockchain.js/\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/seanseany/blockchain-cli/master/img/logo.png\" width=\"200\"\u003e\u003c/a\u003e\n  \u003cbr\u003e\n    Blockchain CLI\n  \u003cbr\u003e\n\u003c/h1\u003e\n\n\n\u003ch4 align=\"center\"\u003eA minimal blockchain command-line interface.\u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://badge.fury.io/js/blockchain-cli\"\u003e\n    \u003cimg src=\"https://badge.fury.io/js/blockchain-cli.svg\" alt=\"Gitter\"\u003e\n  \u003c/a\u003e\n\n  \u003c!--\u003ca href=\"https://www.npmjs.com/package/blockchain-cli\"\u003e\n      \u003cimg src=\"https://img.shields.io/npm/dt/blockchain-cli.svg\" alt=\"Gitter\"\u003e\n  \u003c/a\u003e--\u003e\n\u003c/p\u003e\n\u003cbr\u003e\n\n![screenshot](https://raw.githubusercontent.com/seanseany/blockchain-cli/master/img/demo.gif)\n\n## 🎉 Features\n- 💎 Blocks with index, hash, data, and timestamp.\n- ⛏ Proof-of-work system.\n- ⛓ In-memory JavaScript array to store the blockchain.\n- ✅ Block integrity validation.\n- 📡 Decentralized and distributed peer-to-peer communication.\n- 🌴 Merkle tree implementation\n\n## 📦 Installation\n\nTo install this application, you'll need [Node.js](https://nodejs.org/en/download/) (which comes with [npm](http://npmjs.com)) installed on your computer. From your command line:\n\n#### Source\n\nYou'll need [Git](https://git-scm.com) to run the project from source. From your command line:\n\n```bash\n# Clone this repository\n$ git clone https://github.com/seanseany/blockchain-cli\n\n# Go into the repository\n$ cd blockchain-cli\n\n# Install dependencies\n$ npm install\n\n# Run the app\n$ npm start\n```\n\n## ⚒️ Built With\n\n* [Vorpal](https://github.com/dthree/vorpal) - Interactive node CLI\n* [Peer Exchange](https://github.com/mappum/peer-exchange/) - Peer to peer communication\n* [Crypto-js](https://github.com/brix/crypto-js) - Crypto library for hashing blocks\n\n## 🎫 License\n\nThis project is licensed under the Apache-2.0 License - see the [LICENSE](LICENSE) file for details\n\n## 🙏 Acknowledgments\n\n* [This article](https://medium.com/@lhartikk/a-blockchain-in-200-lines-of-code-963cc1cc0e54) written by Lauri Hartikka.\n* Original [repo](https://github.com/lhartikk/naivechain) by Lauri Hartikka\n* Antony Jone's [fork](https://github.com/antony/naivechain) for refactoring.\n* Nick Fallon [fork](https://github.com/nickfallon/naivechain) for PoW implementation.\n* Logo designed by Muammark / Freepik.\n* FAQ by [/u/sheepiroth](https://www.reddit.com/r/javascript/comments/6ohc9h/a_blockchain_commandline_interface_built_with/dkiahix/)\n\n## ℹ️ FAQ \n\n#### When or why I would use this?\n\nYou should use this if you want to build a bitcoin wallet, payment processor, or bitcoin merchant portal in javascript. You might also be interested in why decentralized networks or p2p applications are useful, or what advantages they have; this project seems like a good way to learn about that.\n\n#### What is the block chain actually for?\n\nThe blockchain is for authorizing payments of a cryptocurrency between two peers without the need for a centralized 3rd party approving of the transaction. There are other uses of the blockchain which are more in line with the second point, digital signatures, but they are secondary to the main purpose of peer to peer transfer of value. Bitcoin is blockchain's killer app.\n\n#### Why the hell should I care about the blockchain?\n\nBlockchain facilitates trade over a network. Imagine a metal as scarce as gold with a magical property of \"can be transported over a communications channel\". This has implications with respect to individual rights, the world economy, and the way we monetize and transfer value at a level higher than bartering directly for goods.\n\nLately people are distancing themselves from the proof-of-work concept and are using blockchain to describe only the mechanism of signing a transaction as verification of sending an amount. Change \"sending an amount\" to almost anything else - authorizing a change in a ruleset, casting a vote for a politician, verifying a point of IoT data is authentic. Now add in the concept of a peer-to-peer network to this and you've eliminated a middleman that once existed, thereby improving the efficiency and reducing cost. In these cases, \"blockchain\" refers to the structuring of a program or database in such a way that it has no central point of failure while still providing all of the features expected. For example, augur and gnosis are decentralized prediction markets. Ethereum has implemented smart contracts which enable decentralized release of funds based on a gambling outcome.\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xs34n%2Fblockchain-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xs34n%2Fblockchain-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xs34n%2Fblockchain-cli/lists"}