Skip to content

Allowance Guard lets you see, manage and revoke token approvals across multiple blockchains—simple, open-source and privacy-first.

License

Notifications You must be signed in to change notification settings

EazyAccessEA/Allowance-guard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

662 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Allowance Guard

Version 1.14.0 - Open Source Token Approval Security Platform

License: GPL-3.0 Next.js TypeScript

🛡️ Overview

Allowance Guard is an open source security platform for monitoring and managing token approvals across multiple blockchain networks. Built for the DeFi community with a focus on security and transparency.

Key Features

  • 🔍 Real-time Monitoring: Track token approvals across multiple chains
  • ⚠️ Risk Assessment: Identify unlimited and stale approvals
  • 📧 Email Alerts: Get notified about risky approvals
  • 🔗 Wallet Management: Save and monitor multiple wallet addresses
  • ⚡ One-Click Revoke: Instantly revoke risky approvals
  • 📊 Analytics: Comprehensive reporting and risk scoring
  • 🔍 Error Monitoring: Real-time error tracking with Rollbar
  • 🛡️ Wallet Security: Comprehensive security dashboard for connected wallets
  • 🎨 PuredgeOS Design: Modern, minimalist design system with Mobbin-style animations
  • 📱 Mobile-First: Responsive design optimized for all devices
  • 🔓 Open Source: Full source code available

🚀 Quick Start

Prerequisites

  • Node.js 18+
  • Database (PostgreSQL recommended)
  • SMTP service for email notifications
  • RPC endpoints for blockchain access
  • WalletConnect project
  • Rollbar account (free) for error monitoring

Installation

# Clone the repository
git clone https://github.com/EazyAccessEA/Allowance-guard.git
cd Allowance-guard

# Install dependencies
pnpm install

# Set up environment variables
cp production.env.example .env.local

# Run database migrations
pnpm run migrate

# Start development server
pnpm run dev

Environment Variables

Copy production.env.example to .env.local and configure:

  • Database connection string
  • SMTP credentials for email notifications
  • RPC endpoints for blockchain access
  • WalletConnect project ID
  • Other service credentials

🏗️ Architecture

  • Frontend: Next.js 15 with TypeScript
  • Database: PostgreSQL with connection pooling
  • Authentication: WalletConnect integration
  • Email: SMTP service integration
  • Deployment: Vercel-ready configuration

🔒 Security

This project implements wallet-focused security features:

Wallet Security Features

  • 🛡️ Wallet Security Dashboard: Comprehensive security overview for connected wallets
  • 📊 Risk Assessment: Real-time risk scoring based on token allowances
  • ⚠️ High-Risk Detection: Identify and flag dangerous token approvals
  • 🔍 Security Monitoring: Continuous monitoring of wallet security status
  • 📈 Security Analytics: Detailed security metrics and trends

Technical Security

  • Input validation and sanitization
  • Rate limiting on API endpoints
  • CSRF protection
  • Security headers
  • Environment variable protection
  • No sensitive data in source code
  • Wallet-only authentication (no email/password required)

⚠️ CRITICAL SECURITY NOTICE:

  • This is open source software provided for educational purposes
  • DO NOT use in production without comprehensive security audit
  • Users are responsible for their own security assessments
  • The authors assume no liability for security breaches or fund loss
  • Always use testnet environments for development and testing
  • Keep all secrets and private keys secure and never commit them to version control

For security issues: Contact [email protected]

📖 Documentation

For Users

For Contributors

Deployment & Setup

🤝 Contributing

We welcome all types of contributions! Choose how you'd like to help:

💰 Financial Support

Support Development - Your donations directly fund:

  • Core development team compensation
  • Security audits and infrastructure costs
  • Future feature development
  • Essential Web3 security infrastructure

💻 Technical Contributions

Development Setup

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

Testing

Allowance Guard includes a comprehensive testing framework for developers:

# Run E2E tests
pnpm test:e2e

# Run E2E tests with UI
pnpm test:e2e:ui

# Run specific test file
pnpm playwright test tests/scan.spec.ts

Test Coverage:

  • ✅ End-to-End testing with Playwright
  • ✅ Accessibility testing (WCAG 2.0 AA)
  • ✅ API endpoint testing
  • ✅ Payment flow testing
  • ✅ User workflow testing

See TESTING_POLICY.md in the repository for detailed testing documentation.

📄 License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

⚠️ Disclaimer

This software is provided "as is" without warranty. Use at your own risk. The authors are not responsible for any loss of funds or security breaches.

🆘 Support


Built with ❤️ for the DeFi community