Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

11 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ WordSmith - AI Text Companion

Transform your text instantly with AI-powered tools right in your browser

Chrome Extension React FastAPI AI Powered

WordSmith is a powerful Chrome extension that leverages AI to transform your text in seconds. Whether you're writing emails, social media posts, or documents, WordSmith helps you communicate better with intelligent text transformations.

๐ŸŒ Live Demo

Try WordSmith now!

Platform Link
๐ŸŒ Web App https://word-smith-sand.vercel.app
๐Ÿ”Œ Backend API https://wordsmith-backend-iatg.onrender.com
๐Ÿ“š API Docs https://wordsmith-backend-iatg.onrender.com/docs

โœจ Features

๐ŸŽฏ Text Transformations

Transform any text with these AI-powered tools:

Feature Description Perfect For
โœ๏ธ Grammar Fix Fix grammar, spelling, and punctuation errors Professional writing, emails
๐Ÿ’ผ Formal Tone Convert to professional, business-appropriate language Work emails, reports, proposals
๐Ÿ˜Š Friendly Tone Make text warm, conversational, and approachable Social media, casual emails
โœ‚๏ธ Shorten Make text more concise while keeping key points Twitter, summaries, headlines
๐Ÿ“ Expand Add more details, context, and explanations Blog posts, articles, presentations
๐Ÿ”˜ Bullet Points Convert paragraphs to clear, organized bullet lists Meeting notes, action items
๐Ÿ˜Ž Add Emojis Enhance text with contextually appropriate emojis Social media, informal communication
๐Ÿฆ Tweetify Optimize text for Twitter with hashtags and engagement Social media marketing

๐Ÿ”ฅ Multi-Select Transformations

  • Combine Multiple Transformations - Apply up to 8 transformations at once!
  • Smart Conflict Detection - Prevents incompatible selections (e.g., Formal + Friendly)
  • Sequential Processing - Transformations applied in the order you select them
  • Visual Order Indicator - See exactly how your text will be transformed

Compatible Combinations:

  • โœ… Grammar + Formal + Shorten
  • โœ… Grammar + Bullet + Emoji
  • โœ… Friendly + Expand + Emoji
  • โŒ Formal + Friendly (tone conflict)
  • โŒ Shorten + Expand (length conflict)

๐Ÿ“œ History & Saved Transformations

  • ๐Ÿ“‹ History Tab - View your last 7 days of transformations
  • โญ Saved Tab - Save favorite transformations permanently
  • ๐Ÿ”„ Quick Reuse - Easily reapply past transformations
  • ๐Ÿ—‘๏ธ Bulk Delete - Manage your transformation history efficiently

๐ŸŽฏ Why WordSmith?

  • ๐Ÿš€ Instant Results - Transform text in seconds, no waiting
  • ๐ŸŽจ Multiple Styles - 8 different transformation options
  • ๐Ÿ”— Chain Transformations - Combine multiple transforms for perfect results
  • ๐Ÿ“œ Smart History - Track and reuse your transformations
  • โญ Save Favorites - Keep important transformations forever
  • ๐Ÿ”’ Privacy First - Your data is stored locally and securely
  • โšก Lightning Fast - Powered by Groq's ultra-fast Llama 3.1 AI
  • ๐Ÿ’ก Smart Context - AI understands your intent and maintains meaning
  • ๐Ÿ”ง Developer Friendly - Clean, well-documented codebase

๐Ÿ› ๏ธ Tech Stack

Frontend (Chrome Extension)

  • React.js - Modern component-based UI
  • Vite - Next-generation frontend tooling
  • Chrome Manifest V3 - Latest extension architecture

Backend (API Server)

  • FastAPI - High-performance Python web framework
  • SQLAlchemy - SQL database ORM
  • Groq API - Ultra-fast Llama 3.1 AI inference
  • SQLite - Lightweight database for history storage

Deployment

  • Frontend - Vercel
  • Backend - Render

๐Ÿ“ฆ Installation

For Users (Chrome Extension)

Method 1: From GitHub Releases (Recommended)

  1. ๐Ÿ“ฅ Download the latest release
  2. ๐Ÿ“ Extract the wordsmith-extension.zip file
  3. ๐ŸŒ Open Chrome and navigate to chrome://extensions/
  4. ๐Ÿ”ง Enable "Developer mode" (toggle in top-right)
  5. ๐Ÿ“‚ Click "Load unpacked" and select the extracted folder
  6. โœ… WordSmith will appear in your extensions toolbar!

Method 2: Build from Source

# Clone the repository
git clone https://github.com/harshitayadavv/WordSmith.git
cd WordSmith

# Build the extension
cd frontend
npm install
npm run build:extension

# Install in Chrome
# 1. Go to chrome://extensions/
# 2. Enable "Developer Mode" (top-right toggle)
# 3. Click "Load unpacked"
# 4. Select the 'frontend/dist' folder

๐Ÿš€ Development Setup

Prerequisites

  • Node.js 16+ and npm
  • Python 3.9+
  • Groq API Key (Get one here)

๐Ÿ–ฅ๏ธ Backend Setup

# Navigate to backend directory
cd backend

# Create virtual environment
python -m venv venv

# Activate virtual environment
# Windows:
venv\Scripts\activate
# macOS/Linux:
source venv/bin/activate

# Install dependencies
pip install -r requirements.txt

# Setup environment variables
cp .env.example .env
# Edit .env and add your GROQ_API_KEY

# Initialize database
python -c "from app.core.database import init_db; init_db()"

# Run development server
python run.py

The backend will be available at http://localhost:8000

๐ŸŽจ Frontend Setup

# Navigate to frontend directory
cd frontend

# Install dependencies
npm install

# Start development server (for web testing)
npm run dev

# Build for Chrome extension
npm run build:extension

# Build for web deployment
npm run build

๐Ÿ”ง Configuration

Backend Environment Variables

Create a .env file in the backend directory:

# Required: Groq API Key
GROQ_API_KEY=your_groq_api_key_here

# Optional: Server configuration
PORT=8000
HOST=0.0.0.0
DEBUG=True

# Optional: Database (SQLite by default)
DATABASE_URL=sqlite:///./wordsmith.db

Getting Your Groq API Key

  1. Visit console.groq.com
  2. Sign up for a free account
  3. Navigate to API Keys section
  4. Create a new API key
  5. Copy and add it to your .env file

Note: Groq offers a generous free tier with ultra-fast inference!

Frontend Configuration

Update the API URL in frontend/src/utils/api.js:

// For local development
export const API_BASE_URL = 'http://127.0.0.1:8000';

// For production (already configured)
export const API_BASE_URL = 'https://wordsmith-backend-iatg.onrender.com';

๐Ÿ“š API Documentation

Main Endpoints

Method Endpoint Description
POST /api/v1/transform Transform text with AI
GET /api/v1/history Get transformation history
POST /api/v1/history/save Save a transformation
DELETE /api/v1/history Delete history items
GET /api/v1/health Health check
GET /api/v1/transformations List available transformations

๐ŸŽฎ Usage

Basic Transformation

  1. Click the WordSmith extension icon in your Chrome toolbar
  2. Paste or type your text in the input area
  3. Select a transformation type (Grammar Fix, Formal, etc.)
  4. Click "Transform" and watch the magic happen!
  5. Copy the result or click โญ Save to keep it forever

Multi-Select Transformation (Advanced)

  1. Select multiple transformation buttons - Click multiple options (e.g., Grammar + Formal + Shorten)
  2. See the order - Transformations will be applied sequentially in the order selected
  3. Smart conflicts - Incompatible options will be automatically disabled
  4. Clear all - Click "Clear All" to reset your selections
  5. Transform - Click transform to apply all selected transformations in sequence

Example Multi-Transform Flow:

Original: "i has big mistake in email"
  โ†“ Grammar Fix
"I have a big mistake in the email"
  โ†“ Formal Tone  
"I have made a significant error in the email correspondence"
  โ†“ Shorten
"I made an error in the email"

History & Saved

  1. View History to see your recent transformations (last 7 days)
  2. Check Saved tab for your favorite transformations (permanent)
  3. Reuse past transformations with one click

๐Ÿค Contributing

We welcome contributions! Here's how to get started:

  1. ๐Ÿด Fork the repository
  2. ๐ŸŒฟ Create a feature branch (git checkout -b feature/amazing-feature)
  3. โœจ Make your changes
  4. โœ… Test thoroughly (run both frontend and backend)
  5. ๐Ÿ’ซ Commit your changes (git commit -m 'Add amazing feature')
  6. ๐Ÿ“ค Push to the branch (git push origin feature/amazing-feature)
  7. ๐ŸŽฏ Open a Pull Request

Development Guidelines

  • Follow existing code style and conventions
  • Test all features before submitting
  • Update documentation as needed
  • Ensure backend server runs without errors
  • Test extension in Chrome before submitting PR

๐Ÿ“ Project Structure

WordSmith/
โ”œโ”€โ”€ frontend/               # Chrome extension & React app
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ components/    # React components
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ TransformButtons.jsx  # Multi-select UI
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ History.jsx
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ SavedChats.jsx
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ”‚   โ”œโ”€โ”€ utils/         # API utilities
โ”‚   โ”‚   โ””โ”€โ”€ App.jsx        # Main app component
โ”‚   โ”œโ”€โ”€ public/            # Static assets & manifest
โ”‚   โ””โ”€โ”€ dist/              # Built extension (after npm run build)
โ”‚
โ”œโ”€โ”€ backend/               # FastAPI backend
โ”‚   โ”œโ”€โ”€ app/
โ”‚   โ”‚   โ”œโ”€โ”€ api/          # API routes
โ”‚   โ”‚   โ”œโ”€โ”€ core/         # Database & config
โ”‚   โ”‚   โ”œโ”€โ”€ models/       # Database models
โ”‚   โ”‚   โ”œโ”€โ”€ services/     # Business logic
โ”‚   โ”‚   โ””โ”€โ”€ main.py       # FastAPI app
โ”‚   โ””โ”€โ”€ requirements.txt   # Python dependencies
โ”‚
โ””โ”€โ”€ README.md

๐Ÿ› Support & Issues

๐ŸŒŸ Roadmap

  • History Feature - Track your transformations โœ…
  • Save Favorites - Keep important transformations โœ…
  • Multi-Select Transformations - Apply multiple transforms at once โœ…
  • Web App Deployment - Live on Vercel โœ…
  • Backend Deployment - Live on Render โœ…
  • Custom Prompts - Create your own transformation types
  • Firefox Extension - Expand to Firefox Add-ons
  • Export/Import - Backup your saved transformations
  • Dark Mode - Eye-friendly dark theme
  • Keyboard Shortcuts - Quick access to features
  • Cloud Sync - Sync history across devices
  • Browser Context Menu - Right-click to transform selected text

๐Ÿ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ“Š Stats

GitHub stars GitHub forks GitHub issues GitHub last commit

๐Ÿ™ Acknowledgments

  • Groq for ultra-fast AI inference
  • FastAPI for the amazing Python framework
  • React team for the excellent frontend library
  • Chrome Extensions team for the platform
  • Vercel & Render for hosting

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages