⭐ Star this Repo
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.
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
🤖 AI Agent Directives
- 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)
- 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.
- Linting:
biome check . - Formatting:
biome format . - Unit Tests:
npm run test - E2E Tests:
npm run test:e2e - Build:
npm run build
-
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
-
Install dependencies: bash npm install
| 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 |
- SOLID: Adhere to SOLID principles for a maintainable codebase.
- DRY: Avoid code duplication.
- YAGNI: Implement only the required features.