Skip to content
igor1309Public

About

A dinosaur learning game for children, built with React and TypeScript.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

RexLab

A dinosaur learning web app for children aged about 4 to 7, for tablets, phones and desktop browsers. Play it at rexlab.enoa.ai.

The home screen

The games

Compare Compare. Who is heavier, taller, longer? Ten questions a round, with a celebration for a new best score.
Ancient reptiles Ancient reptiles. A catalogue of 62 dinosaurs, flying and sea reptiles, filtered by what they ate, with facts checked against natural history museums and Britannica.
Skeletons Skeletons. Put a skeleton together from its bones, then guess a mystery dinosaur by its bones alone. Finished skeletons go to the museum.
Care Care. A dinosaur visits hungry, thirsty, dirty or tired; give it what it needs and make a friend.
Sort Sort them all. Drag dinosaurs into the right basket: two legs or four, meat or plants, horns, feathers, big or small.
Color a dinosaur Color a dinosaur. Paint inside outlines with brushes and fills; undo and keep editable pictures in a gallery.
Labyrinth Labyrinth. Guide a baby dinosaur through a maze to its parent.
Picture puzzle Picture puzzle. Assemble a dinosaur picture from 12, 24 or 36 pieces.
Whose Jaw? Whose Jaw? Match jaws to their owners by shape and food clues.

Also Find the pair, a memory game, Dig, where a child brushes sand away to uncover creatures and treasures, and Sand writing, a free drawing toy with a stick and an eraser.

Age settings are Hatchling, Explorer and Paleontologist. Comparison, memory, sorting, skeletons, digging, labyrinths, picture puzzles and jaw matching change with the level. Care currently uses its need-bubble mode at every level; Sand writing is a free toy. Coloring uses Hatchling or Explorer scenes rather than three separate difficulty modes. The app is in English and Russian, with text for children in capitals, and has light and dark themes.

Dark theme

How it is built

  • React 19, TypeScript and Vite; no backend. Progress stays in the browser's local storage.
  • Behaviour is specified first, in Gherkin: 169 feature files with 1,025 scenarios in docs/features/.
  • 250+ Vitest test files cover the games' rules, layout fit at real iPad window sizes, tap safety for small hands, and the architecture's own rules.
  • The dinosaur, skeleton and item artwork is AI-generated; each picture's generator is recorded in a CREDITS.md beside it.

Running it

npm ci
npm run dev        # local server
npm test           # the test suite
npm run typecheck
npm run build

sh scripts/test.sh runs the whole check: clean install, typecheck, tests and build.

About this repository

This is a published snapshot of a project developed in a private monorepo. Issues are welcome; pull requests may not be merged here.

License

MIT

About

A dinosaur learning game for children, built with React and TypeScript.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages