A Solana-based token launch initiative that shares fees with the 40 most active participants in the /solana and /degen channels on Farcaster.
Launch the TOTH coin on Solana using the BAGS protocol for fee sharing. Reward the top 40 users from each of two Farcaster channels, recognizing their contributions to community engagement and Solana onboarding efforts.
Long-term goal: Build mini-apps that give TOTH token holders utility, celebrating users who bring Solana builders to Farcaster.
Create .env.local with your Neynar API key:
NEYNAR_API_KEY=your_api_key_hereGet your API key from dev.neynar.com
Use the standalone script to fetch the latest top 40 users from each channel and export to CSV:
bun fetch-channel-users.tsThis creates three CSV files:
solana-top-40.csv- Top 40 users from /solana channeldegen-top-40.csv- Top 40 users from /degen channeltoth-all-users.csv- Combined unique users (79 total)
- Rank - Position in the list
- FID - Farcaster ID
- Username - Farcaster username
- Display Name - User's display name
- Cast Count - Number of casts in the channel
- Solana Address - Verified Solana wallet address
- ETH Address - Verified Ethereum wallet address
- Neynar Score - User quality score (0-1)
- Script fetches casts from specified channel using Neynar Feed API
- Aggregates cast counts by author FID
- Ranks by most active (cast count) over recent period
- Fetches full user details including verified wallet addresses
- Exports to CSV with all addresses for token distribution
- Cast count - Total number of casts from the user in the channel
- Identifies consistent, active community members
- Most recent casts weighted more in the Neynar ranking
Static landing page with embedded CodePen integrations:
- TopHatEmbed - Displays brand/logo
- BaseGlobeEmbed - Interactive globe visualization
bun devbun run build
bun start- ENHANCEMENT FIRST - Extend existing components rather than creating duplicates
- AGGRESSIVE CONSOLIDATION - Remove dead code immediately
- PREVENT BLOAT - Audit before adding features
- DRY - Single source of truth
- CLEAN - Clear separation of concerns
- MODULAR - Composable, testable components
- PERFORMANT - Optimize loading and caching
- ORGANIZED - Domain-driven design
src/
├── app/
│ ├── page.tsx # Landing page
│ └── layout.tsx # Root layout
├── components/
│ ├── Header.tsx # Nav header
│ ├── Footer.tsx # Footer
│ ├── TopHatEmbed.tsx # CodePen embed
│ ├── BaseGlobeEmbed.tsx # CodePen embed
│ └── magicui/ # UI animations
└── utils/
└── csvExport.ts # CSV export helper
fetch-channel-users.ts # Standalone script for user export
- Run the script to generate CSVs with Solana addresses
- Deploy TOTH token on Solana using BAGS protocol
- Configure fee-sharing to the 79 unique wallet addresses
- Announce to community on Farcaster
- Script requires internet connection to reach Neynar API
- API key is only stored locally in
.env.local(never committed) - CSV generation is one-time; results cached in files
- To update user list, simply run the script again