Orai

On-demand true data generating AI Oracle for everyone and every smart contract

Project Description

Orai: Decentralized AI-powered Q&A platform leveraging blockchain for verifiable answers. Features 0g storage integration, cryptographic proof verification, and community voting for answer validation.

(Exactly 200 characters)

This captures the key aspects I can see from the code:

  • Decentralized Q&A system
  • AI-powered answers
  • Blockchain integration (questions-fastify.routes.ts:1-223)
  • Verification system (modelHash, inputHash, outputHash)
  • 0g storage integration (storageUrl references)

How it's Made

Smart Contracts: Hardhat 3 with native ESM support, Solidity 0.8.20, OpenZeppelin for upgradeability and access control. Deployed on 0G Testnet with custom chain descriptors for block explorer integration.

Relay: Fastify (high-performance over Express), TypeScript, Prisma ORM with PostgreSQL, BullMQ + Redis for async job queues. Critical 0G integrations: @0glabs/0g-serving-broker (v0.5.4) for AI orchestration and @0glabs/0g-ts-sdk (v0.3.3) for decentralized storage.

Frontend: React 19 + Vite 7, RainbowKit v2.2 + Wagmi v2.19 + Viem v2.39 for Web3 (modern hook-based architecture), TailwindCSS for styling, TanStack Query for state management.

Challenges 0G Storage Integration

Benefits

  • Speed: Sub-5s blocks enable 60s answer verification cycles
  • Decentralized AI: GPU nodes independently verify results for consensus
  • Permanent Storage: Erasure-coded redundancy with content-addressed retrieval
background image mobile

Join the mailing list

Get the latest news and updates

Orai | ETHGlobal