A modern, high-performance static website displaying LeetCode solutions, built with 11ty.
- Automated Sync: Fetches newest accepted submissions from LeetCode via GraphQL.
- Classic Design: Replicates the clean Docusaurus v1 aesthetic with a green primary theme.
- Fast Search & Navigation: Lightweight static pages for optimal performance.
- CI/CD: Automatically syncs and deploys to GitHub Pages via GitHub Actions.
- Node.js 18+
- npm or yarn
-
Clone the repository:
git clone ... cd leetcode -
Install dependencies:
npm install
-
Start the development server:
npm start
The site will be available at
http://localhost:8080.
To manually trigger a sync of your latest LeetCode solutions:
# Requires LEETCODE_SESSION and LEETCODE_CSRF_TOKEN env variables
node scripts/sync-leetcode.mjsTo enable the daily automated sync, add the following as GitHub Secrets:
LEETCODE_SESSIONLEETCODE_CSRF_TOKEN
ISC