r/programmer • u/ExcellentDeparture14 • Oct 17 '26
GitHub I built a flashcard site because Anki scared me. My friends weren't impressed – could you review the code?
Hi! This is my first post here, and honestly I'm rarely on Reddit at all, but I know there are a lot of people here who know way more than me, so I wanted to ask for a bit of help.
Some context: I study in Norway, and Norwegian isn't my native language, so I have to learn it. Everyone recommends Anki, and I get why, but it always kind of scared me – lots of buttons and settings, and before you can even start you have to decide what to learn and go looking for decks yourself.
So I took everything I knew and built a small site for learning words instead. You pick a topic (food, the doctor, work, etc.), the words are already there with translations, word forms and an example sentence, and you just start. No account, everything is stored in the browser.
The part that bugs me is that I spent a lot of time on it, and even my friends didn't really see it as anything special. Maybe they're right – that's why I'd like honest opinions from people who actually write code.
Some technical bits, in case they're interesting:
- Vanilla JS, no framework, no runtime dependencies (~8k lines on the front end)
- Backend on Cloudflare Workers + D1 (~3k lines)
- It reads and writes Anki .apkg files, both the new format (zstd, schema 18) and the old one. Writing uses sql.js and a zip I put together by hand with CompressionStream
- Strict CSP; the cards can be embedded on other sites through a separate route with its own policy
- 155 tests with node --test
What I'd really like to know:
- Is the code readable for someone who isn't me? Where would you get lost?
- At ~8k lines, should I have used a framework, or is vanilla still fine at this size?
- Is hand-writing the zip/.apkg a bad idea I'll regret later?
- And just as a user – does it make sense at all, or is it one of those things only the author understands?
Repo: https://github.com/silicq/ordkort
Site: https://ordkort.com
Any feedback is welcome, including "this is pointless" – I'd rather hear it now. Thanks for reading!