LeetTrack

approved

by Son Phan

Create organized LeetCode notes with auto-fetched metadata, smart topic categorization, and spaced repetition review tracking. - This plugin has not been manually reviewed by Obsidian staff.

โ†“ 32 downloadsUpdated 22d agoMIT

Obsidian LeetTrack

[!NOTE] Disclaimer: This plugin is vibe coded โ€” built rapidly with AI assistance and creative energy rather than traditional software engineering rigor. It works well for my personal workflow, but expect rough edges. Use at your own risk, and feel free to open issues or contribute fixes!

Create organized LeetCode problem notes with auto-fetched metadata, smart topic categorization, and spaced repetition review tracking โ€” all inside your Obsidian vault.

Obsidian License GitHub release


Features

One-Click Problem Note Creation

Enter a LeetCode URL, Problem ID, or title slug โ€” the plugin fetches all metadata (title, difficulty, topic tags) from the LeetCode GraphQL API and creates a fully structured note.

Accepts any input format:

  • Full URL: https://leetcode.com/problems/trapping-rain-water/
  • Problem ID: 42
  • Title slug: two-sum, 3Sum

Smart Topic Categorization

Notes are automatically filed into topic folders matching the LeetCode Top Interview 150 roadmap:

FolderTopics
01 - Array & StringArrays, strings, in-place operations
02 - Two PointersTwo-pointer techniques
03 - Sliding WindowWindow-based problems
04 - Matrix2D grid problems
05 - HashmapHash table lookups
06 - Linked ListSingly/doubly linked lists
07 - StackStack, monotonic stack
08 - IntervalsInterval merging/insertion
09 - Binary TreeTree traversal, BST
10 - GraphBFS, DFS, graph theory
11 - Trie & SearchTrie data structure
12 - BacktrackingCombinatorial search
13 - Binary SearchSearch algorithms
14 - HeapPriority queue problems
15 - Dynamic ProgrammingDP, memoization
16 - Math & BitMath tricks, bit manipulation

Problems not in the Top 150 are categorized by their LeetCode tags. You can also define custom topic mappings in settings.

Mastery & Spaced Repetition System

Track your learning progress with a three-level mastery system:

MasteryMeaningDefault Review Interval
๐Ÿ”ด RedMissed pattern or forgot logic1 day
๐ŸŸก YellowUnderstood pattern but stumbled on code3 days
๐ŸŸข GreenSolved quickly with clear understanding7 days

The plugin manages the full learning lifecycle:

Import Problem โ†’ Study / Solve โ†’ Set Mastery
       โ†‘                              โ†“
  Reschedule  โ†  Update Mastery  โ†  Review

Review scheduling is automatic โ€” when you update mastery, the next review date is calculated and stored in the note's frontmatter. The "Show Problems Due for Review" command lists all overdue problems.

You can also mark a problem as reviewed without changing its mastery level โ€” this bumps the review date forward based on the current mastery and increments the review count. Available as a command or via the โœ… button in the Due Reviews modal.

Batch Import

Import multiple problems at once. Paste a list of IDs, URLs, or slugs โ€” one per line โ€” and the plugin creates all notes with progress tracking and a summary showing imported/skipped/failed counts.

Auto-Updating Hub Dashboard

A living 00 - LeetCode Hub.md dashboard with:

  • Due for Review โ€” problems requiring immediate attention
  • Progress Overview โ€” mastery distribution (Red/Yellow/Green)
  • Statistics โ€” study streak, solve counts, difficulty distribution
  • Review Queue โ€” all Red and Yellow problems
  • Mastered Problems โ€” your Green list
  • Topic Breakdown โ€” categorized problem lists

LeetCode CN Support

Toggle between leetcode.com and leetcode.cn in settings for users in China.


Installation

Community Plugins (Recommended)

  1. Open Settings โ†’ Community plugins โ†’ Browse
  2. Search for "LeetTrack"
  3. Click Install, then Enable

Manual Installation

  1. Download main.js, manifest.json, and styles.css from the latest release
  2. Create a folder <your-vault>/.obsidian/plugins/obsidian-leet-track/
  3. Copy the three files into that folder
  4. Restart Obsidian and enable the plugin in Settings โ†’ Community plugins

BRAT (Beta Testing)

  1. Install the BRAT plugin
  2. Add beta plugin: Chillaxhson/obsidian-leet-track

Usage

Commands

All commands are accessible via the Command Palette (Cmd/Ctrl + P):

CommandDescription
Create new problem noteOpen the input modal to create a single problem note
Batch import problem notesImport multiple problems at once
Refresh hub dashboardRegenerate the dashboard from current vault state
Update problem masterySet mastery level (Red/Yellow/Green) for the active note
Show problems due for reviewList all problems past their review date
Mark current problem as reviewedBump the review date without changing mastery

The ribbon icon (code icon in the left sidebar) opens the Create new problem note modal.

Frontmatter

Each problem note includes structured YAML frontmatter:

---
difficulty: Medium
mastery: red
tags:
  - leetcode-interview-150
  - array
  - two-pointers
created-date: 2026-08-28
review-date: 2026-08-29
review-count: 0
---
FieldDescription
difficultyEasy, Medium, or Hard
masteryred, yellow, or green
tagsLeetCode topic tags + leetcode-interview-150 if applicable
created-dateWhen the note was generated
solved-dateWhen you first marked mastery (set automatically)
review-dateNext scheduled review date
review-countNumber of times you've reviewed this problem

Settings

SettingDefaultDescription
LeetCode root folderLeetCodeRelative path to your LeetCode notes directory
Dashboard filename00 - LeetCode Hub.mdName of the hub dashboard file
Auto-update hub dashboardtrueRefresh dashboard when notes are created/updated
Include problem descriptionfalseFetch and embed the problem description (HTML โ†’ Markdown)
Use LeetCode CNfalseSwitch to leetcode.cn API and URLs
Default mastery (Easy)greenInitial mastery for Easy problems
Default mastery (Med/Hard)redInitial mastery for Medium and Hard problems
Red interval1 dayDays until next review when mastery is Red
Yellow interval3 daysDays until next review when mastery is Yellow
Green interval7 daysDays until next review when mastery is Green
Custom topic mappings{}Override tag โ†’ topic folder mappings

FAQ

The LeetCode API request failed

The plugin uses the public LeetCode GraphQL API. If you get rate-limited (HTTP 429), the plugin will automatically retry with exponential backoff (up to 3 retries). If it still fails, wait a few minutes and try again.

Can I customize the note template?

Yes โ€” the template is stored in the plugin settings (accessible via data.json in your vault's plugin folder). Available template variables:

{{id}}, {{title}}, {{difficulty}}, {{mastery}}, {{tags}},
{{url}}, {{topicFolder}}, {{created-date}}, {{review-date}},
{{description}}, {{#description}}...{{/description}}

Does it work on mobile?

Yes. The plugin uses only Obsidian's built-in requestUrl API (no Node.js/Electron dependencies) and is marked isDesktopOnly: false.

I already have notes from the old LeetCode Helper plugin

The plugin automatically migrates legacy settings and reads both the old status field and the new mastery field from frontmatter.


Contributing

Development Setup

git clone https://github.com/Chillaxhson/obsidian-leet-track.git
cd obsidian-leet-track
npm install
npm run dev    # Watch mode โ€” rebuilds on every save

Building for Production

npm run build  # Type-check + minified production build

Project Structure

src/
โ”œโ”€โ”€ main.ts              # Plugin entry point
โ”œโ”€โ”€ types.ts             # All TypeScript interfaces
โ”œโ”€โ”€ constants.ts         # Top 150 map, topic logic
โ”œโ”€โ”€ api/
โ”‚   โ””โ”€โ”€ leetcode.ts      # GraphQL client with retry
โ”œโ”€โ”€ services/
โ”‚   โ”œโ”€โ”€ problem-service.ts    # Note creation
โ”‚   โ”œโ”€โ”€ review-service.ts     # Mastery lifecycle
โ”‚   โ””โ”€โ”€ dashboard-service.ts  # Hub dashboard
โ”œโ”€โ”€ modals/
โ”‚   โ”œโ”€โ”€ input-modal.ts        # Single problem input
โ”‚   โ”œโ”€โ”€ batch-import-modal.ts # Batch import
โ”‚   โ””โ”€โ”€ review-modal.ts       # Mastery update
โ”œโ”€โ”€ settings.ts          # Settings tab + migration
โ””โ”€โ”€ utils/
    โ”œโ”€โ”€ parser.ts        # HTML โ†’ Markdown
    โ””โ”€โ”€ date.ts          # Review date calculations

License

MIT ยฉ Chillaxhson

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.