# openleetcode - Local LeetCode runner with open test suites

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

> Hacker News story 49347178 · language: en · submitted 2026-08-18
> Web version: https://zeli.app/story/49347178
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 70 · by [therepanic](<https://news.ycombinator.com/user?id=therepanic>) · 💬 18
[original](<https://github.com/therepanic/openleetcode>) · [HN discussion](<https://news.ycombinator.com/item?id=49347178>)

## Summary

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.

## Key quote

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

## HN discussion (18 comments)

### [StableAlkyne](<https://news.ycombinator.com/item?id=49352653>)

> 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

### [joshribakoff](<https://news.ycombinator.com/item?id=49350108>)

> 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.

### [exabrial](<https://news.ycombinator.com/item?id=49351690>)

> Why is leet code even a thing past 2024

---

## Cite

- Page: https://zeli.app/story/49347178
- Date: 2026-08-18
- Source: github.com (https://github.com/therepanic/openleetcode)
- Hacker News: https://news.ycombinator.com/item?id=49347178

## Other languages

- zh: https://zeli.app/zh/story/49347178 · markdown: https://zeli.app/zh/story/49347178.md
- ja: https://zeli.app/ja/story/49347178 · markdown: https://zeli.app/ja/story/49347178.md
- ko: https://zeli.app/ko/story/49347178 · markdown: https://zeli.app/ko/story/49347178.md
- de: https://zeli.app/de/story/49347178 · markdown: https://zeli.app/de/story/49347178.md
- es: https://zeli.app/es/story/49347178 · markdown: https://zeli.app/es/story/49347178.md
