{"id":14155155,"url":"https://github.com/dao-xyz/peerbit","last_synced_at":"2026-05-05T23:01:56.448Z","repository":{"id":44579898,"uuid":"485403552","full_name":"dao-xyz/peerbit","owner":"dao-xyz","description":"P2P database framework with encryption, sharding and search","archived":false,"fork":false,"pushed_at":"2026-05-01T19:18:16.000Z","size":67813,"stargazers_count":259,"open_issues_count":111,"forks_count":21,"subscribers_count":7,"default_branch":"master","last_synced_at":"2026-05-01T21:38:17.226Z","etag":null,"topics":["database","distributed","e2ee","libp2p","orbitdb","peer-to-peer"],"latest_commit_sha":null,"homepage":"https://peerbit.org","language":"TypeScript","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/dao-xyz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","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":"Agents.md","dco":null,"cla":null},"funding":{"github":"dao-xyz","patreon":null,"open_collective":"peerbit","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2022-04-25T14:23:54.000Z","updated_at":"2026-05-01T19:17:39.000Z","dependencies_parsed_at":"2026-04-01T19:04:03.446Z","dependency_job_id":null,"html_url":"https://github.com/dao-xyz/peerbit","commit_stats":{"total_commits":2635,"total_committers":6,"mean_commits":439.1666666666667,"dds":0.09715370018975333,"last_synced_commit":"a26f602ca8fa1ff8f376fcd4cdb8a0376e0aa74d"},"previous_names":[],"tags_count":7321,"template":false,"template_full_name":null,"purl":"pkg:github/dao-xyz/peerbit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dao-xyz%2Fpeerbit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dao-xyz%2Fpeerbit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dao-xyz%2Fpeerbit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dao-xyz%2Fpeerbit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dao-xyz","download_url":"https://codeload.github.com/dao-xyz/peerbit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dao-xyz%2Fpeerbit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32586187,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: 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":["database","distributed","e2ee","libp2p","orbitdb","peer-to-peer"],"created_at":"2024-08-17T08:02:18.424Z","updated_at":"2026-05-03T22:01:51.027Z","avatar_url":"https://github.com/dao-xyz.png","language":"TypeScript","funding_links":["https://github.com/sponsors/dao-xyz","https://opencollective.com/peerbit"],"categories":["database"],"sub_categories":[],"readme":"\u003cbr\u003e\n\u003cp align=\"center\"\u003e\n    \u003cimg width=\"140\" src=\"./docs/peerbit-logo.png\"  alt=\"Peerbit icon Icon\"\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\" style=\"font-size: 5vmin;\"\u003e\n    \u003cstrong\u003e\n        Peerbit\n   \u003c/strong\u003e\n\u003c/h1\u003e\n\n\u003ch3 align=\"center\"\u003e\n    Develop for a distributed web with Peerbit\n\u003c/h3\u003e\n\n\u003ch3 align=\"center\" \u003eE2EE \u0026nbsp; \u0026nbsp; P2P \u0026nbsp; \u0026nbsp; Auto-sharding  \u0026nbsp; \u0026nbsp;  Searchable\u003c/h3\u003e\n\n\u003ch3 align=\"center\"\u003e\u003ca href=\"https://peerbit.org\"\u003eDocumentation\u003c/a\u003e - \u003ca href=\"https://github.com/dao-xyz/peerbit-examples\"\u003eExamples\u003c/a\u003e - \u003ca href=\"https://matrix.to/#/#peerbit:matrix.org\"\u003eChat on Matrix\u003c/a\u003e\u003c/h3\u003e\n\n## A building block for the decentralized web\n\nPeerbit is as easy-to-use as Firebase and provide P2P functionality like OrbitDB or GunJS yet with performance for data-intensive applications like live-streaming and cloud-gaming. It’s built on top of Libp2p (and works with IPFS) supporting encryption, sharding and discoverability (searching).\n\nYour database schema can remain very simple but still utilize P2P networks, auto-scaling, E2E-encryption, discoverability and all other features you’d expect from a database.\n\n## Optimized for performance\n\nPeerbit is performant, so performant in fact you can use it for [streaming video](https://stream.dao.xyz) by having peers subscribing to database updates. In a low latency setting, you can achieve around 1000 replications a second and have a thoughput of 100 MB/s.\n\n![Dogestream](/docs/videostream.gif)\n\n## Other examples\n\n### [Chat room](https://github.com/dao-xyz/peerbit-examples/tree/master/packages/one-chat-room/)\n\n[\u003cimg src=\"https://github.com/dao-xyz/peerbit-examples/blob/master/packages/one-chat-room/demo.gif\" width=\"600\" /\u003e](https://github.com/dao-xyz/peerbit-examples/tree/master/packages/one-chat-room/)\n\n### [Lobby + chat rooms](https://github.com/dao-xyz/peerbit-examples/tree/master/packages/many-chat-rooms/)\n\n[\u003cimg src=\"https://github.com/dao-xyz/peerbit-examples/blob/master/packages/many-chat-rooms/demo.gif\" width=\"600\" /\u003e](https://github.com/dao-xyz/peerbit-examples/tree/master/packages/many-chat-rooms/)\n\n## [Blog platform](https://github.com/dao-xyz/peerbit-examples/tree/master/packages/blog-platform/)\n\n[\u003cimg src=\"https://github.com/dao-xyz/peerbit-examples/blob/master/packages/blog-platform/demo-cli.gif\" width=\"600\" /\u003e](https://github.com/dao-xyz/peerbit-examples/tree/master/packages/blog-platform/)\n\n\n### [Sync files](https://github.com/dao-xyz/peerbit-examples/tree/master/packages/file-share/)\n\n#### [React app](https://github.com/dao-xyz/peerbit-examples/tree/master/packages/file-share/)\n\n[\u003cimg src=\"https://github.com/dao-xyz/peerbit-examples/blob/master/packages/file-share/demo-frontend.gif\" width=\"600\" /\u003e](https://github.com/dao-xyz/peerbit-examples/tree/master/packages/file-share/)\n\n#### [CLI](https://github.com/dao-xyz/peerbit-examples/tree/master/packages/file-share/)\n\n[\u003cimg src=\"https://github.com/dao-xyz/peerbit-examples/blob/master/packages/file-share/demo-cli.gif\" width=\"600\" /\u003e](https://github.com/dao-xyz/peerbit-examples/tree/master/packages/file-share/)\n\n### [Collaborative machine learning](https://github.com/dao-xyz/peerbit-examples/tree/master/packages/collaborative-learning/)\n\n[\u003cimg src=\"https://github.com/dao-xyz/peerbit-examples/blob/master/packages/collaborative-learning/demo.gif\" width=\"600\" /\u003e](https://github.com/dao-xyz/peerbit-examples/tree/master/packages/collaborative-learning/)\n\n## Get Started\n\n1. Install Peerbit by following the simple setup instructions in our [Installation Guide](https://peerbit.org/#/getting-started).\n\n2. Dive into our comprehensive [Documentation](https://peerbit.org/#/modules/client/) or checkout the [Example repository](https://github.com/dao-xyz/peerbit-examples) to explore the powerful features and learn how to leverage Peerbit to its fullest potential.\n\n3. Join us on [Matrix](https://matrix.to/#/#peerbit:matrix.org) to connect, share ideas, and collaborate with like-minded individuals.\n\n## Contribute\n\nPeerbit is an open-source project, and we welcome contributions from developers like you! Feel free to contribute code, report issues, and submit feature requests. Together, let's shape the future of Peerbit.\n\nIMPORTANT: Peerbit uses pnpm.\n\n1. Check pnpm version: `pnpm -v` should print something\n2. Install: `pnpm install`\n3. Build: `pnpm run build`\n4. Run tests: `pnpm run test` in root or in a specific subpackage\n\nYou might possibly need to CMD + Shift + P and then enter to restart the typescript server after the build step.\n\n### Local coverage report (Codecov-style)\n\nTo generate a local, navigable HTML report with the same remapped source paths used for Codecov uploads:\n\n1. (Optional) clear old coverage artifacts:\n   `find . -type d -name .coverage -prune -exec rm -rf {} + \u0026\u0026 rm -rf .nyc_output coverage`\n2. Rebuild workspace packages (refreshes generated `dist` type artifacts):\n   `pnpm run build`\n3. Run the CI coverage shards you want to include:\n   `pnpm run test:ci:part-1 \u0026\u0026 pnpm run test:ci:part-2 \u0026\u0026 pnpm run test:ci:part-3 \u0026\u0026 pnpm run test:ci:part-4 \u0026\u0026 pnpm run test:ci:part-5 \u0026\u0026 pnpm run test:ci:part-6`\n4. Generate the merged report:\n   `pnpm run coverage:report`\n5. Open the report:\n   macOS: `open coverage/index.html`\n   Linux: `xdg-open coverage/index.html`\n\n`pnpm run coverage:report` runs remapping first (`coverage-remapped.json` when available), then merges all workspace coverage files and creates HTML + text output via `nyc`.\n\nTo create a new package, follow the following steps:\n\n1. Clone the time folder within /packages/utils/time to the desired destination and rename it\n2. Update the package.json `name`, `description`, `version` fields\n3. Possibly add other depencencies to the package.json `dependencies` field (like `@peerbit/crypto`)\n4. Delete contents in CHANGELOG.md\n5. Update the root package.json `workspaces` field\n6. Update the root pnpm-workspace.yaml packages list\n7. Run `pnpm install` once in the root\n\nWe recommend running tests with the VS Code integration though: https://github.com/CoderLine/mocha-vscode\n\n### VScode specific\nAdd the following to your settings.json file:\n```sh\n{\n      \"vitest.experimentalStaticAstCollect\": true, // might be helpful\n      \"search.followSymlinks\": false, // prevents rg hogging CPU\n}\n```\n\n## Let's Get Coding!\n\n[peerbit.org](https://peerbit.org)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdao-xyz%2Fpeerbit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdao-xyz%2Fpeerbit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdao-xyz%2Fpeerbit/lists"}