Stop Googling the same thing twice.

Save code snippets as you learn. CodePulse schedules your reviews with the SM-2 algorithm, so you actually remember them.

How it works

Implemented from the papers, not from a library

  1. 1885Forgetting curveEbbinghaus
  2. 1966Edit distanceLevenshteinduplicate.py
  3. 1967k-means clusteringMacQueenclustering.py
  4. 1975Vector space modelSalton, Wong & Yangsimilarity.py
  5. 1988TF-IDF weightingSalton & Buckleytfidf.py
  6. 1990SM-2Woźniaksm2.py
  7. 1994N-gram profilesCavnar & Trenklelanguage_detector.py
  8. 1998Marginal relevanceCarbonell & Goldsteinsummarizer.py

Save once. Review smart. Never forget.

You do the saving and the rating. Working out when to review is the algorithm's job.

  1. Save your snippet

    Paste the code and a line on what you learned. The language is detected as you paste.

  2. SM-2 schedules your review

    SM-2 picks the day each snippet comes back, and a daily email tells you when reviews are due.

  3. Rate and retain

    Rate each card Forgot, Hard or Easy. Forgot brings it back tomorrow; Easy pushes it further out each time.

Most of it is gone by tomorrow.

Ebbinghaus measured it in 1885: without review, memory drops off a cliff within a day and settles near a fifth. CodePulse queues a new snippet for the day you save it, then brings it back after 4, 6, 16 and 45 days while you keep rating it Easy. Each review flattens the curve.

Illustrative decay, real review days. Drag across the chart to read any day.

With SM-295%Without review20%Day 90

Everything your memory needs. Nothing it doesn't.

Spaced repetition

sm2.py

SM-2, the scheduler Anki was built on, decides when each snippet comes back: soon after a miss, further out each time you remember it.

Search by relevance

tfidf.py

Results are ranked by how much they share with your query, not by whether one keyword matches.

No duplicate clutter

duplicate.py

Edit distance catches a snippet you already saved, even when the variable names changed.

Topics sort themselves

clustering.py

k-means groups related snippets into clusters. No manual tagging.

Clusters into threads

summarizer.py

Draft a thread from any topic cluster, edit each point, then copy it out.

Language auto-detect
Paste code and the language fills itself in. Nine languages.
Prerequisite links
Each snippet lists what it builds on and what needs it.
Daily reminder
One email on the days you have reviews due.
Export anytime
Every snippet and review, downloaded as JSON.

Built from scratch. No black boxes.

Eight algorithms in plain Python: no scikit-learn, no NLTK, no numpy, no pre-trained models. Pick one to read the code that runs it.

1,144 lines · Python standard library only

sm2.py
apps/api/app/algorithms/sm2.pysm2_schedule
def sm2_schedule(
    quality: int,
    repetitions: int,
    ease_factor: float,
    interval: int,
) -> tuple[int, int, float]:
    # …
    if quality < 3:
        # Forgot — reset progress
        new_repetitions = 0
        new_interval = 1
    else:
        # Remembered — advance schedule
        new_repetitions = repetitions + 1

        if repetitions == 0:
            # Quality-adjusted first interval: Easy gets 4 days, Hard gets 2 days.
            # Standard SM-2 fixes this at 1, but that makes every first review
            # feel identical regardless of confidence — poor UX.
            new_interval = 4 if quality >= 4 else 2
        elif repetitions == 1:
            new_interval = 6
        else:
            new_interval = round(interval * ease_factor)

    # Adjust ease factor based on quality (applies regardless of pass/fail)
    new_ease_factor = ease_factor + (0.1 - (5 - quality) * (0.08 + (5 - quality) * 0.02))
    new_ease_factor = max(1.3, round(new_ease_factor, 4))

    return new_interval, new_repetitions, new_ease_factor
Pythonexcerpt · 30 of 60 lines

Why CodePulse exists

I kept re-Googling the same things: the flex trick for centering a div, the cleanup in a useEffect, the git command that undoes the last commit. I had learned each one, more than once.

So I built the tool I wanted. Save the snippet once, and let the schedule bring it back right before it slips. I wrote every algorithm behind it from scratch, so I can explain every number it shows you.

Pritha · built CodePulse as a final-year project

Started
16 April 2026
Built by
One BCA student
Tests
230, run in CI on every push
Stack
Next.js · FastAPI · Supabase

You're going to forget what you learned today.

Unless you review it tomorrow. CodePulse makes sure you do.

Free forever for students. No credit card. No nonsense.