Skip to content

imjszhang/JS-Eyes

Repository files navigation

JS Eyes

Browser Extension for DeepSeek Cowork

Provides browser automation capabilities for DeepSeek Cowork

License: MIT GitHub X (Twitter) Chrome Firefox

English | 中文文档


Introduction

JS Eyes is the browser extension component for DeepSeek Cowork. It communicates with the DeepSeek Cowork server via WebSocket to enable browser automation control.

💡 Let AI assistants help you operate your browser: open pages, batch fill forms, extract data, cross-site operations

Features

  • 🔗 Real-time WebSocket Communication - Persistent connection with DeepSeek Cowork server
  • 📊 Tab Management - Auto-sync tab information to server
  • 🎯 Remote Control - Remote open/close tabs, execute scripts, etc.
  • 📄 Content Retrieval - Get page HTML, text, links, and more
  • 🍪 Cookie Management - Auto-retrieve and sync page cookies
  • 💉 Code Injection - Support JavaScript execution and CSS injection
  • 📱 Status Monitoring - Real-time connection status and extension info
  • 🏥 Health Check & Circuit Breaker - Service health monitoring with automatic circuit breaker protection
  • 🔄 SSE Fallback - Auto-fallback to SSE when WebSocket connection fails
  • Rate Limiting & Deduplication - Request rate limiting and deduplication for stability
  • 🔐 HMAC Authentication - Secure server communication with HMAC-SHA256 authentication

Supported Browsers

Browser Version Manifest
Chrome 88+ V3
Edge 88+ V3
Firefox 58+ V2

Download

Latest Release

Download the latest release from GitHub Releases:

  • Chrome/Edge Extension: js-eyes-chrome-v1.3.3.zip
  • Firefox Extension: js-eyes-firefox-v1.3.3.xpi

Installation from Source

If you prefer to install from source code:

  1. Clone this repository
  2. Follow the installation instructions below

Installation

Chrome / Edge

  1. Open browser and navigate to chrome://extensions/ (or edge://extensions/)
  2. Enable "Developer mode" in the top right
  3. Click "Load unpacked"
  4. Select the chrome-extension folder
  5. The extension will be installed and activated

Firefox

Temporary Installation (Development)

  1. Open Firefox and navigate to about:debugging
  2. Click "This Firefox"
  3. Click "Load Temporary Add-on"
  4. Select firefox-extension/manifest.json

Signed XPI Installation

If you have a signed .xpi file:

  1. Drag and drop into Firefox browser window
  2. Or open the file path in the address bar

Usage

1. Start DeepSeek Cowork Server

Ensure DeepSeek Cowork is running with WebSocket server listening on port 8080 (default).

2. Configure Connection

  1. Click the extension icon in the browser toolbar
  2. Check connection status in the popup
  3. Modify server address in settings if needed
  4. Click "Connect" to apply settings and connect

Auto-Connect Feature:

  • Extension automatically connects on startup (if enabled)
  • Auto-reconnects after disconnection (exponential backoff, unlimited retries)
  • Can be enabled/disabled in settings

3. Verify Connection

  • Status indicator shows "Connected" (green) when successful
  • Tab information automatically syncs to server
  • View current tab and statistics in popup

Troubleshooting

If you encounter connection issues:

  • Ensure DeepSeek Cowork is running
  • Verify server address and port settings
  • Check browser console for error messages

Building

Prerequisites

  • Node.js >= 14
  • Run npm install in the project root

Build Commands

# Build all extensions (Firefox is signed automatically)
npm run build

# Build Chrome extension only
npm run build:chrome

# Build and sign Firefox extension
npm run build:firefox

# Bump version across all manifests
npm run bump -- 1.4.0

Output files are saved to the dist/ directory. See releases/README.md for detailed documentation.

Related Projects

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

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

Author

Created by @imjszhang

Follow me on X for updates, tips, and more open source projects!


Making AI browser automation accessible to everyone

Built with ❤️ by @imjszhang