New
Apps 6,419Makers 6,403This week 7
Promote your app−30%
9views in
the last 30 days

MaxApki: MnożenieMax, StoliceMax, ChemiaMax, LiteraturaMax, JęzykiMax, MapkiMax, AstronomiaMax and BiologiaMax

A prototype browser app that teaches the multiplication tables with flash cards. The cards are scheduled with FSRS, the algorithm Anki offers alongside its older SM-2.

The same page also holds seven sister apps with the same options: StoliceMax, which teaches the capitals of countries, ChemiaMax, which teaches the formulas of elements and common chemical compounds, LiteraturaMax, which teaches who wrote well-known books, JęzykiMax, which teaches French, Spanish, Dutch, Italian and Polish, MapkiMax, which teaches where cities, mountains, lakes, rivers, seas, islands and deserts are on the map, AstronomiaMax, which teaches facts about the Solar System, stars and spaceflight, and BiologiaMax, which teaches facts about animals, plants, the human body and evolution. The eight apps form a family, MaxApki, installed as one app at one address. Tapping the app name at the top of the screen opens a menu with all eight.

Running it

The app is published with GitHub Pages at https://maxapki.top/, from the repository gchrupala/maxapki. Until every tablet has moved there, the earlier address, https://grzegorz.chrupala.me/Anki/, is served from gchrupala/Anki (see Moving to maxapki.top).

Open index.html in a browser. There is no build step and no server is needed.

Run the scheduler tests with Node 18 or later:

npm test

Installing on a tablet

The app can be installed as a home-screen app (a "progressive web app"). It then opens full screen, without the browser bars, and works without internet after the first visit.

This needs the files on an https web address, for example GitHub Pages (repository Settings → Pages → Deploy from a branch → main, / (root)). The empty .nojekyll file tells GitHub Pages to publish the files as they are, without its Jekyll site generator. GitHub Pages for a private repository needs a paid GitHub plan; Netlify and Cloudflare Pages can serve a private repository for free.

Then, on the tablet:

  • iPad: open the address in Safari, tap the Share button, then "Add to Home Screen".
  • Android: open the address in Chrome, open the ⋮ menu, then "Install app" or "Add to Home screen".

The home-screen name is "MaxApki.top", and its icon shows the cards of the eight apps on a deep blue background. (The app installed from the old address is called "MaxApki", and its icon has a rainbow background.) MnożenieMax, StoliceMax, ChemiaMax, LiteraturaMax, JęzykiMax, MapkiMax, AstronomiaMax and BiologiaMax are opened from inside it. On a tablet where the app was installed as "MnożenieMax", Chrome updates the name and icon by itself when it next checks the app, which can take up to a day; it may ask to confirm the change. Progress is stored on the tablet only, separately from the browser, and is lost if the app is removed. To keep it, or to move it to another device, save it to a file first (see Moving progress) or back it up on GitHub (see Backing up to GitHub).

The offline copy is kept by sw.js (a service worker). On every launch it asks the server whether the app files have changed, so a pushed change appears the next time the app is opened online, once GitHub Pages has published it (usually within a minute or two). Without internet, or if the server takes more than 4 seconds to answer, it uses the stored copy. A change to sw.js itself takes one extra launch: the first launch installs the new sw.js, the second uses it. Opening index.html as a local file still works, but without the offline copy or installation.

Languages

The interface follows the device language when it is Polish, English, Dutch, Spanish or Persian, and is in Polish otherwise. A fixed language can be chosen in the settings panel ("Ustawienia", behind the gear button); the first entry in the menu goes back to the device language. All languages write multiplication with ×. Persian is shown right to left, with Persian digits (۷ × ۸ = ۵۶); sums, the keypad and the progress square stay left to right, as in Persian maths. A keyboard may type Persian, Arabic or Western digits. All text is in i18n.js, and the text that differs in StoliceMax in i18n-capitals.js. Times such as "tomorrow" or "in 3 days" and plural forms come from the browser (Intl.RelativeTimeFormat and Intl.PluralRules).

How it works

Each fact, such as 7 × 8, is one card. 3 × 7 and 7 × 3 are separate cards. The tables go up to 12 × 12 (or 10 × 10). On top of that, extra numbers can be chosen, by default 15, 20 and 25. Each extra number is practised only with the numbers 1 to 12: there is 15 × 7 and 7 × 15, but no 12 × 14 and no 15 × 20. With the defaults that makes 216 cards (144 + 3 × 24).

The child types the answer on the on-screen keypad or the keyboard. The answer is checked as soon as it has as many digits as the right answer. A shorter answer is checked after 3 seconds without typing, or when the child presses OK. If nothing is typed within the time limit (10 seconds by default; 10 to 60 seconds or no limit in the settings), the fact counts as not known: the app shows the answer, as after a wrong answer. The limit pauses while the settings panel is open or the app is in the background. The app then picks one of the four Anki ratings on the child's behalf:

Answer Anki rating
Wrong, or nothing typed within the time limit Again
Right, but slower than 10 seconds Hard
Right Good
Right within 4 seconds Easy

Easy is only given when the card is shown for the first time or as a review. During the short learning steps the child saw the card a few minutes earlier, so a quick answer then says little about long-term memory.

After a wrong answer the app shows the right one, and the child types it to continue.

After a right answer the card stays on the screen for 1.4 seconds (2.2 when coins are paid), then the next one comes by itself; after a wrong answer, once the right one is tapped, it stays 0.9 seconds. A "Zatrzymaj" (Wait) button under the card shows the time left as a shrinking line. Tapping it keeps the card on the screen to look at it; the button then reads "Dalej" (Next), and tapping it, an answer or a key moves on. Tapping the card before it is held moves on at once. The setting "Następna karta po" (Next card after) keeps these times by default ("1,4 s"; in JęzykiMax the default is 5 seconds), or sets the time to 2, 5 or 10 seconds, or to "natychmiast" (at once: the next card comes after 0.4 seconds, just long enough to see the answer turn green, with no time for the coin message or a translation), or keeps every card until "Dalej" is tapped. Each app has its own setting.

Once a card has been answered, a "Cofnij" (Back) button in the head of the card goes back to the card answered last. Its answer is taken back: the card, the review log, the counts of the day and the coins the answer paid are as they were before it. The card is then asked again, with the same answers to choose from. Each tap goes one card further back, through the answers given since the app was opened; Ctrl+Z (⌘Z on a Mac) does the same, as in Anki. It cannot go back to an answer given on another day, before a switch to another app or (in JęzykiMax) another language, or before the progress was erased, nor to an answer whose coins have been spent in the shop. The bonus for finishing the day is kept. On a narrow screen the head of the card takes two lines when the button does not fit next to the rest.

Scheduling

srs.js implements FSRS-6 with its default parameters, following the reference implementation py-fsrs.

  • FSRS keeps two numbers per card. Stability is the number of days until the chance of remembering drops to 90%. Difficulty runs from 1 to 10 and controls how fast stability grows.
  • The next review is set for when the chance of remembering is expected to fall to the target recall: 90% by default, adjustable from 80% to 95%.
  • New cards go through learning steps of 1 and 10 minutes before their first interval in days. A forgotten card goes through a 10-minute relearning step.
  • Intervals get a small random shift ("fuzz"), as in Anki, so cards learned together don't keep coming back together.
  • As in Anki, a day starts at 4 am and elapsed time is counted in calendar days. When only learning cards are left, they are shown up to 20 minutes early.

Coins

Coins reward what the child remembers, not the number of cards done. In spaced repetition a well-known fact comes back rarely, so coins per answer would reward forgetting. Instead:

When Coins
A new fact is learned (it leaves the first-day steps) 2
The gap before its next review reaches a week 5
The fact is mastered (a gap of 21 days or more) 10
All of the day's cards are done (once a day) 10

Each fact pays each reward once, so forgetting and relearning earns nothing. Coins never change the schedule. Facts learned before coins were added counted towards the starting balance.

Coins are spent in the shop ("Sklep" in the header) on rewards of the child's choice. In MnożenieMax these are keychains with the prime numbers from 2 to 19, each hanging from a key ring on a short chain. Prices rise with the number and its material:

Keychain Coins
Bronze 2 50
Silver 3 100
Gold 5 150
Platinum 7 250
Diamond 11 350
Ruby 13 500
Emerald 17 650
Sapphire 19 800

Until October 2026 these were trophies in the same materials. A trophy bought then now shows as the keychain of its material.

Buying takes two taps (buy, then confirm), so a mis-tap does not spend coins. A purchase shows the keychain and lets confetti fall from the top of the screen for 4 seconds; with reduced motion switched on in the device settings, only the keychain is shown. The coin counter in the header shows the coins that can still be spent; next to it is the button of the collection, with the number of rewards in all the apps and the latest one bought in this app. The shop lists all keychains bought, with their number next to the heading of the list. A keychain for sale that is already in the collection is marked with how many there are, such as ×2. The settings show the coins collected and spent. Tapping a reward on that list, or in the collection, shows it large, glowing in its colour, with its name and the date it was bought; a keychain swings gently on its ring. This works the same in all the apps. Done, Back or a tap around it goes back to where it was opened from. Prices, numbers and materials are set in TROPHIES in index.html (the code still calls all rewards trophies), the rewards in LEVEL_COINS and DAY_BONUS. In a simulation of a child practising daily with 10 new facts a day, buying each keychain as soon as possible, the bronze 2 comes on day 1, the gold 5 on day 5, the diamond 11 on day 13 and the sapphire 19 on day 29.

Order of cards

  • At most 10 new facts are introduced per day (adjustable). They are picked in a random order from all the selected tables, so easy facts such as 1 × 4 and harder ones such as 7 × 8 are mixed from the first day. To focus on particular tables, switch the others off in the settings panel.
  • Cards that are due in their learning steps come first. Otherwise the next card is drawn at random from today's reviews and new cards.
  • The card just answered and its twin (7 × 3 after 3 × 7) are not shown next unless nothing else is left.

Settings and review log

The settings panel (the gear button, "Ustawienia" in Polish) lets you:

  • choose the language;

  • choose the size of the table (10 × 10 or 12 × 12), which tables to practise and which extra numbers to add (13 to 20, and 25);

  • change the number of new facts per day and the target recall;

  • switch the sound of the fireworks on or off (StoliceMax only; on by default);

  • move the app clock ahead by a day, to see how reviews come back;

  • save the progress of all the apps to a file, or load such a file (see Moving progress);

  • copy the review log as CSV.

The explanations in the panel (what a setting does, how the cards are scheduled, how coins are earned, how to move progress) are folded. The "i" button next to a setting or a heading shows or hides them.

The log has one row per answer. Its first five columns (card_id, review_time, review_rating, review_state, review_duration) are the input format of the FSRS optimizer, so the log can be used to fit FSRS parameters to one child once there are enough reviews. Two more columns give the fact and the typed answer.

The progress square shows each fact: not started, practising (in the learning steps), learned, or mastered (interval of 21 days or more, which Anki calls "mature").

StoliceMax

StoliceMax teaches the capitals of countries. It runs in the same page and at the same address as MnożenieMax, and has the same options: scheduling, time limit, coins and shop, languages, settings, review log, updates and offline use.

Switching apps

The app name at the top of the screen is a button. It shows the icons of the apps and an arrow, and opens a menu with all the apps. Inside the app each icon has the colour of its app, with a card and a drawing in black and white; the home-screen icon of MaxApki is in full colour. For each app the menu says what it teaches and how many cards it has left today; an app not opened yet is marked "nowa" (new). The menu opens by itself the first time, and again the first time after a new app was added, and then explains how many apps there are. When all of the day's cards are done, the done card has a button to another app that still has cards for today.

The app that was open last opens on the next start. The address can also name the app: #mnozenie, #stolice, #chemia, #literatura, #jezyki, #mapki, #astronomia or #biologia at the end (https://maxapki.top/#stolice). For a short time StoliceMax had its own address, https://grzegorz.chrupala.me/Anki/stolice/ (now also https://maxapki.top/stolice/). That address now leads to #stolice, and its offline copy removes itself.

The share button in the header (three connected dots) opens the share menu of the device with the address of the app, https://maxapki.top/, for example to send it in a message. Where the browser has no share menu, it copies the address and says so.

Each app keeps its own cards, coins and rewards. The coins of MnożenieMax have an embossed ×, those of StoliceMax a star, those of ChemiaMax an atom, those of LiteraturaMax an open book, those of JęzykiMax a speech bubble, those of MapkiMax a compass rose, those of AstronomiaMax a planet with a ring, those of BiologiaMax a butterfly. The atom is also the symbol on the ChemiaMax card in the app menu; the home-screen icon of MaxApki still shows a flask. The language is shared.

Cards

  • Each country is one card: the 193 members of the United Nations and the Vatican. The card shows the flag and the name of the country, and the child picks the capital from four capitals of the same continent, shown in a random order. After a wrong answer, or when the time is up, the right capital turns green and the child taps it to continue.
  • The ratings follow the table above, with two differences. A right answer the first time a country is shown is never Easy, because with four answers it may be a guess; the country goes through the learning steps. Easy needs a right answer within 5 seconds instead of 4, because reading four names takes longer than typing a number. The default time limit is 15 seconds.
  • The settings choose the continents; Europe is on by default. The continents follow Polish schools: Russia and Cyprus are in Europe, Turkey in Asia, and North America includes Central America and the Caribbean.
  • The progress view has a square with the flag of each country, grouped by continent, with the number of capitals learned on each continent. A flag shows in colour once its country has been answered.
  • The review log has a column for the country and one for the country whose capital was picked, both as ISO codes. The card_id the FSRS optimizer needs is the ISO code with its letters as numbers (FR is 618).

Rewards

Coins follow the same rules as in MnożenieMax (2, 5 and 10 per country, 10 per finished day). The shop sells souvenirs: keychains with small glittering models of famous sights in capitals, hanging from a key ring on a short chain.

Souvenir Capital Coins
Palace of Culture and Science Warsaw 50
Eiffel Tower Paris 75
Canal houses Amsterdam 100
Big Ben London 125
Giant Ferris Wheel Vienna 150
The Bear and the Strawberry Tree Madrid 175
Brandenburg Gate Berlin 200
Yellow tram Lisbon 250
Atomium Brussels 300
Colosseum Rome 350
Parthenon Athens 400
White House Washington 450
Torii gate Tokyo 500
Azadi Tower Tehran 525
Petronas Towers Kuala Lumpur 550
Lotus Temple New Delhi 600
Cathedral of Brasília Brasília 650
Sheikh Zayed Mosque Abu Dhabi 700
Pyramids of Giza Cairo (Giza is part of greater Cairo) 750
Forbidden City Beijing 800

All 20 together cost 7700 coins. Learning all 194 capitals to the mastered level pays 3298 coins, and each finished day adds 10, so the full collection is a long-term goal. Each souvenir glitters: two layers of tiny coloured dots shimmer in turn, three stars twinkle on it, and a beam of light passes over it now and then. In the header the glitter stays still, so it does not distract from the cards. Buying a souvenir shows fireworks for 4 seconds: the screen darkens and rockets rise from the bottom and burst into sparks. A quiet sound goes with them: a whistle and a hiss as each rocket rises, and a bang with a crackle as it bursts, from the side of the screen where it is. The browser makes the sounds itself (Web Audio), so there are no sound files. The sound can be switched off in the settings ("Dźwięk fajerwerków"). Keychains in MnożenieMax keep their confetti. With reduced motion switched on in the device settings, the glitter stands still and only the souvenir is shown when one is bought.

The souvenirs and their prices are set in SOUVENIRS in index.html, their drawings, the places of their stars and the point where the chain holds them in SOUVENIR_ART, and their names in i18n-capitals.js.

Names of countries and capitals

The names are in countries.js. Country names come from the Unicode CLDR data that browsers use for Intl.DisplayNames, capitals and their names from Wikidata. Both were checked and some were corrected by hand. Some choices to be aware of:

  • Where a country has more than one capital, the app uses the one Wikidata lists first: Pretoria (South Africa), Sucre (Bolivia), Porto-Novo (Benin), Yamoussoukro (Côte d’Ivoire), Dodoma (Tanzania), Gitega (Burundi), Mbabane (Eswatini) and Sri Jayawardenepura Kotte (Sri Lanka). The others never appear as answers.
  • Equatorial Guinea has Ciudad de la Paz, which replaced Malabo in January 2026 according to Wikidata. Older school books give Malabo.
  • Israel has Jerusalem, as in Wikidata. Many countries do not recognise it as the capital.

ChemiaMax

ChemiaMax teaches the formulas of elements and common chemical compounds. It runs in the same page as the other apps and has the same options.

  • Each card is an element or a compound: 28 elements and 53 compounds a child meets

Description taken from the repository README.

Ratings

–
0 ratings
5 0
4 0
3 0
2 0
1 0

Rate this app

Sign in to rate

Comments 0

Sign in to comment

No comments yet.

Related apps

#flashcards · #education · #fsrs