Skip to content

About

A browser game built with SvelteKit: spot the real portrait between a genuine photo and a GAN-generated face

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

whichPersonExists

A browser game: two portraits appear side by side — one is a photo of a real person, the other is generated by a GAN. Click the one you think is real. Your streak of correct answers is tracked.

Built with SvelteKit and Tailwind CSS.

How it works

  • The AI face is pulled live from thispersondoesnotexist.com (cache-busted with a timestamp on every round).
  • The real face is drawn at random from a bundled index of ~500 entries (src/lib/realData.js, sourced from the FFHQ dataset metadata) and loaded via its Google Drive thumbnail URL.
  • Each round randomizes which side gets the real photo. A click is mapped back to the left/right image using each element's bounding rectangle.

Running locally

npm install
npm run dev

Then open the printed localhost URL.

Build

npm run build
npm run preview

Deploys via @sveltejs/adapter-vercel.

Project layout

Path Purpose
src/routes/+page.svelte Game UI, round logic, and hit testing.
src/lib/realData.js Static index of real-photo metadata + URLs.

Known limitations

  • Depends on two external hosts (thispersondoesnotexist.com and Google Drive); if either is unreachable, rounds won't load.
  • The real-photo pool is fixed at ~500 images.

License

No license has been specified yet.

About

A browser game built with SvelteKit: spot the real portrait between a genuine photo and a GAN-generated face

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages