Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

LeetCode template

fennrfennr112 downloads

Generate LeetCode problem templates in your notes.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates12

An Obsidian plugin that creates a structured note from a LeetCode problem link or number. It fetches metadata, the problem description, similar questions, and your accepted solution(s).

Features

  • Create note from LeetCode link — prompts for a URL or problem number, fetches metadata, description, and solutions, then creates a note in your target folder.
  • Import solution for current problem — reads the link field from the active note's frontmatter and appends new accepted solutions without duplicates.
  • Custom filename template ({{number}}, {{slug}}, {{title}}) and target folder.
  • Optional problem description and all accepted solutions (or only the latest one).
  • Auto-generated sections: frontmatter, Description, My idea, Optimal solution, Similar questions (optional), Solutions.

Requirements

  • Obsidian 1.5.0+ (desktop only)
  • LeetCode login via embedded browser window (or paste cookies as fallback)

Installation and build

bun install
bun run build

Copy main.js and manifest.json into .obsidian/plugins/leetcode-template/ and reload the plugin.

versions.json stays in the repository root for compatibility with older Obsidian versions and is not included in GitHub Releases.

Settings

  • LeetCode account — Log in (embedded window), Log out, or Paste cookies
  • Notes folder — target folder for new notes (can be empty)
  • Filename template — placeholders: {{number}}, {{slug}}, {{title}}
  • Include description — include or skip the problem description
  • Insert all solutions — insert all accepted solutions instead of only the latest
  • Language — en / ru; switches commands, notices, modal text, and template labels

Usage

  1. Open the command palette and run a plugin command.
  2. To import solutions, make sure the active note's frontmatter contains link: https://leetcode.com/problems/.../.

Note format

Frontmatter includes title, number, difficulty, tags, and link. Body sections: Description, My idea, Optimal solution, optional Similar questions, and Solutions with code, runtime, and memory. Duplicate solutions are removed; new ones are appended to the Solutions section.

Русский

Плагин создаёт заметку по ссылке или номеру задачи LeetCode: подтягивает метаданные, описание, похожие задачи и Accepted-решения. Команды и интерфейс доступны на русском — включите Language: ru в настройках.

HealthExcellent
ReviewPassed
About
Create LeetCode notes from a problem link or number by pulling frontmatter, description, similar questions and inserting the latest or all Accepted solutions. Import Accepted solutions into an existing note via its frontmatter link and apply a customizable filename template and predefined sections like My idea and Optimal solution.
CodeImportTemplating
Details
Current version
0.1.11
Last updated
7 days ago
Created
7 months ago
Updates
12 releases
Downloads
112
Compatible with
Obsidian 1.13.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Author
fennrfennr
fennr.ru
GitHubfennr
GitHubfennr
  1. Community
  2. Plugins
  3. Code
  4. LeetCode template

Related plugins

Templater

Create and use dynamic templates.

Kindle Highlights

Sync your Kindle book highlights using your Amazon login or uploading your My Clippings file.

CustomJS

Reuse custom JavaScript across desktop and mobile.

JS Engine

Run JavaScript from within your notes.

Make It Rain

Pull Raindrop.io bookmarks, highlights, and attachments into Markdown notes with rich metadata, smart folder structures, and native file support.

Star Gate

Clip web pages into Obsidian with a multi-tab browser, AI analysis templates, and content capture.

Weread

Sync Tencent Weread highlights and annotations.

Importer

Convert your data to Markdown files you can use in Obsidian. Works with Apple Notes, OneNote, Evernote, Notion, Google Keep, and many other formats.

Mermaid Tools

Improved Mermaid.js experience: visual toolbar with common elements and more.

Zotero Integration

Insert and import citations, bibliographies, notes, and PDF annotations from Zotero.