Skip to content
DhevenddraPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

InsightOS

A comprehensive AI Writing Intelligence Suite built with Next.js 14, TailwindCSS, Shadcn UI, and HuggingFace Inference API.

Next.js TypeScript TailwindCSS

Features

📊 Dashboard

  • Quick access to all tools
  • Clean, modern interface

📝 Text Analyzer

  • Summary - AI-generated summaries using BART
  • Sentiment - Positive/Negative classification
  • Keywords - Automatic extraction
  • Emotions - Joy, Anger, Sadness, Fear breakdown
  • Toxicity - Content safety score
  • Tone & Style - Writing classification

📚 Readability Metrics

  • Flesch Reading Ease
  • Gunning Fog Index
  • SMOG Index
  • Grade Level Estimate

🔍 SEO Tools

  • SEO Score (0-100)
  • Keyword Density
  • Passive Voice %
  • Sentence Length Analysis
  • Improvement Recommendations

✏️ Rewriter (7 Styles)

  • 📧 Professional Email
  • 🐦 Tweet
  • 💼 Formal Business
  • ✨ Creative
  • 👶 ELI5 (Explain Like I'm 5)
  • 📏 Shorten
  • 📖 Expand

📜 History

  • LocalStorage-based storage
  • View past analyses
  • Delete entries

Tech Stack

  • Framework: Next.js 14 (App Router)
  • Language: TypeScript
  • Styling: TailwindCSS
  • UI: Shadcn UI
  • AI: HuggingFace Inference API

Important: This project requires @huggingface/inference v4.13.5 or later. Earlier versions (v2.x) use the deprecated api-inference.huggingface.co endpoint which no longer works. The current version automatically uses the new router.huggingface.co endpoint.

Getting Started

Prerequisites

  • Node.js 18.17+
  • HuggingFace API key

Installation

npm install

Environment Setup

Create .env.local:

HF_API_KEY=your_huggingface_api_key

Run Development Server

npm run dev

Open http://localhost:3000

Build for Production

npm run build
npm start

Deploy on Vercel

  1. Push to GitHub
  2. Import project in Vercel
  3. Add HF_API_KEY environment variable
  4. Deploy

HuggingFace Models

Feature Model
Summarization facebook/bart-large-cnn
Sentiment distilbert-base-uncased-finetuned-sst-2-english
Keywords ml6team/keyphrase-extraction-kbir-inspec
Emotions j-hartmann/emotion-english-distilroberta-base
Toxicity unitary/toxic-bert
Text Generation Qwen/Qwen2.5-Coder-32B-Instruct

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages