{"id":31065263,"url":"https://github.com/serapath/p2p-news-app","last_synced_at":"2025-09-15T15:54:17.169Z","repository":{"id":293465802,"uuid":"984125555","full_name":"serapath/p2p-news-app","owner":"serapath","description":"A news blogs app built via p2p hypercore/hyperswarm stack. ","archived":false,"fork":false,"pushed_at":"2025-08-25T15:35:24.000Z","size":1348,"stargazers_count":3,"open_issues_count":7,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-10T02:05:52.289Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://trulynotafan.github.io/p2p-news-app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/serapath.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-15T12:41:30.000Z","updated_at":"2025-09-05T16:17:31.000Z","dependencies_parsed_at":"2025-05-15T13:48:53.261Z","dependency_job_id":"5ceb2402-a75d-4c74-abfb-d9f88f14ccc4","html_url":"https://github.com/serapath/p2p-news-app","commit_stats":null,"previous_names":["trulynotafan/p2p-news-app","serapath/p2p-news-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/serapath/p2p-news-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Fp2p-news-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Fp2p-news-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Fp2p-news-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Fp2p-news-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serapath","download_url":"https://codeload.github.com/serapath/p2p-news-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Fp2p-news-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275281932,"owners_count":25437090,"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","status":"online","status_checked_at":"2025-09-15T02:00:09.272Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2025-09-15T15:54:15.063Z","updated_at":"2025-09-15T15:54:17.157Z","avatar_url":"https://github.com/serapath.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nA p2p news app that uses the hypercore/hyperswarm stack to provide independent, no limit communication.\n\n# Dev Diray\nYou can check out the dev-diary [here](https://hackmd.io/@mERxC4akTfWgpejBs9V3VQ/Hk-gF47-lg)\n\nAlso I have made a demo video which you guys can check that essentially explains this stack and app.\n[Video](https://www.youtube.com/watch?v=79pv95Yk8qE)\n\n\n# Usage\n\nFor Web peers just go to my deployed [github_page](https://trulynotafan.github.io/p2p-news-app/) and the hosted relay would work and let you join.\n\nBut if you want to try it manually:\n\n\nClone the repository:\n```git clone https://github.com/trulynotafan/p2p-news-app```\n\n## Install bare\n\n```npm i -g bare```\n\n## Run relay \n\n\ne.g: `npm run relay`                                                  \n```\n\u003e p2p-news-app@0.0.1 relay\n\u003e node src/node_modules/relay/index.js\n\nRelay running on ws://localhost:8080\n\n```\n\n\n## Run web peer\n\ne.g: `npm run build \u0026\u0026 npm run web`   \n\n```\n[0000] info  Server running at http://192.168.1.10:9966/ (connect)\n[0000] info  LiveReload running\n[0003] 2752ms     2.3MB (browserify)\n\n```\nNow open the webpage, input your username to join the topic, have your friends join aswell and when two peers connect, you can subsribe to each other and exchange blogs, fully decentralized. \n\n**Screenshot**\n\n\u003cimg width=\"623\" height=\"316\" alt=\"image\" src=\"https://github.com/user-attachments/assets/daffc03b-a036-4beb-a3db-6586b151bef2\" /\u003e\n\n\n\n## Run native peer\n\ne.g: `npx native-peer --name somename`   \n\n```\n npx native-peer --name afaan                                       [15:56:26]\n[peer-afaan] start\n[peer-afaan] { peerkey: '6e2b26fabdf50698182e2339925e696e1e6166980fa0bc6ad4103eeb7a555292' }\n[peer-afaan] ✅ Successfully created a new core with the key\n[peer-afaan] { corekey: '748b6027047f111ff07d403a0746e43f34d00df061564e4ad8f6af74d897b222' }\n[peer-afaan] Joining swarm\nSwarm Joined, looking for peers\nNative peer CLI started successfully.\n\n\n```\nThe native peer will also join the same topic, and you will see diffrent option to subsribe to other online peers (web or CLI) and append data or replicate.\n\n**Screenshot**\n\n\u003cimg width=\"322\" height=\"151\" alt=\"image\" src=\"https://github.com/user-attachments/assets/ab4b0ce6-f41f-47e2-b63c-59f806552650\" /\u003e\n\nIf you want to see the flow of the code and how everything was made step by step check out the dev diary and for quick go through, check [code_explanation](https://github.com/trulynotafan/p2p-news-app/blob/main/docs/code_explanation.md)\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserapath%2Fp2p-news-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserapath%2Fp2p-news-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserapath%2Fp2p-news-app/lists"}