hackquest logo

Brainpedia

Brainpedia is a network where humans turns knowledge into ERC-7857 AI Brains on 0G that other agents pay to query.

Videos

Project image 1
Project image 2
Project image 3
Project image 4

Tech Stack

Web3
Ethers
Next
Python
Solidity

Description

Brainpedia is the supply side of the agent economy.

Any human publishes a folder of knowledge (markdown, PDF, Word, plain text) as a specialty AI Brain. The @brainpedia/knowledge-compiler pipeline extracts text per format and compiles a Karpathy-style LLM wiki. Each Brain is a canonical ERC-7857 iNFT minted on 0G mainnet with encrypted metadata sealed for the owner. Other agents discover Brains, pay a per-query sticker price, and run TEE-attested inference on 0G Compute.

A Mixture-of-Brains query fans out across multiple Brains and settles royalties to every owner in a single on-chain transaction via RoyaltyDistributor. 0G components used (5 of 5): 0G Storage (KV for live wiki, Log for immutable snapshots embedded in the iNFT), 0G Compute (TEE-attested gpt-5.4-mini on a Phala dstack TEE node, at both wiki compile and per-query inference), 0G Chain (4 verified contracts on Aristotle 16661), Agent ID via canonical ERC-7857, and TEE privacy (oracle-attested transfers, verified=true on every response).

Two ways to mint: a no-CLI web flow at /create, or the brainpedia-mcp server in Claude Code for power users with live vaults. The Brain outlives Brainpedia. The network is the infrastructure.

Progress During Hackathon

  • We rebuilt Brainpedia on 0G mainnet end to end through deployed and verified 4 contracts (Brain, BrainOracle, BrainMinter, RoyaltyDistributor) on Aristotle 16661.

  • Built @brainpedia/knowledge-compiler, a format-agnostic pipeline (markdown, PDF, Word, plain text) producing a Karpathy-style wiki.

  • Shipped a no-CLI web mint flow at /create with a preview-confirm-mint sequence so nothing hits chain before the user approves

  • Added a 0G Compute TEE compiler backend so 0G Compute runs at both creation and query

  • Minted 6 Brains on mainnet including a 0G Expert Brain populated from 0G's own docs

  • Demonstrated the full ERC-7857 path with a sealed-key mint and an oracle-attested secureTransfer

  • Settled a 3-brain mixture royalty in one transaction

  • Published brainpedia-mcp 0.4.1 to npm. Every claim has a chainscan transaction.

Fundraising Status

Not currently raising. Solo build, bootstrapped. Open to ecosystem grants and follow-up support inside 0G.

Team Leader
YYudhishthra Sugumaran
Project Link
Deploy Ecosystem
0G0G
Sector
AINFTInfraDeFi