| … | … | @@ -1,13 +1,13 @@ |
| 1 | 1 | # Wirecore Deployment on Tabertron |
| 2 | 2 | |
| 3 | 3 | **Date**: 2026-01-18 |
| 4 | | **Status**: Running in production (Phase 2 complete) |
| 4 | **Status**: Running in production (Phase 3 complete) |
| 5 | 5 | |
| 6 | 6 | --- |
| 7 | 7 | |
| 8 | 8 | ## Current Status |
| 9 | 9 | |
| 10 | | ✅ **Wirecore running**: PID 578568 |
| 10 | ✅ **Wirecore running**: PID 581012 |
| 11 | 11 | ✅ **Port**: 3000 |
| 12 | 12 | ✅ **Node version**: v22.20.0 |
| 13 | 13 | ✅ **Storage**: `./wirecore-web-storage/` (legacy server feed) |
| … | … | @@ -69,6 +69,31 @@ Feeds now persist across server restarts: |
| 69 | 69 | - `a079021` - Add pagination to timeline endpoint (Phase 2 complete) |
| 70 | 70 | - `18b116e` - Fix pagination: aggregate all posts before limiting |
| 71 | 71 | |
| 72 | ### Phase 3: P2P Feed Discovery & Replication (COMPLETE) |
| 73 | |
| 74 | Proper P2P feed discovery and replication: |
| 75 | - **Feed key mapping**: getFeedKey() method added to Wirecore |
| 76 | - **Metadata enhancement**: feedKey stored in metadata.json |
| 77 | - **Discovery endpoint**: /api/discover/:publicKey returns feedKey |
| 78 | - **Follow with discovery**: Server discovers feedKey before replication |
| 79 | - **Hyperswarm replication**: Follows trigger P2P feed replication |
| 80 | - **Follow persistence**: Followed feeds restored on startup via _loadFollows() |
| 81 | |
| 82 | **Architecture**: |
| 83 | - Each user has unique Hypercore feed (server-managed) |
| 84 | - Browser publicKey (ed25519) maps to Hypercore feedKey |
| 85 | - Hyperswarm joins followed users' topics |
| 86 | - Timeline aggregates from own feed + followed feeds |
| 87 | - All feeds replicate via P2P when online |
| 88 | |
| 89 | **Verified working**: |
| 90 | - ✅ Discovery endpoint returns feedKey for online/offline users |
| 91 | - ✅ metadata.json will include feedKey for new posts |
| 92 | - ✅ Follow flow: publicKey → discovery → feedKey → replicate |
| 93 | |
| 94 | **Recent commits**: |
| 95 | - `f7334c0` - Implement P2P feed discovery & replication (Phase 3) |
| 96 | |
| 72 | 97 | --- |
| 73 | 98 | |
| 74 | 99 | ## Location |