Skip to content

Tariflux is a tariff policy dynamic monitoring system for international trade enterprises, providing multi-country tariff data aggregation, real-time policy change early warning and basic impact analysis capabilities.

License

Notifications You must be signed in to change notification settings

XucroYuri/Tariflux

Repository files navigation

Tariflux - Global Tariff Policy Monitoring System

English | 中文 | Русский | Français | Deutsch | 日本語 | 한국어 | Español | Italiano | العربية

Project Introduction

Tariflux is a tariff policy dynamic monitoring system for international trade enterprises, providing multi-country tariff data aggregation, real-time policy change early warning and basic impact analysis capabilities.

In today's increasingly volatile international trade environment, Tariflux aims to empower trade professionals with tools to mitigate risks and discover opportunities. We believe that accessible, timely information about tariff policies can help create a more equitable global trade ecosystem and support businesses of all sizes in navigating complex regulatory landscapes.

Core Features

  • Multi-country Tariff Data Aggregation: Collect and organize tariff policy data from China, US, and EU
  • LLM-Enhanced Data Collection: Utilize advanced language models to improve data accuracy and coverage
  • Real-time Policy Change Alerts: Monitor tariff policy changes and send alerts via email
  • Basic Impact Analysis: Assess the impact of tariff changes on specific products and industries
  • Customizable Alert Preferences: Set personalized notification preferences for specific products or regions

System Architecture

The project uses a microservice architecture, mainly including the following modules:

  • API Gateway: Unified access layer, responsible for request routing and load balancing
  • Data Collection Service: Use Python+Scrapy with LLM enhancement to crawl and intelligently process tariff data from various countries
  • Policy Processing Service: Use Java+Spring Boot to process and analyze tariff policies
  • Alert Engine Service: Monitor policy changes and send customizable alert notifications
  • User Service: Manage user information, preferences, and subscription settings

Technology Stack

  • Frontend: Vue3 + Element Plus
  • Backend:
    • API Gateway: Spring Cloud Gateway
    • Data Collection: Python + Scrapy + LLM Integration
    • Policy Processing: Java + Spring Boot
    • Message Queue: RabbitMQ
    • Alert Engine: Spring Boot + Rule Engine
  • Database: PostgreSQL + TimescaleDB
  • AI Integration:
    • LLM Providers: OpenAI, Google, Anthropic, Ollama
    • Web Search: Tavily API integration

Quick Start

Requirements

  • Docker and Docker Compose
  • JDK 11+
  • Python 3.9+
  • Node.js 14+

Installation Steps

  1. Clone the repository
git clone https://github.com/XucroYuri/Tariflux.git
cd tariflux
  1. Start backend services
docker-compose up -d
  1. Start frontend application
# Navigate to frontend directory
cd frontend

# Install dependencies (if package.json exists)
npm install

# Start development server
npm run dev
# or use a simple HTTP server if no build system is configured
npx serve -s src
  1. Access the system
# Backend API documentation
http://localhost:8080/docs

# Frontend application (depending on your setup)
http://localhost:3000 or http://localhost:5000

Stopping the Application

# Stop backend services
docker-compose down

# Stop frontend development server
# Press Ctrl+C in the terminal where the frontend server is running

Project Structure

├── gateway/          # API Gateway Service
├── collector/        # Data Collection Service
├── policy-processor/ # Policy Processing Service
├── alert-engine/     # Alert Engine Service
├── user-service/     # User Service
├── frontend/         # Frontend Application
├── scripts/          # Deployment and Initialization Scripts
└── docker-compose.yml # Docker Orchestration Configuration

Contributing

We welcome all forms of contributions, whether it's new features, documentation improvements, or issue reports! Tariflux is built with the belief that collaborative efforts can create better tools for navigating the complexities of international trade.

How to Contribute

  1. Fork this repository
  2. Create your feature branch git checkout -b feature/amazing-feature
  3. Commit your changes git commit -m 'Add some amazing feature'
  4. Push to the branch git push origin feature/amazing-feature
  5. Open a Pull Request

Development Roadmap

We are looking for contributors to help implement the following features:

  • Multi-language support
  • Tariff data from more countries and regions
  • Advanced data analysis and visualization
  • API interface optimization

License

This system follows the AGPLv3 license, with the following exception clauses:

  1. Core data parsers allow commercial authorization
  2. Patent authorization for alert algorithms needs to be negotiated separately
  3. Data storage format follows OASIS open standards

About the Developer

Tariflux is developed by XucroYuri with the mission of making international trade more transparent and accessible for all participants in the global marketplace.

About

Tariflux is a tariff policy dynamic monitoring system for international trade enterprises, providing multi-country tariff data aggregation, real-time policy change early warning and basic impact analysis capabilities.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published