A children-friendly React web app where players invent and recall names for recurring creature cards. Adults (or the oldest player) act as the facilitator and tap who earned each point.
- Landing → Settings → Game → Finish flow using React Router
- Fruitfolk art style with 8 creature images
- Customizable deck with 2-8 distinct creatures, each duplicated 1-12 times
- Smooth animations with animate.css
- Installable Progressive Web App experience with offline caching
- Local storage persistence for settings, players, and game state
- Resume functionality if the tab refreshes mid-game
- Accessible with keyboard navigation and screen reader support
- React 19 + TypeScript + Vite
- React Router DOM for navigation
- Animate.css for transitions
- CSS Modules for component styling
- Tailwind CSS for utility classes
- Nanoid for unique ID generation
-
Install dependencies:
npm install
-
Start development server:
npm run dev
-
Build for production:
npm run build
The build output is configured for relative asset URLs so it can be hosted from a
sub-directory such as https://example.com/name_beasts/. If your hosting setup
requires a fixed base path, set VITE_APP_BASE_PATH before building:
VITE_APP_BASE_PATH=/name_beasts npm run buildThe same environment variable is read at runtime to ensure React Router uses the correct basename and the service worker registers with the right scope.
- On each card, invent or recall the creature's name
- Tap the player who named it first (or "No one")
- Each card is worth 1 point. Highest score wins
- Some creatures repeat—try to remember their names!
src/
├── app/ # App setup and routing
├── components/ # Reusable UI components
├── pages/ # Route components
├── state/ # Game state management
├── data/ # Static data (styles manifest)
├── hooks/ # Custom React hooks
├── utils/ # Utility functions
├── styles/ # Global styles
├── types.ts # TypeScript type definitions
└── strings.ts # UI text (ready for i18n)
- Add images to
public/creatures/[StyleName]/1.jpgthroughN.jpg - Update
src/data/styles.tswith the new style definition - Update the
StyleIdtype insrc/types.ts
nb:v1:settings- Last used game settingsnb:v1:pastPlayers- Previously used player namesnb:v1:resumeGame- Current game state (cleared on finish)