Skip to content

prane-eth/GameNet3-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project logo

Blockchain-based decentralized social platform for gamers that includes AI-generated images for games and minting NFTs for active users.

Node.js React Hardhat OpenAI MIT License

Demo

Demo Video

Chatbot demo: Chatbot Demo

About

GameNet3-AI is a full-stack AI-powered decentralized social platform built for gaming communities. It combines blockchain smart contracts, web3 integrations, a Node.js backend, and a React frontend with AI-powered features to provide secure, equitable, and accessible social experiences. The platform prioritizes user sovereignty, content provenance, and transparent moderation tools.

Highlights

  • Sovereign identities using Web3 wallets (MetaMask) without email and password
  • Free AI-generated NFTs for most active users
  • On-chain NFT contracts (see blockchain/contracts)
  • Web3-enabled frontend using ethers.js and MetaMask.
  • Node.js + SQLite backend with REST APIs.
  • AI utilities for chat, moderation, and personalized recommendations.

Features

  • Decentralized user identities and NFTs
  • Social feed with provenance metadata
  • Game listings and participation tracking
  • Secure web3 integrations and transactions
  • AI-driven chat and content tools

Tech Stack

Repository layout (truncated)

  • blockchain/ — solidity contracts, Hardhat config, scripts, tests
  • backend/ — server, routes, scripts, tests
  • frontend/ — React app, components, pages
  • local-ipfs/ — local IPFS node and data

Quick start

Prerequisites: Node.js (>=16), npm, and MetaMask (for frontend web3 interactions).

  1. Setup environment variables using .env.example as a reference. Copy it to each folder.

  2. Start a local blockchain (Hardhat node)

# in /blockchain
npm install
npx hardhat node
  1. Deploy contracts (in new terminal)
# in /blockchain
node scripts/deploy.js
  1. Backend
# in /backend
npm install
# create local users and seed data
node scripts/create-local-users.js
node scripts/fetch-games.js
# start server
npm start
  1. Frontend
# in /frontend
npm install
npm run dev

Open http://localhost:3000 (or the port shown by Vite) and connect a Web3 wallet.

Development notes

  • Tests: see blockchain/test and backend/test for Mocha/Jest tests. Run them with npm test in each folder.
  • Scripts: backend/scripts contains helpers for seeding, cleaning, and AI testing.
  • AI: backend AI utilities are in backend/src/utils/ai.js and backend/src/utils/ipfs_upload.js.

Using VS Code

If you use VS Code's Run/Start Debugging option, a preconfigured launch will start all the services in multiple terminals. Make sure packages are installed and .env is setup.