diff --git a/plugins/leetcode-pulse/LICENSE b/plugins/leetcode-pulse/LICENSE new file mode 100644 index 00000000..c1f7a261 --- /dev/null +++ b/plugins/leetcode-pulse/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Manish + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/plugins/leetcode-pulse/README.md b/plugins/leetcode-pulse/README.md new file mode 100644 index 00000000..5859d43f --- /dev/null +++ b/plugins/leetcode-pulse/README.md @@ -0,0 +1,42 @@ +# LeetCode Pulse + +A desktop tile with your LeetCode solved counts, rank, difficulty split, streak, acceptance and 12-week activity map. + +![LeetCode Pulse preview](assets/preview-widget.png) + +## What it does + +`bin/leetcode_pulse.py` fetches four public endpoints from [alfa-leetcode-api](https://github.com/alfaarghya/alfa-leetcode-api) in parallel and prints one compact JSON snapshot. The service polls every 10 minutes by default, keeps the last good snapshot when the API is unreachable, and the tile renders the numbers with the active Ryoku palette. Clicking the tile opens your LeetCode profile. There is no LeetCode login and no token. + +## Install + +Install from Ryoku Settings → Add-ons → Plugins → LeetCode Pulse. It is a community plugin (`official: false`); Ryoku does not review or maintain it. + +## How it plugs in + +The plugin registers as a `desktopWidget`. After adding it, move, scale and lock the tile under **Ryoku Settings → Add-ons → Plugins**, or place it with `ryoku-plugins-place`. The tile reports its own size and uses only `Ryoku.PluginKit.Singletons` for colour, type and radius. + +| Setting | Type | Default | Effect | +| --- | --- | --- | --- | +| `username` | text | `MANISHX01` | LeetCode username shown in the tile — set it to your own handle | +| `pollSeconds` | int | `600` | Refresh interval in seconds (60–3600) | + +The default is the contributor's public profile so the tile has something useful to show on first install; every installer can change `username` in the plugin settings. + +## Security and privacy + +- **Network:** reads public profile, solved, calendar and language data from `alfa-leetcode-api.onrender.com`. `leetcode.com` is opened only on an explicit click. Both hosts are declared in `capabilities.network`. +- **Files:** writes only `pulse.json` under `pluginApi.stateDir` (`$XDG_STATE_HOME/ryoku/plugins/leetcode-pulse`), and only to show cached stats during an API outage. No other paths are touched. +- **Commands:** Python 3 only, declared in `dependencies.commands`. No privilege, no shell string built from settings or network data, no secrets, no binaries. +- The username is URL-encoded and passed as a single path component; no credentials are sent. + +## Develop tree + +- `service/Main.qml`: settings, polling, timeout guard and cached snapshot state. +- `content/Widget.qml`: the themed tile, difficulty bar and 12-week activity grid. +- `bin/leetcode_pulse.py`: parallel read-only API fetch, dots and cache helper. +- `assets/preview-widget.png`: capture of the rendered tile. + +## Credits and maintenance + +Written by Manish (<159711477+mannish01@users.noreply.github.com>), MIT licensed, and maintained at . Statistics come from the community [alfa-leetcode-api](https://github.com/alfaarghya/alfa-leetcode-api) service; Ryoku and LeetCode are not affiliated with this plugin. diff --git a/plugins/leetcode-pulse/assets/preview-widget.png b/plugins/leetcode-pulse/assets/preview-widget.png new file mode 100644 index 00000000..e13c65ff Binary files /dev/null and b/plugins/leetcode-pulse/assets/preview-widget.png differ diff --git a/plugins/leetcode-pulse/bin/leetcode_pulse.py b/plugins/leetcode-pulse/bin/leetcode_pulse.py new file mode 100755 index 00000000..eda62244 --- /dev/null +++ b/plugins/leetcode-pulse/bin/leetcode_pulse.py @@ -0,0 +1,134 @@ +#!/usr/bin/env python3 +"""Fetch MANISHX01's LeetCode stats for the Ryoku LeetCode Pulse widget. + +Usage: leetcode_pulse.py +Prints one compact JSON object on stdout. Never writes outside . +""" +import concurrent.futures +import datetime as dt +import json +import os +import sys +import urllib.parse +import urllib.request + +BASE = "https://alfa-leetcode-api.onrender.com" +PATHS = ("/profile", "/solved", "/calendar", "/language") + + +def fetch(username, path): + req = urllib.request.Request( + BASE + "/" + urllib.parse.quote(username, safe="") + path, + headers={"User-Agent": "ryoku-leetcode-pulse/0.1", "Accept": "application/json"}, + ) + with urllib.request.urlopen(req, timeout=6) as response: + return json.load(response) + + +def bucket(rows, difficulty): + for row in rows or []: + if row.get("difficulty") == difficulty: + return row + return {} + + +def build_dots(raw_calendar): + try: + parsed = json.loads(raw_calendar) if isinstance(raw_calendar, str) else raw_calendar + except (TypeError, ValueError): + parsed = {} + counts = {} + for key, value in (parsed or {}).items(): + try: + day = dt.datetime.fromtimestamp(int(key), dt.timezone.utc).date() + counts[day.isoformat()] = min(int(value), 5) + except (TypeError, ValueError, OSError, OverflowError): + continue + today = dt.datetime.now(dt.timezone.utc).date() + return [counts.get((today - dt.timedelta(days=i)).isoformat(), 0) for i in range(83, -1, -1)] + + +def main(): + username = sys.argv[1] if len(sys.argv) > 1 else "MANISHX01" + state_dir = sys.argv[2] if len(sys.argv) > 2 else "" + cache_path = os.path.join(state_dir, "pulse.json") if state_dir else "" + + with concurrent.futures.ThreadPoolExecutor(max_workers=4) as pool: + futures = [(path, pool.submit(fetch, username, path)) for path in PATHS] + results = {} + for path, future in futures: + try: + results[path] = future.result() + except Exception: + results[path] = None + + def load_cached(): + if not cache_path: + return None + try: + with open(cache_path, "r", encoding="utf-8") as handle: + cached = json.load(handle) + if isinstance(cached, dict) and cached.get("username") == username: + return cached + except (OSError, ValueError): + pass + return None + + # Every endpoint must answer before a snapshot is called live: a partial + # outage must never overwrite a good cache with zeros. + live = all(value is not None for value in results.values()) + cached = load_cached() + if not live and cached is not None: + snapshot = dict(cached) + snapshot["live"] = False + snapshot["error"] = "partial or offline API response - showing saved stats" + print(json.dumps(snapshot, separators=(",", ":"))) + return + + profile = results.get("/profile") or {} + solved = results.get("/solved") or {} + calendar = results.get("/calendar") or {} + languages = results.get("/language") or {} + + total_attempts = bucket(solved.get("totalSubmissionNum"), "All").get("submissions", 0) or 0 + total_accepted = bucket(solved.get("acSubmissionNum"), "All").get("submissions", 0) or 0 + acceptance = round(total_accepted / total_attempts * 100) if total_attempts else 0 + + langs = [ + {"name": row.get("languageName", ""), "count": row.get("problemsSolved", 0)} + for row in (languages.get("languageProblemCount") or []) + ] + langs.sort(key=lambda row: row["count"], reverse=True) + + data = { + "username": username, + "solved": solved.get("solvedProblem", profile.get("totalSolved", 0)) or 0, + "easy": solved.get("easySolved", profile.get("easySolved", 0)) or 0, + "medium": solved.get("mediumSolved", profile.get("mediumSolved", 0)) or 0, + "hard": solved.get("hardSolved", profile.get("hardSolved", 0)) or 0, + "total": profile.get("totalQuestions", 0) or 0, + "rank": profile.get("ranking", 0) or 0, + "streak": calendar.get("streak", 0) or 0, + "activeDays": calendar.get("totalActiveDays", 0) or 0, + "acceptance": acceptance, + "accepted": total_accepted, + "submissions": total_attempts, + "languages": langs[:3], + "dots": build_dots(calendar.get("submissionCalendar", "{}")), + "fetchedAt": int(dt.datetime.now(dt.timezone.utc).timestamp()), + "live": live, + "error": "" if live else "some endpoints were unavailable", + } + + if live and cache_path: + try: + os.makedirs(state_dir, exist_ok=True) + with open(cache_path, "w", encoding="utf-8") as handle: + json.dump(data, handle) + except OSError: + pass + print(json.dumps(data, separators=(",", ":"))) + + +if __name__ == "__main__": + main() diff --git a/plugins/leetcode-pulse/content/Widget.qml b/plugins/leetcode-pulse/content/Widget.qml new file mode 100644 index 00000000..8d20d498 --- /dev/null +++ b/plugins/leetcode-pulse/content/Widget.qml @@ -0,0 +1,284 @@ +pragma ComponentBehavior: Bound + +import QtQuick +import Ryoku.PluginKit.Singletons + +// LeetCode Pulse — a compact, paper-and-ink stats tile for the desktop. +// All colour, type and geometry come from the plugin kit; the only data colour +// is the accent ramp on the difficulty bar and the activity dots. +Item { + id: root + + property var pluginApi + property var screen + property bool active: false + property string density: "compact" + property real s: 1 + property real widthBudget: 0 + property bool open: false + property real reveal: 0 + property bool tabActive: false + signal requestClose() + + readonly property var service: pluginApi ? pluginApi.mainInstance : null + readonly property var stats: service && service.stats ? service.stats : ({}) + readonly property var dots: root.stats.dots ? root.stats.dots : [] + + function num(value) { return value ? Number(value) : 0; } + function rankText(value) { + var n = num(value); + if (n >= 1000000) return (n / 1000000).toFixed(2) + "M"; + if (n >= 1000) return (n / 1000).toFixed(1) + "k"; + return String(n); + } + + readonly property int solved: num(root.stats.solved) + readonly property int easy: num(root.stats.easy) + readonly property int medium: num(root.stats.medium) + readonly property int hard: num(root.stats.hard) + readonly property int streak: num(root.stats.streak) + readonly property int acceptance: num(root.stats.acceptance) + readonly property int activeDays: num(root.stats.activeDays) + readonly property string username: root.stats.username ? root.stats.username : "MANISHX01" + + implicitWidth: 320 * root.s + implicitHeight: 226 * root.s + + Rectangle { + anchors.fill: parent + color: Theme.cardTop + border.color: Theme.hair + border.width: 1 + radius: Theme.radius + } + + // Inverted header band — the one high-contrast surface on the tile. + Rectangle { + id: header + anchors.top: parent.top + anchors.left: parent.left + anchors.right: parent.right + height: 34 * root.s + color: Theme.accent + radius: Theme.radius + } + + Text { + anchors.left: parent.left + anchors.leftMargin: 14 * root.s + anchors.verticalCenter: header.verticalCenter + text: "LEETCODE / @" + root.username + color: Theme.cardBot + font.family: Theme.mono + font.pixelSize: 11 * root.s + font.letterSpacing: 1.2 * root.s + } + + Text { + anchors.right: parent.right + anchors.rightMargin: 14 * root.s + anchors.verticalCenter: header.verticalCenter + text: service && service.loading ? "SYNCING" : (service && service.errorText ? "SAVED" : "LIVE") + color: Theme.cardBot + font.family: Theme.mono + font.pixelSize: 9 * root.s + font.letterSpacing: 1 * root.s + opacity: 0.8 + } + + // Headline metric. + Text { + id: solvedNumber + anchors.top: header.bottom + anchors.topMargin: 14 * root.s + anchors.left: parent.left + anchors.leftMargin: 14 * root.s + text: String(root.solved) + color: Theme.bright + font.family: Theme.display + font.pixelSize: 54 * root.s + font.bold: true + lineHeight: 0.85 + } + + Text { + anchors.left: solvedNumber.right + anchors.leftMargin: 10 * root.s + anchors.bottom: solvedNumber.bottom + anchors.bottomMargin: 7 * root.s + text: "PROBLEMS\nSOLVED" + color: Theme.dim + font.family: Theme.mono + font.pixelSize: 9 * root.s + lineHeight: 1.35 + } + + Text { + anchors.top: solvedNumber.bottom + anchors.topMargin: 3 * root.s + anchors.left: parent.left + anchors.leftMargin: 14 * root.s + text: "GLOBAL RANK " + root.rankText(root.stats.rank) + color: Theme.dim + font.family: Theme.mono + font.pixelSize: 9 * root.s + } + + // Difficulty split — a single hairline bar with three accent tints. + Row { + id: splitBar + anchors.top: solvedNumber.bottom + anchors.topMargin: 15 * root.s + anchors.left: parent.left + anchors.leftMargin: 14 * root.s + width: 190 * root.s + height: 7 * root.s + spacing: 1 * root.s + + Rectangle { + width: root.solved > 0 ? (parent.width * root.easy / root.solved) : 0 + height: parent.height + color: Qt.lighter(Theme.accent, 1.55) + } + Rectangle { + width: root.solved > 0 ? (parent.width * root.medium / root.solved) : 0 + height: parent.height + color: Qt.lighter(Theme.accent, 1.22) + } + Rectangle { + width: root.solved > 0 ? (parent.width * root.hard / root.solved) : 0 + height: parent.height + color: Theme.accent + } + } + + Row { + anchors.top: splitBar.bottom + anchors.topMargin: 7 * root.s + anchors.left: parent.left + anchors.leftMargin: 14 * root.s + spacing: 12 * root.s + + Text { + text: "E " + root.easy + " M " + root.medium + " H " + root.hard + color: Theme.dim + font.family: Theme.mono + font.pixelSize: 9 * root.s + } + } + + // Two secondary metrics, separated by a hairline rule. + Rectangle { + id: rule + anchors.top: splitBar.bottom + anchors.topMargin: 26 * root.s + anchors.left: parent.left + anchors.leftMargin: 14 * root.s + width: 190 * root.s + height: 1 + color: Theme.hair + } + + Text { + anchors.top: rule.bottom + anchors.topMargin: 9 * root.s + anchors.left: parent.left + anchors.leftMargin: 14 * root.s + text: root.streak + " DAY STREAK" + color: Theme.bright + font.family: Theme.font + font.pixelSize: 12 * root.s + font.bold: true + } + + Text { + anchors.top: rule.bottom + anchors.topMargin: 10 * root.s + anchors.left: parent.left + anchors.leftMargin: 118 * root.s + text: root.acceptance + "% ACCEPT" + color: Theme.dim + font.family: Theme.mono + font.pixelSize: 9 * root.s + } + + // Twelve weeks of activity, seven days per column. + Text { + id: dotsLabel + anchors.top: header.bottom + anchors.topMargin: 16 * root.s + anchors.right: parent.right + anchors.rightMargin: 14 * root.s + text: "12W ACTIVITY" + color: Theme.dim + font.family: Theme.mono + font.pixelSize: 8 * root.s + font.letterSpacing: 1 * root.s + } + + Grid { + id: dotGrid + anchors.top: dotsLabel.bottom + anchors.topMargin: 8 * root.s + anchors.right: parent.right + anchors.rightMargin: 14 * root.s + columns: 7 + spacing: 3 * root.s + + Repeater { + model: root.dots + delegate: Rectangle { + required property var modelData + property int level: modelData ? Number(modelData) : 0 + width: 4 * root.s + height: 4 * root.s + radius: Theme.radius + color: level === 0 + ? Theme.hair + : Qt.rgba(Theme.accent.r, Theme.accent.g, Theme.accent.b, 0.18 + 0.82 * level / 5) + } + } + } + + // Footer: language mix and the live/saved source line. + Rectangle { + anchors.left: parent.left + anchors.right: parent.right + anchors.bottom: parent.bottom + height: 1 + color: Theme.hair + } + + Text { + anchors.left: parent.left + anchors.leftMargin: 14 * root.s + anchors.bottom: parent.bottom + anchors.bottomMargin: 10 * root.s + text: { + var langs = root.stats.languages ? root.stats.languages : []; + if (!langs.length) return "Fetching languages…"; + return langs.map(function (item) { return item.name + " " + item.count; }).join(" · "); + } + color: Theme.dim + font.family: Theme.mono + font.pixelSize: 9 * root.s + elide: Text.ElideRight + width: 230 * root.s + } + + Text { + anchors.right: parent.right + anchors.rightMargin: 14 * root.s + anchors.bottom: parent.bottom + anchors.bottomMargin: 10 * root.s + text: service && service.errorText ? service.errorText : (root.activeDays + " ACTIVE DAYS") + color: Theme.faint + font.family: Theme.mono + font.pixelSize: 8 * root.s + } + + MouseArea { + anchors.fill: parent + onClicked: Qt.openUrlExternally("https://leetcode.com/u/" + root.username + "/") + } +} diff --git a/plugins/leetcode-pulse/manifest.json b/plugins/leetcode-pulse/manifest.json new file mode 100644 index 00000000..c6d2b269 --- /dev/null +++ b/plugins/leetcode-pulse/manifest.json @@ -0,0 +1,66 @@ +{ + "schema": 1, + "id": "leetcode-pulse", + "name": "LeetCode Pulse", + "description": "A paper-and-ink desktop tile with live LeetCode solved counts, difficulty split, streak, acceptance and a 12-week activity map, powered by alfa-leetcode-api.", + "version": "0.1.0", + "license": "MIT", + "official": false, + "author": "Manish <159711477+mannish01@users.noreply.github.com>", + "hosts": [ + "desktopWidget" + ], + "entryPoints": { + "main": "service/Main.qml", + "content": "content/Widget.qml" + }, + "capabilities": { + "densities": [ + "compact" + ], + "network": [ + "alfa-leetcode-api.onrender.com", + "leetcode.com" + ] + }, + "defaults": { + "host": "desktopWidget", + "label": "LeetCode Pulse", + "desktopWidget": { + "x": 1320, + "y": 130, + "scale": 1, + "locked": false + } + }, + "dependencies": { + "commands": [ + "python3" + ] + }, + "files": [ + "bin/leetcode_pulse.py", + "assets/preview-widget.png" + ], + "metadata": { + "settings": [ + { + "key": "username", + "type": "text", + "label": "LeetCode username", + "group": "LeetCode Pulse", + "default": "MANISHX01", + "placeholder": "LeetCode username" + }, + { + "key": "pollSeconds", + "type": "int", + "label": "Refresh interval (seconds)", + "group": "LeetCode Pulse", + "default": 600, + "min": 60, + "max": 3600 + } + ] + } +} diff --git a/plugins/leetcode-pulse/product-manifest.json b/plugins/leetcode-pulse/product-manifest.json new file mode 100644 index 00000000..d5676e92 --- /dev/null +++ b/plugins/leetcode-pulse/product-manifest.json @@ -0,0 +1,66 @@ +{ + "schema": 1, + "id": "leetcode-pulse", + "category": "plugins", + "version": "0.1.0", + "destination": "ryoku/plugins/leetcode-pulse", + "files": [ + { + "source": "LICENSE", + "destination": "LICENSE", + "sha256": "cc6fbab09c64ad8762e668ae69c36d8ebee8735c20cbc37d136e20b18aa64269", + "mode": "0644", + "size": 1063, + "install": false + }, + { + "source": "README.md", + "destination": "README.md", + "sha256": "aec57119f425438dec2cab8685b63ff78ed0cd39b60bdc8a59b51ea6f3e4993c", + "mode": "0644", + "size": 2886, + "install": false + }, + { + "source": "assets/preview-widget.png", + "destination": "assets/preview-widget.png", + "sha256": "8ac97773ee60aba3b96f78bd6fa078a8ba406eefec90984c82a5c58ad745e2e5", + "mode": "0644", + "size": 45629, + "install": false + }, + { + "source": "bin/leetcode_pulse.py", + "destination": "bin/leetcode_pulse.py", + "sha256": "9536a3cf962292e5b4351a445e74d375208cbc9de31b8e67569656e1f81b7a13", + "mode": "0755", + "size": 4965, + "install": true + }, + { + "source": "content/Widget.qml", + "destination": "content/Widget.qml", + "sha256": "070c8137ace6e7178a6d75904ea47bbc883ca00aa651ef3319aeaaf54ffc79dc", + "mode": "0644", + "size": 8727, + "install": true + }, + { + "source": "manifest.json", + "destination": "manifest.json", + "sha256": "96ee88579c7945a442e67100c87e8869fc6b10556e2e763d9181fc8bbd989aa6", + "mode": "0644", + "size": 1465, + "install": true + }, + { + "source": "service/Main.qml", + "destination": "service/Main.qml", + "sha256": "52cb429114f48fa815072681c9b4e9898071c71a63ccfda92c7127233ab0604a", + "mode": "0644", + "size": 3253, + "install": true + } + ], + "license": "MIT" +} diff --git a/plugins/leetcode-pulse/service/Main.qml b/plugins/leetcode-pulse/service/Main.qml new file mode 100644 index 00000000..f98dc24a --- /dev/null +++ b/plugins/leetcode-pulse/service/Main.qml @@ -0,0 +1,97 @@ +pragma ComponentBehavior: Bound + +import QtQuick +import Quickshell.Io +import Ryoku.PluginKit.Singletons + +// Headless service for the LeetCode Pulse desktop tile. +// It asks bin/leetcode_pulse.py for a compact JSON snapshot, keeps the last good +// result, and caches under pluginApi.stateDir so an API outage still shows data. +Item { + id: svc + + property var pluginApi + readonly property var settings: pluginApi ? pluginApi.pluginSettings : null + readonly property bool ready: !!(pluginApi && pluginApi.pluginDir && pluginApi.pluginDir.length > 0) + + function _str(key, fallback) { + return settings && settings[key] !== undefined && String(settings[key]).length > 0 + ? String(settings[key]) : fallback; + } + function _int(key, fallback) { + return settings && settings[key] !== undefined ? Number(settings[key]) : fallback; + } + + readonly property string username: svc._str("username", "MANISHX01") + readonly property int pollSeconds: Math.max(60, svc._int("pollSeconds", 600)) + + property var stats: ({}) + property bool loading: false + property string errorText: "" + + function commandPath() { + return (pluginApi ? pluginApi.pluginDir : "") + "/bin/leetcode_pulse.py"; + } + + function applyOutput(text) { + var lines = String(text).split("\n").filter(function (line) { return line.trim().length > 0; }); + if (lines.length === 0) return false; + try { + var parsed = JSON.parse(lines[lines.length - 1]); + svc.stats = parsed; + svc.errorText = parsed.live === false ? (parsed.error || "saved snapshot") : ""; + return true; + } catch (e) { + return false; + } + } + + function refresh() { + if (!svc.ready || statusProc.running) return; + svc.loading = true; + statusProc.command = ["/usr/bin/python3", "-u", svc.commandPath(), svc.username, String(pluginApi.stateDir || "")]; + statusProc.running = true; + } + + Process { + id: statusProc + stdout: StdioCollector { + id: pulseOut + onStreamFinished: { + if (svc.applyOutput(text)) svc.loading = false; + } + } + stderr: StdioCollector { id: pulseErr } + onExited: { + svc.loading = false; + if (String(pulseErr.text).trim().length > 0) console.warn("LEETCODE_PULSE_ERR", pulseErr.text); + if (!svc.applyOutput(pulseOut.text)) + svc.errorText = String(pulseErr.text).trim().slice(0, 80) || "stats unavailable"; + } + } + + // A stuck process never leaves the tile claiming to sync forever. + Timer { + running: svc.loading + interval: 25000 + repeat: false + onTriggered: { + if (svc.loading) { + statusProc.running = false; + svc.loading = false; + svc.errorText = svc.errorText || "refresh timed out"; + } + } + } + + Timer { + running: svc.ready + interval: svc.pollSeconds * 1000 + repeat: true + triggeredOnStart: true + onTriggered: svc.refresh() + } + + Component.onCompleted: if (svc.ready) svc.refresh() + onReadyChanged: if (svc.ready) svc.refresh() +} diff --git a/plugins/registry.json b/plugins/registry.json index e284327c..e3aa190a 100644 --- a/plugins/registry.json +++ b/plugins/registry.json @@ -1498,6 +1498,38 @@ "topbarGlyph" ], "lastUpdated": "2026-11-09" + }, + { + "id": "leetcode-pulse", + "name": "LeetCode Pulse", + "version": "0.1.0", + "path": "plugins/leetcode-pulse", + "author": "Manish <159711477+mannish01@users.noreply.github.com>", + "upstream": "https://github.com/mannish01/LeetCode-Pulse", + "summary": "A desktop tile with your LeetCode solved counts, rank, difficulty split, streak and 12-week activity map.", + "description": "A paper-and-ink Ryoku desktop tile backed by the public alfa-leetcode-api. Shows solved counts, global rank, easy/medium/hard split, current streak, acceptance rate, language mix and a 12-week activity grid. Configure any LeetCode username; stats are cached for offline fallback.", + "license": "MIT", + "tags": [ + "desktop-widget", + "leetcode", + "statistics", + "developer" + ], + "accent": "#8f8378", + "surface": "#101010", + "preview": "assets/preview-widget.png", + "screenshots": [ + "assets/preview-widget.png" + ], + "manifest": "product-manifest.json", + "manifestSha256": "19068821f5705e5c4005ea9c6847f8a984f4a7dda2293ecf04ce33598ed7ddf2", + "official": false, + "tagline": "Your LeetCode pulse, right on the desktop.", + "icon": "", + "hosts": [ + "desktopWidget" + ], + "lastUpdated": "2026-11-29" } ] }