K2 Network
K2 Network is a decentralized peer-to-peer marketplace that connects buyers and sellers directly, without intermediaries. Powered by AI agents for intent classification and built on the Iroh P2P protocol, K2 enables secure, private, and censorship-resistant commerce across desktop and mobile platforms.Key Features
AI-Powered Marketplace
Intent classification via Tambo AI and Groq LLM APIs automatically matches buyer requests with relevant seller offerings.
P2P Communication
Direct messaging between peers using the Iroh Gossip protocol. No central servers required.
Contact Management
P2P-synchronized contact book powered by iroh-docs. Your contacts follow you across devices.
File Sharing
Send and receive files directly via iroh-blobs with QR code sharing and ticket-based downloads.
Topic-Based Discovery
Join topics to find relevant buyers and sellers. Tracker-based peer discovery ensures you connect to the right network.
Cross-Platform
Native applications for Windows, macOS, Linux, and Android built with Tauri 2.
Folder Sync
Syncthing-style folder synchronization powered by iroh-docs. Keep files in sync across all your devices.
Decentralized Identity
Cryptographic identity with OS secure store integration (Windows) and encrypted backup keys.
Tech Stack
| Layer | Technologies | Version |
|---|---|---|
| Frontend | React, TypeScript, Tailwind CSS, shadcn/ui | React 19.2.3 |
| Desktop / Mobile | Tauri 2, Rust | Tauri 2.x |
| P2P Network | Iroh (gossip, blobs, docs) | iroh 1.0.0 |
| AI | Tambo AI, Groq API | - |
| Build Tool | Vite | 6.0.3 |
Workspace Structure
Quick Start
Prerequisites
- Rust (latest stable) - Install via rustup
- Node.js 18+ and npm
- Tauri CLI -
cargo install tauri-cli
Clone and Run
Configure Environment
Create a.env file in k2-app-tauri/:
Architecture Overview
K2 is built as a Rust workspace with two main crates:-
k2-core- The P2P networking library that wraps Iroh protocols (Endpoint, Gossip, Blobs, Docs) with high-level APIs for contacts, chat, file sharing, marketplace, and sync. -
k2-app-tauri- The cross-platform frontend application exposing 36 Tauri commands that bridge the React UI to the Rust P2P core.
Next Steps
Architecture
Deep dive into K2’s system design, data flows, and network topology.
Development
Set up your development environment, run tests, and understand the build process.
CLI Commands
Reference for all 36 Tauri commands organized by category.
Deployment
Build Windows installers, Android APKs, and release processes.