Legion Social

Social platform for NEAR builders with AI chat, builder directory, and project management

Project Overview

Legion Social is a platform for NEAR ecosystem builders that provides AI chat, builder directory, and project management capabilities. I built this as a main contributor during a NEARCON hackathon.

I leveraged the FastKV protocol for storing and retrieving key-value data on NEAR blockchain. This approach requires only transaction fees, not storage deposits. I also developed near-balancer, a round-robin RPC load balancer that distributes requests across multiple endpoints for improved reliability and reduced rate limiting. Both systems integrate to enable instant project updates and social graph features.

The platform includes AI chat powered by NEAR AI Cloud's GLM-4.6 model with streaming responses and NEAR-specific context. The builder directory allows browsing NEAR Legion NFT holders, viewing profiles, and seeing project showcases. Data syncs from blockchain to D1 database via sync scripts.

Frontend uses React 19, TanStack Router/Query, Tailwind CSS v4, and shadcn/ui. Backend uses Hono.js, Drizzle ORM with D1, Better-Auth, and better-near-auth. Integrations include NEAR AI Cloud, NEAR Social, NEARBlocks API, FastData, and OutLayer payment keys.

Technologies Used

React 19TypeScriptHono.jsDrizzle ORMNEAR ProtocolTailwind CSS v4AI Integration
View Live DemoView Source Code