- 🔍 AI-Powered Transaction Risk Classification
- 📊 Transaction History with Filtering & Pagination
- 🔔 Real-Time Alerts via Webhook and Email
- 🧠 Machine Learning with Balanced Training
- 💻 Modern Web Interface (React + TailwindCSS)
- 🛡️ Secure FastAPI Backend with JWT Auth
- 📁 Modular and Scalable Project Architecture
| Layer | Technology |
|---|---|
| Frontend | React, TypeScript, TailwindCSS |
| Backend | FastAPI, SQLAlchemy, Uvicorn |
| AI Engine | scikit-learn, SMOTE, joblib |
| Database | SQLite |
| Alerts | SMTP (Gmail), Webhooks |
git clone https://github.com/cshillrj46/SafeTX-AI.git
cd SafeTX-AIcd backend
python -m venv .venv
.venv\Scripts\activate # Windows
# source .venv/bin/activate # Linux/Mac
pip install -r requirements.txt
uvicorn main:app --reloadcd ../frontend
npm install
npm start- Visit
http://localhost:3000to access the frontend - Backend runs at
http://localhost:8000 - You can submit transactions manually or connect a Web3 wallet integration
- Reclassification and alerts are automatically logged
To retrain the model:
python backend/train_model.pyModel files are saved in backend/:
risk_model.joblibencoder_sender.joblibencoder_recipient.joblibencoder_risk.joblib
SafeTX-AI/
├── backend/
│ ├── main.py
│ ├── train_model.py
│ ├── database.py
│ ├── ai_model.py
│ └── ...
├── frontend/
│ ├── src/
│ ├── public/
│ └── ...
├── assets/
│ └── banner.png
├── transactions.csv
├── README.md
└── LICENSE
- Fork the repository
- Create your feature branch (
git checkout -b feature/awesome-feature) - Commit your changes (
git commit -m 'Add awesome feature') - Push to the branch (
git push origin feature/awesome-feature) - Open a Pull Request
This project is licensed under the MIT License. See the LICENSE file for details.
- Twitter: @SafeTX_AI
- GitHub Issues: Report a Bug
SafeTX-AI: Empowering secure crypto transactions with smart technology.
