BitSave is a Farcaster MiniApp that empowers crypto users to save and earn yield on their digital assets without losing to market volatility. Built specifically for the Farcaster ecosystem, BitSave makes saving a social experience while providing secure, yield-generating vaults across multiple blockchain networks.
BitSave is a Farcaster MiniApp β a web application that runs natively within Farcaster clients like Warpcast. It leverages Farcaster's social graph and wallet infrastructure to create a seamless saving experience for crypto users.
- Native MiniApp: Built using the Farcaster MiniApp SDK
- Wallet Integration: Direct integration with users' Farcaster wallets (no external wallet connections needed)
- Social Features: Share savings achievements as Farcaster casts
- Identity: Uses Farcaster profiles and social connections
- Distribution: Discoverable through Farcaster's MiniApp catalog
- Chain ID: 8453
- Primary Token: USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913)
- Contract Address:
0x3593546078eecd0ffd1c19317f53ee565be6ca13 - Gas Token: ETH
- Explorer: BaseScan
- Chain ID: 42220
- Supported Tokens:
- cUSD (0x765de816845861e75a25fca122bb6898b8b1282a): Celo Dollar
- USDGLO (0x4f604735c1cf31399c6e711d5962b2b3e0225ad3): Global Dollar
- Contract Address:
0x7d839923Eb2DAc3A0d1cABb270102E481A208F33 - Gas Token: CELO
- Explorer: Celoscan
- Custom Naming: Personalize your savings goals
- Multi-Network Support: Choose between Base and Celo networks
- Flexible Deposits: Start with any amount (including $0)
- Duration Controls: Set saving periods with optional penalties for early withdrawal
- Asset Selection: Support for USDC, cUSD, USDGLO, and more
- Manual Deposits: Add funds to your vault anytime
- Earnings Detection: Automatic monitoring of wallet activity
- Smart Suggestions: AI-powered recommendations based on earning patterns
- Batch Operations: Efficiently manage multiple savings plans
- Wallet Activity Monitoring: Track incoming payments and earnings
- Contextual Prompts: "You earned $50 this week. Save 30% in your Emergency Fund?"
- Customizable Alerts: Control notification frequency and types
- Social Integration: Option to share savings milestones
- Cast Integration: Share savings achievements as Farcaster casts
- Achievement Badges: Unlock and display saving milestones
- Community Features: Connect with other savers in your network
- Referral System: Earn rewards for bringing friends to BitSave
Track and compete with the community across multiple metrics:
- Total Saved: Lifetime savings across all vaults
- Yield Earned: Total returns generated
- Vault Count: Number of active savings plans
- Consistency Score: Regularity of saving habits
Filter Options:
- All users (global leaderboard)
- Friends only (social network)
- Network-specific (Base vs Celo)
- Time-based (weekly, monthly, all-time)
- Notification Controls: Fine-tune alert preferences
- Auto-Save (Coming Soon): Automated percentage-based saving
- Privacy Settings: Control sharing and leaderboard visibility
- Security Options: Multi-signature and recovery settings
- Framework: Next.js 15 with React 19
- Styling: Tailwind CSS with custom design system
- Typography: Space Grotesk font family
- Animations: Framer Motion for smooth interactions
- State Management: React Query + Wagmi for blockchain state
- Wallet Connection: Wagmi + Farcaster MiniApp Connector
- Smart Contracts: Solidity contracts deployed on Base and Celo
- Web3 Libraries:
- Chain Support: Multi-chain architecture with network switching
- SDK: @farcaster/miniapp-sdk v0.1.9
- Authentication: @farcaster/auth-kit for Sign-in with Farcaster
- Social Data: Neynar SDK for Farcaster data access
- Wagmi Connector: @farcaster/miniapp-wagmi-connector for wallet integration
- Database: MongoDB with Mongoose ODM
- API Routes: Next.js API routes for server-side logic
- External APIs:
- Price Feeds: Real-time token pricing across networks
- Wallet Activity: Transaction monitoring and analysis
- Notifications: Webhook-based alert system
- Package Manager: PNPM for efficient dependency management
- TypeScript: Full type safety across the application
- Linting: ESLint with Next.js configuration
- Formatting: Prettier for consistent code style
- Build: Turbopack for fast development builds
- Node.js: v18+ (recommended: v20+)
- PNPM: v8+ (or npm/yarn)
- MongoDB: Local instance or MongoDB Atlas
- Farcaster Account: For testing MiniApp features
# Clone the repository
git clone https://github.com/CryptoSmartNow/bitsave-miniapp.git
cd bitsave-miniapp
# Install dependencies
pnpm install
# Set up environment variables
cp .env.example .env.local
# Edit .env.local with your configuration
# Run development server
pnpm devCreate a .env.local file with the following variables:
# App Configuration
NEXT_PUBLIC_URL=http://localhost:3000
NEXT_PUBLIC_ENVIRONMENT=development
# Blockchain Networks
NEXT_PUBLIC_BASE_RPC_URL=https://mainnet.base.org
NEXT_PUBLIC_CELO_RPC_URL=https://forno.celo.org
# Smart Contract Addresses
NEXT_PUBLIC_BASE_VAULT_CONTRACT=0x3593546078eecd0ffd1c19317f53ee565be6ca13
NEXT_PUBLIC_CELO_VAULT_CONTRACT=0x7d839923Eb2DAc3A0d1cABb270102E481A208F33
# Database
MONGODB_URI=mongodb://localhost:27017/bitsave
# External APIs
NEYNAR_API_KEY=your_neynar_api_key
ALCHEMY_API_KEY=your_alchemy_api_key
# Farcaster Integration
NEXT_PUBLIC_FARCASTER_DEVELOPER_FID=your_fid
FARCASTER_DEVELOPER_MNEMONIC=your_mnemonic# Development
pnpm dev # Start development server with Turbopack
pnpm build # Build for production
pnpm start # Start production server
pnpm lint # Run ESLint
pnpm format # Format code with Prettier
pnpm ci # Run CI checks (format + build)- Local Development: Use ngrok or similar tunneling service to expose localhost
- Farcaster Preview: Test using Farcaster's MiniApp preview tool
- Wallet Integration: Connect using Farcaster's development wallet
User connects Farcaster wallet β
Selects network (Base/Celo) β
Chooses token (USDC/cUSD/USDGLO) β
Sets savings goal and duration β
Contract deployment β
Vault ready for deposits
Webhook monitors wallet β
Detects incoming transactions β
Calculates earning patterns β
Triggers smart suggestions β
User can save percentage of earnings
User deposits funds β
Smart contract allocates to yield strategies β
Interest compounds automatically β
User can withdraw principal + yield β
Penalty applied for early withdrawal (if set)
User achieves savings milestone β
Option to cast achievement β
Appears in Farcaster feed β
Friends can interact and be inspired β
Referral rewards distributed
- Audited Contracts: All vault contracts undergo security audits
- Time Locks: Critical functions protected by time delays
- Multi-Signature: Administrative functions require multiple signatures
- Upgradeable Contracts: Proxy pattern for secure upgrades
- No Private Keys: All wallet operations through Farcaster's secure infrastructure
- Encrypted Storage: Sensitive user data encrypted at rest
- HTTPS Only: All communications secured with TLS
- Privacy First: Minimal data collection, user-controlled sharing
We welcome contributions to BitSave! Here's how you can help:
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
- Use GitHub Issues for bug reports
- Include reproduction steps
- Provide browser/device information
- Include screenshots if relevant
- Open a GitHub Issue with the "enhancement" label
- Describe the use case and expected behavior
- Include mockups or examples if helpful
MIT License Β© 2025 BitSave
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
Start saving smarter today with BitSave β where crypto savings meets social incentives! π°
