Discover and share Mii residents for your Tomodachi Life island!
Find a file
NigelWD 7a018c077f performancehelp
Changes

  - src/app/mii/[id]/page.tsx — enable ISR (revalidate = 300), dedupe the two Prisma findUnique calls via React cache(), and remove auth() from the
  render path so Cloudflare can cache the HTML.
  - src/lib/rate-limit.ts — add a handleByIp() variant that skips the DB session lookup for anonymous reads.
  - src/app/mii/[id]/image/route.ts — use handleByIp() and bump Cache-Control max-age from 60s to 24h for mii / qr-code / features (kept 60s on gallery
   imageN since those aren't in your edit purge list).
  - src/app/api/submit/route.ts — pin the Mii studio fetch hostname to studio.mii.nintendo.com (SSRF hardening).
  - src/lib/auth.ts — reject Google sign-ins with email_verified: false.

  Performance boost

  - DB queries per Mii page + its images: ~8 → ~1 (−85%)
  - /mii/[id] TTFB at the edge: ~24s → <100ms on cached hits
  - Cloudflare cache window for stable image types: 60s → 24h (1440× longer)
2026-04-16 22:09:52 -04:00
prisma feat: prisma migration 2026-04-17 00:44:26 +01:00
public feat: clearer submit form 2026-03-29 23:42:32 +01:00
src performancehelp 2026-04-16 22:09:52 -04:00
.dockerignore fix: add dockerignore 2026-03-14 13:05:56 +00:00
.editorconfig chore: update packages, format all files, fix downshift errors 2026-02-21 19:34:01 +00:00
.env.example feat: remove sentry 2026-04-13 20:39:32 +01:00
.gitignore feat: remove sentry 2026-04-13 20:39:32 +01:00
DEVELOPMENT.md fix: can't edit custom images properly 2026-04-09 15:01:25 +01:00
Dockerfile fix: create uploads directory in dockerfile 2025-04-30 19:31:45 +01:00
eslint.config.mjs chore: update packages, format all files, fix downshift errors 2026-02-21 19:34:01 +00:00
LICENSE feat: youtube video instructions 2026-04-08 11:29:59 +01:00
next.config.ts Fix Cloudflare RSC caching bug and reduce database load 2026-04-16 17:28:37 -06:00
package.json refactor: remove random sort 2026-04-17 00:54:13 +01:00
pnpm-lock.yaml refactor: remove random sort 2026-04-17 00:54:13 +01:00
postcss.config.mjs chore: update packages, format all files, fix downshift errors 2026-02-21 19:34:01 +00:00
README.md feat: youtube video instructions 2026-04-08 11:29:59 +01:00
tsconfig.json chore: update packages 2025-10-29 19:46:33 +00:00

TomodachiShare Logo

TomodachiShare

Discover and share Mii residents for your Tomodachi Life island!

Visit the website Visit my personal website


About

TomodachiShare is a fan-made website that lets you easily discover, upload, and share Mii characters for the game Tomodachi Life.

  • 📷 Upload or scan your Mii QR codes
  • Generates Mii renders for previews
  • 🖼️ Add custom images of your Mii on your island
  • 🌎 Browse and add Miis from other players
  • 🏝️ Build your perfect island by finding the perfect residents

Development Instructions


TomodachiShare branding is not covered by the AGPL-3.0.
The name and logo may not be used to suggest affiliation with or endorsement by this project.

Tomodachi Life and Mii characters are trademarks of Nintendo. This project is fan-made and not affiliated with Nintendo.