Overview
Hanny Toreiko ๐ป๐ is an Indonesian VTuber: a toilet ghost who became a streamer. This is her official website, which I build and maintain as her manager. It's a full-stack Next.js 16 app on Supabase that goes well beyond a typical VTuber landing page, and it's built around her community: a global headpat counter, anonymous Q&A and confession boards, mini-games, fan-art and clip galleries, live game stats, a shop, stream automation and OBS overlays.
Instead of a regular home page, the site opens with a head-patting clicker, because a site that represents a person shouldn't look like a company profile.
Features
๐ซณ Headpat (home page)
- A global clicker: every pat from every visitor adds to one shared counter.
- Pats are counted in Upstash Redis with atomic
INCRBY and capped per request to stop spam. A cron job copies the total back to Postgres.
- The read endpoint is cached at the CDN for 10 seconds, so Redis sees about one read every 10 seconds no matter how much traffic the site gets.
- A matching OBS overlay (
/obs) shows the live counter on her stream.
๐ป About
A long, highly animated lore page: hero, biography, an animated timeline, lore and FAQ, trivia, cover songs, community goals, flip-text and hover-text effects, and spotlight cards.
- Q&A: an anonymous question board where Hanny answers on stream.
- Curhan (curhat ke Hanny): an anonymous confession and venting board with image attachments up to 4 MB.
- Review sessions (
/review/[slug]): fans submit reviews for a specific session.
- Dynamic forms (
/forms/[slug]): form schemas stored in the database and rendered at runtime, with file uploads up to 50 MB.
- Every submission goes through a Server Action validated with Zod and is rate-limited with Upstash (for example, 3 confessions per 30 days and 10 form responses per day).
๐ฎ Arcade
- Dino run: a Hanny-themed endless runner.
- Marshmallow catcher: slide the basket to catch treats and avoid bombs.
- Would You Rather, a game built from a set of Hanny-themed questions.
๐น๏ธ Live game stats
- Honkai: Star Rail: her player profile and character showcase from the MiHoMo API (cached in Redis for 24 hours), a build scorer that rates relics by crit value, a gacha (warp) tracker, a hall of fame, and a hidden admin page for uploading warp history.
- Persona 5 Royal: playtime and achievement progress pulled from the Steam Web API.
๐ผ๏ธ Content galleries
- #HannyTrap: a fan-art gallery with credits and a disclosure notice.
- #HanDoKo: a gallery of stream clips and Shorts.
- VTube Studio PNGs: a gallery synced automatically from a Google Drive folder through a Google Apps Script endpoint.
๐๏ธ Shop
- A merchandise catalogue with product pages and image galleries.
- A commissions page with a waitlist, a progress tracker and a downloadable price list.
- A referral and partnership page with copyable codes.
๐ก Stream and community automation
- Live detection: an endpoint checks her YouTube channel with youtubei.js and updates a
stream_status row. A floating "Live now" button then appears across the whole site.
- Discord event sync: upcoming YouTube streams are created automatically as Discord scheduled events in her server.
- Attendance leaderboard: a ranking of the most loyal viewers and supporters, kept up to date by her Discord bot.
- Shortcuts endpoints that let her check unread Q&A and confessions, or toggle live status, from iOS and macOS Shortcuts.
- Site-wide announcements shown as toasts and cached at the CDN.
๐ Admin area
- Login with Supabase Auth. Admin routes are protected at the edge by the Next.js 16
proxy (formerly middleware).
- A form-responses dashboard that updates in realtime over Supabase WebSocket subscriptions, with pagination, deletion and a confetti burst on new entries.
- An uploader for the HSR warp history.
๐งญ Transparency pages
- /status: live infrastructure status for Supabase, Vercel and GitHub, plus a database health ping.
- /graph: a zoomable architecture diagram of the whole project.
- /colophon: the stack and design decisions behind the site.
- /credits: the team behind the scenes, loaded from the database.
- /terms: the community rules and terms of service.
โจ Polish
- Page transitions using React's native
ViewTransition, and the React Compiler turned on.
- Animations from Aceternity UI, Magic UI and Framer Motion, all respecting
prefers-reduced-motion.
- Light and dark mode, a top progress bar, a back-to-top button and error boundaries for each route group.
- Dynamic Open Graph images rendered with Takumi, a custom oEmbed endpoint for rich Discord embeds, canonical URLs, and a generated sitemap and
robots.txt.
- Branded short links such as
/youtube, /discord, /x, /trakteer, /tako and /nightbot.
Architecture highlights
export async function addHeadpats(amount: number) {
if (amount <= 0 || amount > 1000) throw new Error('Invalid amount');
const total = await redis.incrby('global:headpats', amount);
return { total };
}
export const curhanRatelimit = new Ratelimit({
redis: Redis.fromEnv(),
limiter: Ratelimit.slidingWindow(3, '30 d'),
});
- Three route groups (
(website), (admin), (overlay)) give public pages, the admin area and stream overlays their own layouts.
- Postgres with Row Level Security on every table. A separate service-role client is used only inside protected server routes.
- Hot data in Redis, durable data in Postgres: headpats, rate limits and the HSR cache live in Redis, and cron jobs copy results back.
- CDN caching (
s-maxage with stale-while-revalidate) on the public read endpoints keeps database load flat as traffic grows.
- Secret-protected cron and automation routes (Vercel Cron and Shortcuts) handle the headpat, PNG, live-status and Discord syncs.
Tech stack
| Layer | Tools |
|---|
| Framework | Next.js 16 (App Router, Turbopack, Server Actions, React Compiler), React 19, TypeScript |
| Database | Supabase (PostgreSQL, RLS, Realtime, Auth, Storage) |
| Cache | Upstash Redis + @upstash/ratelimit |
| Forms | React Hook Form + Zod |
| UI | Tailwind CSS v4, shadcn/ui, Radix UI, Aceternity UI, Magic UI, Tabler Icons |
| Motion | Framer Motion, ViewTransition, canvas-confetti |
| Data | youtubei.js, MiHoMo API (HSR), Steam Web API, Discord API, Google Apps Script |
| OG images | Takumi |
| Tooling | Bun, ESLint, Prettier, GitHub Actions (lint, type check, daily Supabase type generation, Release Drafter) |
| Hosting | Vercel (Sydney region) |
Credits
- @azukashi: manager, full-stack development and design
- @Ikazury: collaborator
- Hanny Toreiko: the talent this whole site is built for ๐ป๐
The full volunteer team is listed on the site's own Credits page.
The source code is proprietary (all rights reserved) and is Hanny Toreiko's intellectual property.