Skip to content
Farid Huseynov
All projects

MyNamae

Rolls animated 3D dice to build names from Turkic (Azerbaijani), Arabic and Japanese naming traditions, or a blend of them.

  • Next.js
  • TypeScript
  • React Three Fiber
  • Three.js
  • Tailwind CSS
  • Vitest
  • Playwright

Overview

  • Namae (名前) means "name" in Japanese. Each roll of the dice builds a name from Turkic (Azerbaijani), Arabic or Japanese naming traditions, or a blend of them.
  • Dice can be thrown with a button, a charged hold, a drag-and-flick, the keyboard, or by shaking the device. Individual dice can be locked and the rest rerolled.

Architecture

  • App: Next.js and TypeScript
  • 3D scene: Three.js via React Three Fiber and drei
  • Name data: one module per culture, checked by a dictionary validator
  • Writing systems: a single pure formatting function that applies the script rules
  • Tests: Vitest for unit tests, Playwright for end-to-end tests

Key technical decisions

  • The dice decide the name. The generator picks one component per die first and builds the six faces around it, so physics never changes the result.
  • Dice motion is a set of pure functions of time (anticipation, flight with three bounces, staggered settle), so skipping ahead and reduced motion land on exactly the same faces.
  • After settling, the scene reads each die's top face back from its real orientation, and unit tests check every face on all three animation paths.
  • All cookie logic lives in one consent module, and analytics stay off unless a provider is configured.

Challenges

Coming soon.

What I learned

Coming soon.

Links