Flip pairs, beat the clock, and compare your best runs across terminal and web.
π What is tMemory?
tMemory started as a command-line love letter to the classic Memory card game. It blends React, Ink, and a Supabase-backed API so every flip, combo, and photo-finish can land on a shared leaderboard. The experience now spans a polished CLI, a Next.js-powered leaderboard site at https://tmemory.griffen.codes/, and an API that keeps both in sync.
β¨ Key Features
Core Gameplay β Single-player, head-to-head, and AI showdowns with grid sizes from 2Γ2 up to custom 12Γ12 layouts.
Competitive Edge β Global leaderboards track your best times with optional filters by game mode, rows, and columns so you can βSee how you stack up against players from all over the world. Filter by game type and board size to find your competition.β
Dual Experiences β Jump in instantly via npx tmemory or check the web experience for a quick visual leaderboard at https://tmemory.griffen.codes/.
Smart Opponent β Face an AI rival that remembers the board and forces you to optimize every flip.
Custom Boards β Design bespoke layouts directly in the CLI to craft practice drills or community challenges.
π― Perfect For
Speedrunners hunting tighter reaction windows and quicker clears.
Terminal fans who want a polished, animated CLI game built with Ink.
Friendly competition circles that need a shared leaderboard without spinning up infrastructure.
Developers exploring how React can power both terminal interfaces and serverless scoreboards.
β‘ Quick Start
Bash
# Play instantlynpxtmemory# Or install for repeated playnpminstall-gtmemorytmemory
π Impact & Proof
Live leaderboard at https://tmemory.griffen.codes/ pulls scores from the shared Supabase database and stays in sync with every CLI submission.