{"id":22310598,"url":"https://github.com/djasnowski/blockchain.js","last_synced_at":"2025-10-14T03:30:22.196Z","repository":{"id":227141881,"uuid":"156115776","full_name":"djasnowski/blockchain.js","owner":"djasnowski","description":"Native blockchain implementation in JavaScript.","archived":false,"fork":false,"pushed_at":"2018-11-04T20:04:20.000Z","size":851,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-03T21:13:14.337Z","etag":null,"topics":["blockchain","blockchain-demos","blockchain-technology","cryptocurrency","cryptography"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/djasnowski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2018-11-04T19:13:40.000Z","updated_at":"2024-04-15T18:27:49.000Z","dependencies_parsed_at":"2024-03-11T20:59:27.034Z","dependency_job_id":"c559a81c-0cc5-4217-90dd-06d1f9021655","html_url":"https://github.com/djasnowski/blockchain.js","commit_stats":null,"previous_names":["naknode/blockchain.js","djasnowski/blockchain.js"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djasnowski%2Fblockchain.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djasnowski%2Fblockchain.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djasnowski%2Fblockchain.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djasnowski%2Fblockchain.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/djasnowski","download_url":"https://codeload.github.com/djasnowski/blockchain.js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236438313,"owners_count":19148834,"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","cryptocurrency","cryptography"],"created_at":"2024-12-03T21:13:18.990Z","updated_at":"2025-10-14T03:30:16.698Z","avatar_url":"https://github.com/djasnowski.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# blockchain.js [![Build Status](https://travis-ci.org/naknode/blockchain.js.svg?branch=master)](https://travis-ci.org/naknode/blockchain.js)\n\n![Demo](blockchain.gif)\n\n\u003e Native blockchain implementation in JavaScript.\n\n## How to use\n\n### Connecting peers\n\n1. Connect two or more peers in seperate terminal sessions.\n\nFirst, `peer 1` (`npm run peer1`):\n\n```\n./node_modules/.bin/cross-env PEER_PORT=6001 HTTP_PORT=3001 node index.js\n```\n\nand `peer 2` or (`npm run peer2`):\n\n```\n./node_modules/.bin/cross-env PEER_PORT=6002 HTTP_PORT=3002 PEERS=6001 node index.js\n```\n\n\n### Mine the Blockchain\n\nUse curl below to simply execute or just run (`npm run mine`)\n\n```bash\ncurl --data '{\"content\" : \"Add some data here\"}' -H \"Content-Type: application/json\" http://localhost:3001/mine\n```\n\nor you can use [Postman](https://www.getpostman.com/) to execute `POST` requests and mine for blocks.\n\n## Unit Tests\n\nRun the unit tests by executing the following command:\n\n```\nnpm run test\n```\n\nTests will run using [AVA](https://github.com/avajs) and validate the blockchain technology code to see if it's broken through Q\u0026A scenarios.\n\nAdditionally, you can run `npm run lint` to check to see if the code is ESLint compliant.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjasnowski%2Fblockchain.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjasnowski%2Fblockchain.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjasnowski%2Fblockchain.js/lists"}