A Chrome extension that provides AI-powered hints and guidance for LeetCode problems.
- Real-time problem analysis
- Smart hint generation
- Clean and modern UI
- TypeScript support
- Node.js (v18 or higher)
- npm (v7 or higher)
- Clone the repository:
git clone https://github.com/yourusername/algo.git
cd algo- Install dependencies:
npm install- Build the extension:
npm run build- Load the extension in Chrome:
- Open Chrome and go to
chrome://extensions/ - Enable "Developer mode"
- Click "Load unpacked"
- Select the
distdirectory
- Run in development mode with hot reloading:
npm run dev- Type checking:
npm run type-check- Linting:
npm run lint- Testing:
npm run testalgo/
├── src/
│ ├── content.ts # Content script
│ ├── background.ts # Background script
│ ├── popup.ts # Popup script
│ ├── types.ts # Shared types
│ └── test/ # Test files
├── dist/ # Compiled files
├── manifest.json # Extension manifest
├── popup.html # Popup HTML
├── styles.css # Styles
└── icons/ # Extension icons
The project has been migrated to TypeScript for better type safety and developer experience. Key changes include:
- Added TypeScript configuration (
tsconfig.json) - Added type definitions for Chrome API (
@types/chrome) - Converted JavaScript files to TypeScript
- Added shared types in
types.ts - Updated build process with webpack and ts-loader
- Added ESLint configuration for TypeScript
- Added Jest configuration for TypeScript testing
- Clean the build directory:
npm run clean- Build the extension:
npm run buildThe compiled files will be in the dist directory.
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
MIT