FLUTTER ECOSYSTEM

raaj2493/TrustGuard

TrustGuard는 🤖 AI 기반의 백엔드 API로, ⚡ Go로 구축되어 사용자 생성 텍스트의 🚫 악성 여부, 📩 스팸, 그리고 🔍 신뢰성을 실시간으로 분석하고 분류합니다. 개발자가 🔐 더 안전하고 스마트하며 신뢰할 수 있는 애플리케이션을 쉽게 구축할 수 있도록 도와줍니다.

TrustGuard 프로젝트 이미지
Stars
1
Forks
1
최근 푸시(UTC)
2026. 4. 9.
프로젝트 상태
활성
Raaj Giri GitHub avatar
GITHUB User

Raaj Giri ↗

🚀 Obsessed with mastering Software Engineering • Backend • AI • Scalable Systems

언어DartGoHTMLSwiftKotlinObjective-C

기술 주제

원본 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 .env configuration
  • 🧩 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