03What I built
Riddle
A real-time social network, in development.
- Period
- 2024 to today
- Role
- Design and development
- Stack
- React NativeAdonisJSWebSocketPostgreSQL
01Context
Riddle is a social network in development, built around real-time exchanges. The project is a testing ground for everything real-time, on the server and in the mobile app.
02Role
Design and development, solo for now. I define the product, the API and the mobile app.
03Architecture
The AdonisJS API exposes a REST layer for persistent data and a WebSocket layer for live events: messages, presence, notifications. Data is stored in PostgreSQL.
The mobile app is in React Native. It keeps a WebSocket connection open and reconciles incoming events with local state to stay consistent even after a network drop.
04Learnings
Real time raises questions that REST hides well: event ordering, reconnection, state shared across several devices. Designing the event model before the interface saved me many rewrites.