mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-05-13 13:17:45 +00:00
Discover and share Mii residents for your Tomodachi Life island!
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) |
||
|---|---|---|
| prisma | ||
| public | ||
| src | ||
| .dockerignore | ||
| .editorconfig | ||
| .env.example | ||
| .gitignore | ||
| DEVELOPMENT.md | ||
| Dockerfile | ||
| eslint.config.mjs | ||
| LICENSE | ||
| next.config.ts | ||
| package.json | ||
| pnpm-lock.yaml | ||
| postcss.config.mjs | ||
| README.md | ||
| tsconfig.json | ||
TomodachiShare
Discover and share Mii residents for your Tomodachi Life island!
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.