Skip to content

Privacy-first AI writing assistant browser extension. Delivers real-time grammar, style, and clarity enhancements using the Google Gemini API. Built on Manifest V3 for enterprise-grade security and performance.

License

Notifications You must be signed in to change notification settings

chirag127/TextWarden-AI-Real-Time-Writing-Assistant-Browser-Extension

Repository files navigation

TextWarden: AI-Powered Real-Time Writing Assistant

Build Status Code Coverage Tech Stack Lint/Format License GitHub Stars

⭐ Star this Repo

TextWarden: Elevate Your Writing Instantly

TextWarden is a privacy-focused AI writing assistant browser extension. It provides real-time grammar, style, and clarity enhancements, powered by the Google Gemini API. Built on Manifest V3, TextWarden ensures enterprise-grade security and performance for all users.

Architecture

mermaid graph LR subgraph Browser Extension A[Manifest V3] --> B(Background Script) B --> C{Content Script} C --> D(React Components) D --> E(TailwindCSS) E --> F(Google Gemini API) end B -- Communication --> C style A fill:#f9f,stroke:#333,stroke-width:2px style B fill:#ccf,stroke:#333,stroke-width:2px style C fill:#ccf,stroke:#333,stroke-width:2px style D fill:#ccf,stroke:#333,stroke-width:2px style E fill:#ccf,stroke:#333,stroke-width:2px style F fill:#f9f,stroke:#333,stroke-width:2px

Table of Contents

🤖 AI Agent Directives

Tech Stack Definition

  • Programming Languages: TypeScript (Strict), JavaScript
  • Frontend Framework: React
  • Build Tool: Vite
  • Styling: TailwindCSS v4
  • API Integration: Google Gemini API
  • Manifest: Manifest V3
  • Linter/Formatter: Biome
  • Testing: Vitest (Unit), Playwright (E2E)
  • Architecture: Feature-Sliced Design (FSD)

Architectural Patterns

  • Feature-Sliced Design (FSD): Structure the application into independent features, layers, and slices for enhanced maintainability and scalability.
  • SOLID Principles: Adhere to SOLID principles to create robust and reusable components.
  • DRY (Don't Repeat Yourself): Avoid code duplication by creating reusable functions and components.
  • YAGNI (You Ain't Gonna Need It): Focus on implementing only the necessary features.

Verification Commands

  • Linting: biome check .
  • Formatting: biome format .
  • Unit Tests: npm run test
  • E2E Tests: npm run test:e2e
  • Build: npm run build

Development Standards

Setup

  1. Clone the repository: bash git clone https://github.com/chirag127/TextWarden-AI-Real-Time-Writing-Assistant-Browser-Extension.git cd TextWarden-AI-Real-Time-Writing-Assistant-Browser-Extension

  2. Install dependencies: bash npm install

Scripts

Command Description
npm run dev Start development server
npm run build Build the extension for production
npm run test Run unit tests
npm run test:e2e Run end-to-end tests
npm run lint Run Biome linter
npm run format Format code with Biome

Principles

  • SOLID: Adhere to SOLID principles for a maintainable codebase.
  • DRY: Avoid code duplication.
  • YAGNI: Implement only the required features.

About

Privacy-first AI writing assistant browser extension. Delivers real-time grammar, style, and clarity enhancements using the Google Gemini API. Built on Manifest V3 for enterprise-grade security and performance.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •