Skip to content

notilmi/ProfanityDetection-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Edit in Eraser

Profanity Detection API πŸ‘ΏπŸ’’

Profanity is such a problem in an App where user can submits their own message or text. So thats basically why this API exist 😁

How It Works? πŸ€”

How this API works is quiet simple, the API snatch the message users are trying to send and send it to Google's Gemini to filter if theres any profanity included in the text😁. So modern tech on the rollπŸ˜„

image.png

How I Made It Work? πŸ€”

No complex set up!πŸ˜‚. All you need is Google Gemini API Key And A MongoDB URI and just slap it into your .env fileπŸ‘

# Server Set Up
SERVER_PORT=3000
SERVER_SECRET="Your App Secret (Just Put A Random Word Then You'll Fine)"

# Gemini Key

GEMINI_API_KEY="Your Gemini API Key"

# MONGODB

MONGODB_URI="Your MongoDB URI"

And fires it up with all new bun runtime πŸ”₯

bun --watch server.ts

And All Done! The API Is Ready To RollπŸ”₯πŸ”₯πŸ”₯

Read Full API Documentation πŸ“š

ο»ΏAPI Docs

Releases

No releases published

Packages

No packages published

Languages