#leetcode #tui #algorithm #cli #terminal

bin+lib leetcode-tui-rs

Leetcode terminal UI. Helps you browse leetcode stats and manage your leetcode from terminal.

7 releases (4 breaking)

0.5.2 Feb 1, 2025
0.5.1 Jan 24, 2025
0.4.0 Apr 20, 2024
0.3.0 Aug 10, 2023
0.1.0 Jul 19, 2023

#237 in Command-line interface

Download history 1/week @ 2024-11-26 21/week @ 2024-12-03 42/week @ 2024-12-10 2/week @ 2024-12-17 6/week @ 2024-12-24 6/week @ 2024-12-31 2/week @ 2025-01-07 220/week @ 2025-01-21 138/week @ 2025-01-28 48/week @ 2025-02-04 34/week @ 2025-02-11

440 downloads per month

MIT and GPL-3.0+

215KB
5.5K SLoC

Leetcode TUI

Use Leetcode in your terminal.

Demo

Why this TUI:

My motivation for creating leetcode-tui stemmed from my preference for tools that are lightweight and consume fewer system resources. When I explored existing leetcode CLI tools on GitHub, I came across a few raw command-line interfaces, but they lacked the interactivity I desired. To address this, I decided to develop leetcode-tui, a Text-based User Interface, that provides an interactive and user-friendly experience for solving LeetCode problems.

Warning This TUI is currently under active development. Please feel free to open an issue if you find errors.

Installation

cargo install leetcode-tui-rs

Post installation

leetui

# This is going to create a config file depending on your os.

# Get the Cookies from the browser `LEETCODE_SESSION` and `csrftoken` and paste it in the config file

# run the command again to populate db
leetui

Features

  • Question grouped by categories
  • Read Question
  • Open question in EDITOR
  • Solve question in multiple languages
  • Submit and run solution in multiple languages
  • Read Stats of your performance (Ctrl+s)
  • Solved questions are marked with "👑"
  • Neetcode 75
  • For Fuzzy search the question list use / -- searchable by question id, topic and question_title.

Few related projects:

Dependencies

~29–45MB
~719K SLoC