- π 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.
