Lichess Analysis for Chess.com Games
Before you begin, make sure you have the following dependencies installed:
Follow the steps below to run the project on your local machine:
Execute the following commands from the project root folder:
git clone https://github.com/ryrden/lichess4chess.git
cd lichess4chessnpm installnpm run build
# or specifically for Chrome
npm run build:chromeThis will create the extension files in the dist_chrome directory.
npm run dev
# or specifically for Chrome
npm run dev:chromeThis will start the development server with hot reloading.
- Open Chrome browser
- Navigate to
chrome://extensions/ - Enable "Developer mode" by toggling the switch in the top-right corner
- Click on "Load unpacked"
- Browse to the project directory and select the
dist_chromefolder - The extension should now appear in your extensions list
- Pin the extension to your toolbar by clicking the extensions icon in Chrome and clicking the pin icon next to Lichess4Chess
- Navigate to a Chess.com game page
- Click on the Lichess4Chess extension icon in your toolbar
- Use the popup interface to analyze the current game with Lichess
The project folder structure is organized as follows:
/
|-- dist_chrome/ # Generated extension files for Chrome
|-- public/ # Static assets
| |-- icons, styles, etc.
|-- src/ # Source code
| |-- assets/ # Assets and styles
| |-- locales/ # Localization files
| |-- pages/ # Extension pages
| | |-- background/ # Service worker
| | |-- content/ # Content scripts
| | |-- devtools/ # DevTools page
| | |-- options/ # Options page
| | |-- panel/ # Panel UI
| | |-- popup/ # Popup UI
| |-- hooks/ # React hooks
src/pages/content: Contains the content scripts that run on Chess.com pagessrc/pages/popup: The extension popup UI shown when clicking the extension iconsrc/pages/background: Background service worker for the extensionsrc/pages/options: Options page for extension settingssrc/pages/panel: Panel UI elementssrc/hooks: Custom React hooks for state management
manifest.json: Main extension configurationvite.config.*.ts: Vite build configurations for different browsersnodemon.*.json: Development server configurations
If you want to contribute to this project, follow the steps below:
- Fork this repository
- Create a branch:
git checkout -b feature/your-feature-name - Make your changes and commit them:
git commit -m 'Add some feature' - Push to the branch:
git push origin feature/your-feature-name - Create a pull request
Alternatively, consult the GitHub documentation on how to create a pull request.
We are deeply grateful to all the amazing people who have supported and contributed to Lichess4Chess!
Made with contrib.rocks.
This project was built using the vite-web-extension template by JohnBra.
This project is under license. See LICENSE for more information.

