Backend service powering Sugar's interaction with the Lisk blockchain. Built to enable seamless message validation, real-time communication, and on-chain logic handling for the Sugar Web3 streaming platform.
- Express.js – HTTP & WebSocket API
- Viem – Blockchain interaction (Lisk)
- MongoDB – Database for persistence
- RabbitMQ – Queueing & task distribution
- WebSocket – Real-time communication
package.json
highlights:
"scripts": {
"dev": "tsup --watch",
"build": "tsup",
"start": "node ./dist"
}
- Built with TypeScript and bundled via
tsup
- Uses
express-async-errors
for clean async error handling - Real-time via
express-ws
andws
.
├── src/
│ ├── routes/
│ ├── services/
│ ├── packages/
│ └── index.ts
├── .env
└── dist/
.