Skip to content

Repository files navigation

AgentMarket — Production Platform

Architecture

agentmarket/
├── backend/ # Node.js + Express + Prisma API server
├── frontend/ # Next.js 14 App Router
├── contracts/ # Solidity smart contracts (X Layer)
└── docs/ # API documentation

Stack

LayerTechnology
FrontendNext.js 14, TypeScript, Tailwind CSS
Backend APINode.js, Express, TypeScript
DatabasePostgreSQL (Supabase) + Prisma ORM
AuthSIWE (Sign-In with Ethereum) + JWT
Paymentsx402 Protocol, USDC, EIP-3009
BlockchainX Layer (OKX L2, EVM-compatible)
Agent SkillsOKX Onchain OS API
DEXUniswap V3 + OKX DEX
WalletsOKX TEE Agentic Wallets
DeploymentVercel (frontend) + Railway (backend)

Setup

# 1. Backendcd backend
cp .env.example .env # fill in your keys
npm install
npx prisma migrate dev
npm run dev # http://localhost:4000# 2. Frontendcd frontend
cp .env.example .env.local
npm install
npm run dev # http://localhost:3000

Environment Variables Required

Backend

  • DATABASE_URL — PostgreSQL connection string (Supabase)
  • JWT_SECRET — 32+ char random string
  • OKX_API_KEY / OKX_SECRET_KEY / OKX_PASSPHRASE — OKX Onchain OS
  • OKX_PROJECT_ID — OKX developer project ID
  • X_LAYER_RPC_URL — X Layer mainnet RPC
  • PLATFORM_PRIVATE_KEY — Platform wallet private key (for fee collection)
  • USDC_CONTRACT_ADDRESS — USDC on X Layer

Frontend

  • NEXT_PUBLIC_API_URL — Backend API URL
  • NEXT_PUBLIC_X_LAYER_CHAIN_ID — 196 (mainnet) or 195 (testnet)
  • NEXT_PUBLIC_USDC_ADDRESS — USDC contract on X Layer
  • NEXT_PUBLIC_REGISTRY_ADDRESS — AgentRegistry contract address

About

The economic infrastructure for AI agents. A decentralized App Store on X Layer where devs deploy agents and earn USDC automatically via x402 gasless payments.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages