diff --git a/markdown/Native Messaging: Finally Bringing P2P to the Modern Browser.md b/markdown/Native Messaging: Finally Bringing P2P to the Modern Browser.md index 93f7d37..6ef2051 100644 --- a/markdown/Native Messaging: Finally Bringing P2P to the Modern Browser.md +++ b/markdown/Native Messaging: Finally Bringing P2P to the Modern Browser.md @@ -672,7 +672,9 @@ That ten lines of code does an enormous amount of work under the hood. It initia ## The Data Storage Layer -Beyond just peer-to-peer networking, BridgeSwarm exposes the full Hyperswarm data stack to web pages. This means you can build applications that share not just messages but actual data structures. +Beyond just peer-to-peer networking, BridgeSwarm exposes the full Hyperswarm data stack to web pages. + +This means you can build applications that share not just messages but actual data structures. ```javascript // Hyperbee - key/value store like a P2P Redis @@ -697,7 +699,9 @@ const user = await BridgeSwarm.request('hyperdbGet', { }); ``` -These data operations flow through the same message-passing infrastructure as everything else. The native host manages the storage, handles replication between peers if desired, and returns results to the web page. +These data operations flow through the same message-passing infrastructure as everything else. + +The native host manages the storage, handles replication between peers if desired, and returns results to the web page. ## Tab Swarms considering local and remote @@ -705,7 +709,9 @@ One subtle issue was how each tab got its identity. Hyperswarm generates a crypt ## Example Application: P2P Chat -Here's a complete working chat application that demonstrates the system in action. This is essentially what's in the chat-advanced example in the repository. +Here's a complete working chat application that demonstrates the system in action. + +This is essentially what's in the chat-advanced example in the repository. ```javascript // Complete P2P chat in about 60 lines @@ -797,7 +803,9 @@ function broadcastPresence() { } ``` -This example shows the full flow. Users join a topic, connections establish automatically, messages send directly between peers, and presence information syncs across the network. There's no server required. +This example shows the full flow. Users join a topic, connections establish automatically, messages send directly between peers, and presence information syncs across the network. + +There's no server required. ## Repository and Installation @@ -809,7 +817,9 @@ For the quickest start, you can run the installer directly without cloning: curl -fsSL https://ssh.surf/bridgeswarm/install.sh -o install.sh && bash install.sh ``` -This downloads BridgeSwarm, builds the native host, packages the extension, and opens your browser to load it. The installer handles all the compilation and configuration automatically. +This downloads BridgeSwarm, builds the native host, packages the extension, and opens your browser to load it. + +The installer handles all the compilation and configuration automatically. If you prefer manual installation, clone the repository and run the setup script: