Building Pingsy: A Decentralized Uptime Monitor Powered by DePIN
Pingsy is a decentralized uptime monitoring system built on DePIN principles, addressing the trust and single-point-of-failure problems of centralized monitors like Pingdom. The architecture uses a TypeScript monorepo with four apps: a Next.js dashboard, an Express API, a Bun WebSocket hub, and a validator daemon. Validators authenticate via Solana Ed25519 keypairs, receive monitoring tasks every 60 seconds, perform HTTP checks, sign results cryptographically, and earn credits per valid check. The hub verifies signatures and records ticks atomically with payout credits in PostgreSQL via Prisma. The frontend shows a 30-minute timeline of 10 status buckets with worst-status-wins logic. The system enables permissionless participation, tamper-evident results, and per-region latency profiling without trusting a single vendor.