raaj2493/TrustGuard
TrustGuard 是一個由 🤖 AI 驅動的後端 API,使用 ⚡ Go 建構,可即時分析與分類使用者產生的文字內容中的 🚫 惡意、 📩 垃圾訊息以及 🔍 可信度。它幫助開發者輕鬆建構 🔐 更安全、更智慧、更可靠的應用程式。
- Stars
- 1
- Forks
- 1
- 最近推送(UTC)
- 2026年4月9日
- 專案狀態
- 未封存
技術主題
原始 README
以下為英文專案原文快照,最新內容請造訪 GitHub。
展開 / 收合專案 README
🛡️ TrustGuard --- AI-Powered Content Safety & Trust Analysis API
🤖 Analyze user-generated content in real-time for toxicity, spam, and trustworthiness using AI.
🚀 Overview
TrustGuard is a high-performance backend API built with ⚡ Go (Golang) that leverages AI to evaluate the safety and reliability of text.
It helps developers build 🔐 secure and trustworthy platforms by detecting:
- 🚫 Toxic content\
- 📩 Spam messages\
- ⚠️ Harmful or suspicious text\
- 🔍 Trustworthiness score
Perfect for 💬 chat apps, 🌐 social media platforms, 📝 review systems, and more.
✨ Features
- ⚡ Fast and lightweight REST API (Go + Gin)
- 🧠 AI-powered text analysis
- 🚫 Toxicity detection
- 📩 Spam classification
- 🔍 Trust scoring system
- 📊 Clean JSON responses
- 🔐 Secure
.envconfiguration - 🧩 Scalable project architecture
- 🔄 Easy frontend integration
🏗️ Tech Stack
Layer Technology
Backend Go (Golang) Framework Gin AI Service Google Gemini API Config godotenv (.env) Testing Thunder Client/Postman
📁 Project Structure
TrustGuard/ ├── backend/ │ ├── controllers/ │ ├── routes/ │ ├── services/ │ ├── config/ │ ├── models/ │ ├── utils/ │ ├── main.go │ └── go.mod ├── frontend/ ├── .env └── README.md
⚙️ Prerequisites
- 🐹 Go (v1.20+)
- 🔑 Gemini API Key
- 📦 Git
🔑 Environment Setup
Create a .env file:
GEMINI_API_KEY=your_api_key_here
PORT=8080
🚀 Installation
git clone https://github.com/raajgiri/TrustGuard.git
cd trustguard/backend
go mod tidy
go run main.go
📡 API
POST /analyze
Request: { "text": "Hello world" }
Response: { "status": "success", "analysis": { "toxicity": "low", "spam": false, "trust_score": 0.87 } }
⭐ Support
Give a ⭐ if you like the project!
📜 License
MIT License