a standard deck of 52 playing cards can be arranged in 52! (52 factorial) different ways:
52!
= 52 x 51 x 50 x ... x 3 x 2 x 1
= 8.0658 × 10^67
if every person on Earth generated a trillion shuffles per second since the beginning of the universe, we would have explored only a tiny fraction of all possible arrangements
'unique shuffle' is an online card shuffling game with local achievements, pattern detection, saved shuffles, and public share links
https://unique-shuffle.netlify.app
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
- randomly shuffle a virtual deck
- pattern detection and highlighting
- achievements
- local shuffle saving
- public shuffle sharing
- global shuffle count
- profile export/import
welcome! just create an issue
- Node.js 20.9+ and npm
- Neon Postgres project
- PostHog account for analytics (optional)
- next.js 16 with app router and react 18
- react context + hooks, server routes
- tailwind CSS, shadcn/ui
- posthog for event tracking and analysis
- next.js API Routes, server components
- postgresql via Neon
- Drizzle ORM and migrations
- netlify for deployment and functions
welcome!
unique-shuffle/
├── public/ # Static assets and images
├── src/
│ ├── app/ # Next.js App Router pages and layouts
│ │ ├── api/ # API routes and serverless functions
│ │ ├── auth/ # Redirects legacy auth routes to local profile
│ │ ├── shared/ # Public shared shuffle pages
│ │ └── profile/ # Profile and saved activity
│ ├── components/ # Reusable UI components
│ │ ├── ui/ # Base UI components (shadcn)
│ │ └── layout/ # Layout and provider components
│ ├── lib/ # Local profile, database, analytics, and utilities
│ └── types/ # TypeScript type definitions
├── drizzle/ # Drizzle-generated SQL migrations
├── .env.example # Example environment variables
├── package.json # Project dependencies and scripts
└── README.md # Project documentation






