Skip to content
C-W-D-HarshitPublic

About

VS Code-like IntelliSense for LeetCode with Python, JavaScript, TypeScript, and C++ entirely in your browser.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

LeetSense

VS Code-like IntelliSense for LeetCode, powered by real language engines that run entirely in Chrome.

LeetSense adds semantic completions, hover documentation, signature help, and diagnostics to LeetCode's Monaco editor. There is no AI, account, backend, telemetry, or source-code upload.

LeetSense is an independent open-source project. It is not affiliated with, endorsed by, or sponsored by LeetCode.

Language support

Language Engine Features
Python 3 browser-basedpyright Completions, hover, signatures, diagnostics
JavaScript / TypeScript LeetCode's bundled TypeScript service Syntax diagnostics, TypeScript type diagnostics, judge ambient types
C++ clangd 18 WebAssembly + libc++ headers Semantic STL completions, hover, signatures, diagnostics

LeetCode's ListNode, TreeNode, and common Node shapes are understood by the language integrations.

Install

The Chrome Web Store release is awaiting its final production-Chrome QA and store review. To test the release candidate locally:

  1. Run npm ci and npm run build.
  2. Open chrome://extensions, enable Developer mode, and choose Load unpacked.
  3. Select .output/chrome-mv3.
  4. Open a LeetCode problem. LeetSense starts automatically. The toolbar popup is informational; there are no settings to configure.

Language server controls

For Python and C++, select the LSP status beside LeetCode's Saved label to restart or stop that language server. A stopped server offers Start instead. The command applies to every open LeetCode tab using the same language and does not create a persistent setting.

Privacy

All analysis happens locally. LeetSense does not collect, retain, or transmit code or user data and makes no remote requests. See PRIVACY.md.

Resource use and limitations

  • C++ support bundles a large clangd WebAssembly binary. The engine starts only when a C++ editor is active and shuts down five minutes after the last C++ session becomes idle.
  • Java is not supported in v1. It is demand-gated for a later phase.
  • LeetSense supports Monaco problem editors on leetcode.com; CodeMirror, leetcode.cn, and non-problem pages are out of scope for v1.
  • Chrome 116 or newer is required.

Development

npm ci
npm test
npm run check
npm run zip

npm run check runs unit tests, the real clangd WebAssembly acceptance harness, strict TypeScript, the production build, and the release-package audit. The build also archives every production dependency license in the extension.

For a release bump, update the package and lockfile together, then run the full gate and package the exact build:

npm version patch --no-git-tag-version
npm run check
npm run zip

Use minor, major, or an explicit version in place of patch as needed. package.json is the canonical version source; WXT's manifest, the release audit, and the deterministic archive filename derive from it. Update the Unreleased changelog heading only after the target version and release date are known.

Every pull request targeting main and every push to main runs the complete release gate in GitHub Actions. Superseded runs for the same change are cancelled, and the CI / Verify release gates check is required before merge.

Pushing an approved exact tag such as v1.2.2 runs the same gates and publishes a GitHub Release containing the Chrome ZIP and its SHA-256 checksum. The tag must exactly match package.json; malformed or mismatched tags fail before publishing.

After the GitHub Release succeeds, the Submit Chrome package job waits for approval in the protected chrome-web-store environment. Approval downloads the exact versioned ZIP from that release, exchanges GitHub's OIDC identity for a short-lived Google service-account token, uploads through Chrome Web Store API v2, and submits the update for review with validation warnings treated as blocking. Chrome publishes the update after its review succeeds. A deployment failure can be retried without rebuilding or replacing the GitHub Release.

The deployment environment defines these non-secret variables:

  • GCP_WORKLOAD_IDENTITY_PROVIDER
  • GCP_SERVICE_ACCOUNT
  • CWS_PUBLISHER_ID
  • CWS_EXTENSION_ID

No service-account JSON key, OAuth client secret, or refresh token is stored in GitHub. See docs/specs/ci-cd-spec.md for the one-time Google Cloud, Chrome Web Store publisher, and protected-environment setup.

See THIRD_PARTY_NOTICES.md for bundled software and provenance.

Contributing

Bug reports and focused contributions are welcome. Read CONTRIBUTING.md before opening a pull request. Please report security vulnerabilities through the private process in SECURITY.md, not in a public issue.

License

LeetSense's original source code is available under the MIT License. Bundled language engines, headers, libraries, and other third-party components remain under their respective licenses described in THIRD_PARTY_NOTICES.md.

About

VS Code-like IntelliSense for LeetCode with Python, JavaScript, TypeScript, and C++ entirely in your browser.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages