This is the official website frontend open-source project for Chain Fox blockchain security platform. Built with React, Tailwind CSS, and Framer Motion, it provides a modern user interface with smooth animations to showcase the features and services of the Chain Fox platform.
This project is the official website frontend codebase for Chain Fox, designed to provide users with an intuitive and visually appealing interface to access Chain Fox's blockchain security audit services. Key features include:
- Modern UI design with gradient effects and smooth animations
- Responsive layout that adapts to various device sizes
- Multi-language support (English and Chinese)
- Integration with DeepSeek AI for code analysis
- Professional security audit report generation and PDF export functionality
- Component-based architecture built on React and Tailwind CSS
The dynamic particle network background (NetworkParticles) that runs throughout the homepage is not just a visual decoration; it carries a metaphor for Chain Fox's core mission:
- Protecting Blockchain Data: Each glowing point represents a block node in the vast blockchain universe, while the interweaving lines symbolize complex data flows and interactions.
- Illuminating the Dark Forest: Chain Fox acts as a guardian, meticulously scanning and illuminating these blocks to ensure their security and integrity. The light emanating from the nodes penetrates the "dark forest" where potential threats lurk, symbolizing how Chain Fox brings clarity to the complex and often obscure world of blockchain.
Author: @1379hash
Chain Fox is a blockchain security platform that provides automated analysis services for blockchain projects and smart contracts. The platform aims to democratize and popularize blockchain security through automated detection tools.
The Chain Fox platform supports various blockchains (such as Ethereum, Solana, Polkadot, etc.) and programming languages (Rust, Go, Solidity, etc.), offering one-click report generation without the need to install complex tools. The platform emphasizes security and confidentiality, ensuring that private project code is encrypted, never shared, and deleted upon request.
-
π¨ Modern User Interface
- Beautiful gradient effects and smooth animations
- Fully responsive design, adapting to various devices
- Elegant styling system based on Tailwind CSS
-
π Dynamic Visual Effects
- Particle background effects implemented with Three.js
- Smooth transition animations powered by Framer Motion
- Floating card components with backdrop blur effects
-
π Internationalization Support
- Complete English and Chinese language support
- Flexible translation system based on react-i18next
- Easily extensible multilingual architecture
-
π Security Audit Feature Showcase
- Code analysis interface supporting multiple programming languages
- GitHub repository analysis integration
- Vulnerability detection results visualization
-
π€ AI Integration
- DeepSeek AI code analysis integration
- Real-time display of AI reasoning process with typewriter effect
- AI thinking process visualization
-
π Professional Reporting System
- Generation of comprehensive security audit reports
- PDF export functionality
- Beautifully designed report templates
-
π Authentication
- Supabase authentication integration
- Support for GitHub, Google, and Discord login
- Secure user session management
- Permission control with whitelist user system
-
π± Component-Based Architecture
- Reusable component system based on React
- Clear project structure and code organization
- Easily maintainable and extensible modular design
This frontend project showcases the main features and workflows of the Chain Fox platform:
- Brand Introduction: Showcasing Chain Fox's brand image and core values
- Dynamic Background: Particle effect background implemented with Three.js
- Feature Overview: Intuitive display of the platform's main features and advantages
- Language Switching: Seamless switching between English and Chinese
- Multiple Input Methods:
- Direct code snippet input
- GitHub repository URL analysis
- File upload functionality (coming soon)
- Language Selection: Support for code highlighting in multiple blockchain development languages
- Real-time Analysis: Display of analysis progress and intermediate results
- AI Reasoning Process: Real-time display of the AI's reasoning process
- Typewriter Effect: Character-by-character display of AI analysis results, enhancing user experience
- Switchable Views: Users can choose whether to display the AI thinking process
- Results Visualization: Intuitive display of security audit results
- Vulnerability Details: Display of detailed information and fix recommendations for each vulnerability
- Report Generation: Generation of professional security audit reports
- PDF Export: Export reports to PDF format for easy sharing and archiving
- Multi-platform Login: Support for GitHub, Google, and Discord login
- User Management: Secure user session and permission management
- Personalized Experience: Customized content based on user preferences
This frontend project uses a variety of modern web technologies and libraries:
- React: JavaScript library for building user interfaces
- Vite: Fast frontend build tool and development server
- Tailwind CSS: Utility-first CSS framework
- Framer Motion: Powerful React animation library
- Three.js: JavaScript library for creating 3D particle effects
- Internationalization: Multi-language support using react-i18next
- Routing: Page navigation using React Router
- State Management: Using React's Context API and Hooks
- API Integration: Integration with DeepSeek AI API for code analysis
- Authentication: Integration with Supabase authentication service and permission control
- PDF Export: Report export using jsPDF and html2canvas
- Code Splitting: On-demand loading using React.lazy and Suspense
- Image Optimization: Optimizing image size and format
- Caching Strategy: Implementing appropriate caching strategies
- Lazy Loading: Lazy loading of components and resources
This frontend project showcases the features of the Chain Fox platform, including:
- Homepage: Displaying platform overview and main features
- Security Audit Page: Showcasing code analysis and vulnerability detection
- Report Page: Displaying security audit reports and PDF export functionality
- User Authentication: Showcasing multi-platform login options
Through these pages, users can understand how the Chain Fox platform helps blockchain projects improve security and experience the platform's main features.
npm install
# or
yarn install
npm run dev
# or
yarn dev
The application will start at http://localhost:5173.
npm run build
# or
yarn build
Build files will be generated in the dist
directory.
This project can be deployed to various environments, including Cloudflare Pages, Vercel, Netlify, etc. For detailed deployment instructions, please refer to our Deployment Guide, which includes:
- Environment variable configuration
- Supabase authentication setup
- DeepSeek AI API integration
- Cloudflare Pages deployment steps
- Custom domain configuration
Documentation: English Deployment Guide | δΈζι¨η½²ζε
chain-fox/
βββ src/
β βββ components/ # Reusable UI components
β β βββ AuditReport/ # Audit report components
β β βββ HomePage/ # Homepage related components
β β βββ Layout/ # Layout components
β β βββ ... # Other components
β βββ pages/ # Page components
β β βββ HomePage.jsx # Homepage
β β βββ DetectionPage.jsx # Security audit page
β β βββ AuthPage.jsx # Authentication page
β βββ services/ # Service modules
β β βββ deepseek.js # AI integration service
β β βββ pdfExport.js # PDF generation and export service
β β βββ supabase.js # Authentication service
β βββ utils/ # Utility functions
β β βββ checkWhitelistUser.js # Check if user is in whitelist
β β βββ supabaseQueries.js # Supabase database queries
β β βββ serverPermissionCheck.js # Server-side permission checks
β βββ hooks/ # Custom React hooks
β β βββ usePermission.js # Permission checking hook
β βββ middleware/ # Middleware functions
β β βββ permissionMiddleware.js # Permission checking middleware
β βββ App.jsx # Main application component (routing configuration)
β βββ i18n.js # Internationalization configuration
β βββ main.jsx # Application entry point
βββ public/
β βββ locales/ # Translation files
β β βββ en/ # English translations
β β βββ zh/ # Chinese translations
β βββ logo.png # Application logo
βββ tools/
β βββ migrations/ # Database migration files
β βββ 20240503_is_whitelist_user.sql # Whitelist user check function
β βββ README.md # Migration documentation
βββ docs/ # Documentation
β βββ ζθΏ°ζζ‘£.md # Project description document
βββ deploy.md # Deployment guide (English)
βββ deploy.zh.md # Deployment guide (Chinese)
This project implements complete internationalization support using react-i18next:
-
Supported Languages:
- English (en) - Default language
- Chinese (zh)
-
Translation Files:
- Located in the
public/locales
directory - Organized by language code and namespace
common.json
contains shared translations
- Located in the
-
Adding a New Language:
- Create a new language folder in
public/locales
- Copy and translate existing JSON files
- Add language option in
LanguageSwitcher.jsx
- Create a new language folder in
This frontend project is actively being developed, with planned features including:
- More visualization components to display security analysis results
- More comprehensive user dashboard
- Team collaboration features
- Additional report templates and export options
- Mobile optimization
We welcome community contributions to help improve this open-source project:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add new feature: XXX'
) - Push to the branch (
git push origin feature/amazing-feature
) - Create a Pull Request
Please ensure your code complies with the project's coding standards and passes all tests.
This project is licensed under the MIT License - see the LICENSE file for details.