toolkit-p2p
v0.7.0
Published
Complete P2P operating system - Install everything in one command
Maintainers
Readme
toolkit-p2p
The complete P2P operating system in one package
Install everything with a single command. Get the full toolkit-p2p stack instantly.
One-Command Install
pnpm add toolkit-p2pThat's it! This installs all 15 core packages.
What You Get
Everything you need to build decentralized apps:
- ✅ @toolkit-p2p/identity - Ed25519 cryptographic identity
- ✅ @toolkit-p2p/feed - Social feeds, posts, threads, reactions
- ✅ @toolkit-p2p/social - Web of Trust, follow/block
- ✅ @toolkit-p2p/sync - CRDTs (LWW-Map, G-Counter, Merkle trees)
- ✅ @toolkit-p2p/graph - Graph database
- ✅ @toolkit-p2p/bulletin - Real-time shared state
- ✅ @toolkit-p2p/mailbox - End-to-end encrypted messaging
- ✅ @toolkit-p2p/transport - WebRTC mesh networking
- ✅ @toolkit-p2p/mesh-cache - Content-addressed storage
- ✅ @toolkit-p2p/cron - Job scheduling
- ✅ @toolkit-p2p/push - Push notifications
- ✅ @toolkit-p2p/search - Full-text search
- ✅ @toolkit-p2p/crypto - AES-256-GCM encryption
- ✅ @toolkit-p2p/core - Utilities and security
- ✅ @toolkit-p2p/codec - CBOR encoding
Total: 15 packages, 900+ tests, production-ready
Quick Start
// Import everything
import * as toolkit from 'toolkit-p2p';
// Or import specific modules
import { loadOrCreateIdentity } from 'toolkit-p2p/identity';
import { PostManager } from 'toolkit-p2p/feed';
import { SocialGraph } from 'toolkit-p2p/social';
// Build a social network
const identity = await loadOrCreateIdentity();
const social = new SocialGraph(identity.did);
const posts = new PostManager(identity.did, social);
// Create a post
const post = await posts.createPost({
content: 'Hello, decentralized world!',
tags: ['#p2p']
});
// Done! No servers, no database, no AWS.Why This Package?
Single install instead of:
# Old way (15 separate installs)
pnpm add @toolkit-p2p/identity
pnpm add @toolkit-p2p/feed
pnpm add @toolkit-p2p/social
# ... 12 more linesNew way (one install):
pnpm add toolkit-p2pSaves time. Gets you building faster.
What You Can Build
- Social Networks (Twitter, Mastodon alternatives)
- Chat Apps (Signal-level E2EE)
- Collaborative Tools (Real-time, Google Docs-style)
- File Sharing (BitTorrent-like, P2P)
- Community Platforms (Forums, Reddit alternatives)
- Knowledge Bases (Wikis, Notion alternatives)
All in 20-40 minutes. All with zero servers. All free forever.
Stats
- Packages: 15 included
- Tests: 900+ passing
- Code: ~40,000 lines
- License: MIT
- Cost: $0/month
- Servers: 0
Performance
With optional Rust modules (3-10x faster):
- Cryptography: 10x faster
- Vector search: 7x faster
- Graph queries: 5x faster
Enable Rust:
process.env.RUST_CRYPTO = 'true';
process.env.RUST_VECTOR = 'true';
process.env.RUST_GRAPH = 'true';Documentation
- Website: https://toolkit-p2p.com
- GitHub: https://github.com/Toolkit-CLI/toolkit-p2p
- Complete Guide: See main README
- Test Report: 1,115+ tests verified
License
MIT - Use it however you want. Build commercial products. No restrictions.
toolkit-p2p: The easiest way to build decentralized apps.
One install. No servers. Production-ready.
