← Back to home
Language game · Private

duocap

A small language game: you and a capybara, learning a language at a camp by a lake.

  • Next.js
  • Hono
  • Storybook

duocap is a small language game: you and a capybara learning a language at a camp by a lake. It has four courses (English, Spanish and French for Portuguese speakers, and Portuguese for English speakers), each with lessons and stories, a world of places to explore and a notebook of words that come back when they are due.

Nothing locks and nothing is bought, and coming back after days away is welcomed, not counted against you. Every question is modeled and graded by qestum.

A wrong answer gets an explanation and comes back at the end of the lesson. Words in the notebook move up through three levels (recognizes, understands, uses) as the learner gets them right. There are no accounts: the learner is a browser cookie, and audio is the browser’s own speech.

What it has

  • Turborepo monorepo: Next.js app, Hono API over SQLite, Storybook
  • Courses written as YAML, checked by a compiler that refuses anything incomplete
  • Game rules as pure functions, tested on their own
  • Spaced review of words, one reward and one habit, no penalties
  • Questions modeled and graded by qestum

Screens

The camp: the capybara by the lake, the next activity and the counters for points and campfire days.
The camp: the capybara by the lake, the next activity and the counters for points and campfire days.
First visit: pick a course, name the capybara and set a daily goal. No account.
First visit: pick a course, name the capybara and set a daily goal. No account.
The world map: each place is a unit, with its lessons and hidden objects to find.
The world map: each place is a unit, with its lessons and hidden objects to find.
A lesson: build the English sentence from word tiles.
A lesson: build the English sentence from word tiles.
A wrong answer explained. The item comes back at the end of the lesson.
A wrong answer explained. The item comes back at the end of the lesson.
End of a lesson: points, campfire days, the words added to the notebook and weekly missions.
End of a lesson: points, campfire days, the words added to the notebook and weekly missions.
An interactive story, with a comprehension question in the middle of the dialogue.
An interactive story, with a comprehension question in the middle of the dialogue.
The notebook: words by level, today’s review and the spaced-repetition box of each word.
The notebook: words by level, today’s review and the spaced-repetition box of each word.
The market: tap the stall to discover words and save them to the notebook.
The market: tap the stall to discover words and save them to the notebook.
The capybara at night, asleep by the fire.
The capybara at night, asleep by the fire.

The code is private, so this page gives an overview instead of a repository link.