Loading repository data…
Loading repository data…
chirag127 / repository
AI-powered browser extension using Google Gemini to intelligently categorize and organize tabs. Declutters workspaces with automated grouping and session persistence across Chrome, Firefox, and Edge. Built with Manifest V3 for modern performance and security.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
CogniFlow utilizes the Google Gemini API to intelligently categorize, group, and persist browser tabs, transforming chaotic browsing sessions into structured, context-aware workspaces. Built upon Manifest V3, it ensures modern security and performance across Chrome, Firefox, and Edge environments using the WXT framework.
🚀 Star ⭐ this Repo if you are ready to reclaim your digital workspace efficiency!
CogniFlow adheres to a modular architecture suitable for high-performance extensions, separating UI, Logic, and API Integration cleanly.
ascii CogniFlow Architecture (MV3 Extension Pattern)
[ Browser Environment ] ├── Background Service Worker (Session Persistence, State Mgmt) │ └── / │ └── API Gateway (Gemini Abstraction Layer) │ └── / │ └── Core AI Processor (Classification/Grouping Logic) │ └── / │ └── Data Store (Runtime/Sync) │ └── Content/Popup UI (Vite/React/Signals) └── Tab Interaction Module (Input Capture)
This project enforces FAANG-level standards utilizing the Apex Toolchain for Late 2025 Readiness:
| Component | Technology | Rationale |
|---|---|---|
| Language | TypeScript 6.x | Strict typing, enhanced developer velocity. |
| Build Tool | Vite 7 | Near-instantaneous HMR and optimized bundling. |
| Extension Framework | WXT | Unified API and build system for cross-browser support. |
| State Management | Preact/Signals | Lightweight, fine-grained reactivity for UI updates. |
| Linting/Formatting | Biome | Unified, high-speed toolchain for linting and formatting. |
| E2E Testing | Playwright | Robust, cross-browser end-to-end verification. |
| AI Backend | Google Gemini API | State-of-the-art reasoning engine for classification. |
Follow the standard Apex setup procedure to initialize the environment.
Clone Repository: bash git clone https://github.com/chirag127/CogniFlow-AI-Tab-Organizer-Browser-Extension.git cd CogniFlow-AI-Tab-Organizer-Browser-Extension
Install Dependencies (Using uv principles for dependency resolution clarity):
bash
npm install
Environment Configuration:
Create a .env file in the root directory and add your secret key:
GEMINI_API_KEY="YOUR_API_KEY_HERE"
Execution Scripts:
| Command | Description |
|---|---|
npm run dev | Starts development server with HMR (e.g., Chrome). |
npm run build | Compiles production assets for all targets. |
npm test:unit | Runs Vitest unit tests. |
npm test:e2e | Executes Playwright end-to-end scenarios. |
npm run lint | Runs Biome checks across the codebase. |
Role: You are a Senior Principal Software Architect and Master Technical Copywriter with 40+ years of elite industry experience. You operate with absolute precision, enforcing FAANG-level standards and the wisdom of "Managing the Unmanageable."
Context: Current Project: CogniFlow-AI-Tab-Organizer-Browser-Extension. Stack: TypeScript 6.x, Vite 7, WXT, Gemini API.
Output Standard: Deliver EXECUTION-ONLY results.
Philosophy: "Zero-Defect, High-Velocity, Future-Proof."
package.json and tsconfig.json as the SSOT for dependency and configuration checks.linkup/brave to search for Manifest V3 security advisories and Gemini API response schema changes (Post-Q3 2025).docfork to verify Vite 7 configuration compatibility.clear-thought-two to architect the Service Worker/UI data flow using Signals before writing state logic.Project Type: Web Extension (TypeScript).
GeminiService abstraction layer to facilitate easy Tiered Fallback (see AI Orchestration).Mandate: Strictly follow the Fallback Cascade for the Google Gemini API.
gemini-3-pro (Stable Dec 2025) - Used for complex, multi-tab grouping rationale.gemini-2.5-pro - Used for initial context extraction from titles/URLs.gemini-2.5-flash - Used for simple categorization requests (low-cost).gemini-2.5-flash-lite - FORBIDDEN in this project; latency must prioritize accuracy for user workflow.GeminiService.npm run lint (Verify Biome adherence)npm test:unit (Verify Signal integrity and service abstraction)npm test:e2e (Verify cross-browser load sequence via Playwright)We welcome contributions that enhance performance, security, or AI utility. Please adhere to the CONTRIBUTING.md guidelines.
This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License. See the LICENSE file for details.