openleetcode - Local LeetCode runner with open test suites

Show HN: Openleetcode – local LeetCode runner where tests live in the repo

openleetcode - Local LeetCode runner with open test suites

openleetcode is a local LeetCode runner built around open test suites, made in Haskell. It takes a normal solution file, finds the matching problem manifest, builds a tiny language-specific harness, sends it to a pluggable execution backend (Piston), and judges the result locally. Tests and runtime templates live in the repo, making the CLI just glue. Supports multiple languages including Python, Rust, C++, and Java, with a Docker-based backend for easy setup. Ideal for developers who want to practice LeetCode problems offline, customize tests, or integrate with their own workflows.

The whole point is that the judge and tests are not sealed away somewhere.
  1. StableAlkyne

    This is such a cool idea, I can't believe it hasn't been done before!

    > It currently supports around 1.4k problems and multiple languages, including Python, C++, Rust, Java, Go, TypeScript, Swift, and others.

    It would be interesting to have a variant where you get the input data through stdin or a file on disk, and verify by writing to stdout. That way you could bring your own language

  2. joshribakoff

    I just prompt my ai coding assistant directly to scaffold out problems and test cases.

    One nice thing is the LLM can “reason” about my weak areas and tailor the drills it generates next to keep me on a productive path.

    I personally don’t get much value from pulling in 1,400 arbitrary problems but this is cool for people who want to hit the ground running.

  3. exabrial

    Why is leet code even a thing past 2024

More from this day

2026-08-18