🏝️ Inspiration: The Sovereign Archipelago
The genesis of Archipel was sparked by a critical observation: our modern digital life is dangerously tethered to centralized "hubs." We wanted to build a system where the network is not a single point of failure, but a collection of autonomous "islands" (nodes) that can communicate securely even if global services go down.
🛠️ How We Built It The Full Stack Fury team built Archipel from the ground up using a modular P2P architecture:
-Discovery Layer: We used UDP Multicast to allow nodes to auto-discover each other on a local network in under 60 seconds.
-Reliable Transport: We implemented TCP servers on each node to handle encrypted message and file transfers.
-AI Integration (Gemini API): We integrated the Gemini AI API to provide an intelligent assistant within the P2P network. This allows users to query an advanced AI directly from their terminal or web UI, with a toggle --no-ai for strict offline environments.
🛡️ Security & Sovereignty
Security is the protocol itself. We implemented a multi-layered cryptographic shield:
- Identity:Every node generates an Ed25519 key pair. The Node ID is derived from the public key, ensuring mathematical authenticity.
- Encryption: We use AES-256-GCM for end-to-end encryption (E2EE) of all messages and files.
- Integrity: We use SHA-256 hashing to verify file segments (chunks) during transfer.
The security of a message $M$ can be represented as: $$C = \text{AES-GCM}{K}(M) \parallel \text{Sign}{SK}(\text{Hash}(M))$$
🧠 Challenges We Ran Into -The Discovery Race:** Managing the asynchronous nature of UDP to avoid "ghost nodes" in the peer table. -API Connectivity:** Bridging the gap between a local P2P network and the Gemini API required careful management of API keys and internet check-ups. -File Chunking:Splitting large files into $512\text{ KB}$ segments to ensure stable transfers without crashing the system memory.
🎓 What We Learned This hackathon was a masterclass in Decentralized Systems. We learned:
- How to repurpose standard protocols (TCP/UDP) to create resilient private networks.
- The power of combining cloud-based AI (Gemini) with local-first P2P architecture.
- That cryptography is the only way to replace the "Trust" usually provided by a central server.
🚀 What's Next?
Mesh Routing:Allowing nodes to act as relays for peers out of direct range.
Log in or sign up for Devpost to join the conversation.