CoolFace
Apppublic

SahanaKA081/url-shortener-app

sourceHugging Facemitupdated 5mo agoView on Hugging Face
0likes
App README

๐Ÿ”— Cloud URL Shortener with ML Spam Detection

A full-stack URL shortener powered by Machine Learning to detect and block malicious/spam URLs before they are shortened.

Features

  • โ€”โœ… Shorten any safe URL instantly
  • โ€”๐Ÿ›ก๏ธ ML-powered spam detection (Random Forest classifier)
  • โ€”๐Ÿ“Š Click tracking for each short link
  • โ€”๐Ÿ”„ Automatic redirection from short links

Tech Stack

LayerTechnology
FrontendReact 19 + Vite
BackendNode.js + Express
DatabaseMongoDB Atlas
ML ServicePython FastAPI (separate HF Space)

Environment Variables (set as HF Secrets)

VariableDescription
MONGO_URIMongoDB Atlas connection string
BASE_URLThis Space's public URL (e.g. https://SahanaKA081-url-shortener-app.hf.space)
ML_SERVICE_URLML Space URL + /predict endpoint
PORT7860 (Hugging Face default)