Sync Lapse/Leech Balancer

AnkiWeb addon 499624498

Fork of Leech Balancer (AI-detected; may be wrong)

1 other version of this addon exists. Compare versions ↓

During sync, it reduces a card's lapse count after a set streak of successful reviews and removes leech tags once recovered, counting reviews from all devices.
AI-generated summary; may contain mistakes.

sync-integrationschedulingtaggingleechfork-or-reupload

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
0 (πŸ‘ 0 Β· πŸ‘Ž 0)
Updated
2026-08-29
Anki versions
26.08.1~
License
WTFPL (from the license file in the package)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JSON
Description language
en

Maintenance

active

  • Last update or commit: 2026-10-22 (10 days before the snapshot).
  • GitHub Actions workflows: 1.
  • Commits in the last year: 13.
  • Issues: 0 open, 0 closed.
  • Pull requests: 0 open, 0 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
23.1026.08.1+2026-08-29
History across monthly snapshots

Loading…

Compare versions

The original addon and its forks. The best value in each column is in bold.

VersionWorks on Anki 26.09.3MaintenanceLast activity VotesApprovalGitHub starsNotes
Leech Balancer original likely active 26 Aug 2026 πŸ‘ 3 Β· πŸ‘Ž 0 44% 1
↳ Sync Lapse/Leech Balancer this addon (AI-detected; may be wrong) likely active 22 Oct 2026 πŸ‘ 0 Β· πŸ‘Ž 0 – 1

Forks can add features or work in a different way. Read the description before you change to another version. Fork detection is incomplete, so other versions can exist.

Similar addons

Leech Balancer has 1 fork β†’

Reduces a card's lapse countβ€”or resets it to zeroβ€”after configurable consecutive correct answers, helping rehabilitate potential leech cards, with an optional notification.

schedulingleechfork-or-reupload

3 votes 44% approval πŸ‘ 3 Β· πŸ‘Ž 0 ⭐ 1 Anki 26.08.1~ Updated 2026-08-26
Leech Coach

Detects cards trending toward leech status when you press Again, checks their review history, and shows a short tooltip or popup urging you to pause and relearn without altering scheduling.

review-flowmotivationleech

2 votes 34% approval πŸ‘ 2 Β· πŸ‘Ž 0 Anki 25.09.4~ Updated 2026-05-29
Difficulty Tracker

Tracks difficult cards using numbered difficulty tags that increase when leech cards are failed and decrease on good answers, with configurable options for leech-only tagging, limits, and review-only increases.

schedulingreview-flowtaggingleech

2 votes 0% approval πŸ‘ 0 Β· πŸ‘Ž 2 ⭐ 0 Updated 2021-10-17

Description

By default when you fail a review, Anki increments a lapse count on the card. However this number will only keep increasing, so even after years you might end up with something like 30 lapses and a leech tag, even if that card is not an issue for you anymore. This add-on reduces the lapse count of a card after you demonstrate consistent success with it, and takes the leech tag off a note once every card on it has recovered far enough. The main purpose of all this is that your list of leeches is now actually relevant, instead of it being composed of all the accumulated lapses since the dawn of time.

The work happens when you sync rather than while you review. Every review card with at least one lapse is checked against its review history, so answers from another device (e.g. AnkiDroid) count exactly the same as answers given here. The add-on then syncs its own changes back to AnkiWeb by itself, so a single press of the sync button is all it takes.

This add-on was originally based on an existing one called Leech Balancer, although that one assumes you do all your reviews on one device, where the add-on is installed. It wouldn't credit the reviews you sync from other devices. At this point my add-on can hardly be called just a modification though, because almost all of the code doing the work has been rewritten, due to how much added complexity the AnkiWeb sync introduces.

How It Works

For each review card, the add-on counts how many times in a row you most recently answered it with Hard, Good or Easy. Once that streak reaches the configured threshold, the card's lapse count drops by one. Answering Again breaks the streak and it starts over from zero.

A streak earns one reduction for each new length it reaches, and never the same length twice. The add-on records what it has already credited in a tag on the note, such as lapse-sync-done-c0-3 β€” c0 identifies the card within the note and 3 the streak that was credited. A card carries only one of these markers at a time: extending the streak replaces it and earns another reduction, and breaking the streak removes it. These tags are housekeeping and can be ignored, though they are handy for finding the cards the add-on has touched.

Settings

You can customize the add-on's behavior through its configuration:

Required Correct Answers

  • Purpose: Sets the number of consecutive correct answers needed to reduce a card's lapse count.
  • Default Value: 4
  • Minimum Value: 1

Remove Leech Tag Below Lapses

  • Purpose: Sets the lapse count under which the leech tag is taken off. With the default of 5, a card must be back down to 4 lapses or fewer. Set it to 0 to keep the tag on everything that has earned it.
  • Default Value: 5

Show Toast

  • Purpose: Enables or disables the toast notification shown after a sync in which lapses were reduced.
  • Default Value: true

How to Configure

  1. Open Anki.
  2. Go to Tools > Sync Leech Balancer Config.
  3. Adjust the settings and save.

The code is also available on GitHub.

README

Anki Sync Lapse/Leech Balancer add-on

By default when you fail a review, Anki increments a lapse count on the card. However this number will only keep increasing, so even after years you might end up with something like 30 lapses and a leech tag, even if that card is not an issue for you anymore. This add-on reduces the lapse count of a card after you demonstrate consistent success with it, and takes the leech tag off a note once every card on it has recovered far enough. The main purpose of all this is that your list of leeches is now actually relevant, instead of it being composed of all the accumulated lapses since the dawn of time.

The work happens when you sync rather than while you review. Every review card with at least one lapse is checked against its review history, so answers from another device (e.g. AnkiDroid) count exactly the same as answers given here. The add-on then syncs its own changes back to AnkiWeb by itself, so a single press of the sync button is all it takes.

This add-on was originally based on an existing one called Leech Balancer, although that one assumes you do all your reviews on one device, where the add-on is installed. It wouldn't credit the reviews you sync from other devices. At this point my add-on can hardly be called just a modification though, because almost all of the code doing the work has been rewritten, due to how much added complexity the AnkiWeb sync introduces.

How It Works

For each review card, the add-on counts how many times in a row you most recently answered it with Hard, Good or Easy. Once that streak reaches the configured threshold, the card's lapse count drops by one. Answering Again breaks the streak and it starts over from zero.

A streak earns one reduction for each new length it reaches, and never the same length twice. The add-on records what it has already credited in a tag on the note, such as lapse-sync-done-c0-3 β€” c0 identifies the card within the note and 3 the streak that was credited. A card carries only one of these markers at a time: extending the streak replaces it and earns another reduction, and breaking the streak removes it. These tags are housekeeping and can be ignored, though they are handy for finding the cards the add-on has touched.

Installing

There are two ways to install this add-on:

  1. Via AnkiWeb as every other add-on. This way the version will automatically stay up to date.
  2. Download the .ankiaddon file from releases and either open it as an Anki program directly, or in Anki window navigate to Tools β†’ Add-ons β†’ Install from file....

Settings

You can customize the add-on's behavior through its configuration:

Required Correct Answers

  • Purpose: Sets the number of consecutive correct answers needed to reduce a card's lapse count.
  • Default Value: 4
  • Minimum Value: 1

Remove Leech Tag Below Lapses

  • Purpose: Sets the lapse count under which the leech tag is taken off. With the default of 5, a card must be back down to 4 lapses or fewer. Set it to 0 to keep the tag on everything that has earned it.
  • Default Value: 5

Show Toast

  • Purpose: Enables or disables the toast notification shown after a sync in which lapses were reduced.
  • Default Value: true

How to Configure

  1. Open Anki.
  2. Go to Tools > Sync Leech Balancer Config.
  3. Adjust the settings and save.