statframe is a Farcaster frame server designed to render detailed user analytics within Farcaster frames. Users can input their Farcaster ID or username to access personalized statistics, including user profile information, casting activity over the past 30 days, engagement rates, Moxie earnings, and top channel contributions across multiple frame routes that persist input data. The application integrates the Lum0x SDK to retrieve detailed user profile stats (followers, following), cast stats (casts, reactions, recasts, replies), and Moxie earning stats (total earned, cast earnings, frame developer earnings, other earnings). The Nanograph API is used to fetch user contribution metrics across various channels to identify and display the user's top channel based on the highest contribution. Engagement rate is calculated as the total interactions (likes, recasts, and replies) divided by the number of followers, multiplied by 100%. Caching is implemented to reduce load times. Tech stack used: Frog: a framework for building Farcaster frames; Frog UI: for Frame UI components; Neynar: Farcaster Hub for utilizing Frog devtools for local frame validation; NextJS API routes for the frame server; Vercel for deployment.
Github Repo: https://github.com/ss251/farhack-frames-app |
Frame URL: https://farhack-frames-app.vercel.app/api