惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

月光博客
月光博客
Martin Fowler
Martin Fowler
Last Week in AI
Last Week in AI
罗磊的独立博客
阮一峰的网络日志
阮一峰的网络日志
博客园 - 【当耐特】
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
V
Visual Studio Blog
Hugging Face - Blog
Hugging Face - Blog
雷峰网
雷峰网
博客园_首页
人人都是产品经理
人人都是产品经理
量子位
美团技术团队
The Cloudflare Blog
小众软件
小众软件
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
M
MIT News - Artificial intelligence
Microsoft Security Blog
Microsoft Security Blog
D
DataBreaches.Net
博客园 - Franky

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
I built an anime ranking site that measures real buzz, no...
mitonton310 · 2026-06-15 · via DEV Community
Cover image for I built an anime ranking site that measures real buzz, not marketing hype

mitonton310

Most anime ranking sites show you what's being promoted. The big seasonal titles, the ones with the biggest ad budgets, the ones every site agrees on. I wanted to see something different: what are fans actually watching and talking about right now?

So I built AnimeBuzz — an anime discovery site that ranks shows by a single number I call the Buzz Score, computed from real public engagement data instead of marketing.

Here's how it works under the hood.

The idea: a "Buzz Score" from real signals

The core problem is turning messy, multi-source engagement data into one comparable 0–100 number. I blend four public signals:

  • YouTube view counts (60%) — trailers, clips, reaction videos. The strongest "people are actually watching this" signal.
  • YouTube likes (15%) — positive reactions, not just views.
  • AniList popularity (20%) — how many community members track the title.
  • AniList favourites (5%) — the most dedicated fans.

YouTube buzz (75%) blended with AniList fan support (25%).

The scoring math (and why naive normalization fails)

You can't just add raw numbers — millions of views versus a few thousand favourites would make views completely dominate. Each metric has to be normalized to 0–1 first.

The naive approach is to divide by the maximum value. But that breaks the moment one mega-hit (say, a Demon Slayer) shows up: it becomes the 1.0 reference and flattens everything else to near-zero.

The fix: normalize against the 95th percentile instead of the max.

def percentile_95(values):
    """Use the 95th-percentile value as the 'full marks' line,
    so a single viral outlier can't flatten the whole distribution."""
    if not values:
        return 1
    s = sorted(values)
    idx = int(len(s) * 0.95)
    return max(s[min(idx, len(s) - 1)], 1)  # avoid div-by-zero

Then the score is just a weighted sum of the normalized metrics:

score = (
    (views / max_views)   * 60 +
    (likes / max_likes)   * 15 +
    (pop   / max_popular) * 20 +
    (favs  / max_favs)    *  5
)
score = round(min(score, 100.0), 1)

One more detail: the normalization basis is calculated on the current season only, so the scale reflects "what's hot right now" and doesn't get dragged around by all-time classics in the back catalog.

The data pipeline

No database — everything is plain JSON files in git. A set of Python scripts run on a schedule:

  • fetch_anilist.py — seasonal anime, studios, genres, streaming links (AniList GraphQL API, free)
  • fetch_youtube.py — view/like counts (YouTube Data API, quota-limited so it fills in a batch per day)
  • fetch_themes.py — opening/ending songs from the wonderful AnimeThemes.moe API, keyed by AniList ID
  • calc_buzz_score.py — computes scores and emits all the ranking JSON files
  • generate_sitemap.py — rebuilds the sitemap

A gotcha worth sharing: when re-fetching from AniList, I have to preserve keys that other scripts wrote (YouTube data, themes, etc.), or a daily refresh would wipe them:

PRESERVE_KEYS = [
    "youtube", "buzz_score", "voice_actors", "streaming",
    "themes",  # ← learned this one the hard way
]

Frontend: static all the way

The site is Vike (vike-react) + React + TypeScript, fully prerendered to static HTML at build time, then served from Cloudflare Workers as static assets. No server, no runtime — every page is a file.

For ~3,000 pages this is fantastic: instant loads, trivial scaling, basically free hosting. The trade-off is build time and the discipline of treating data as a build input.

Automation

A GitHub Actions cron runs daily: fetch → score → regenerate → commit → build → deploy. The site refreshes itself every day with zero manual work, including recording each title's score into a history file so I can chart how buzz rises and falls over time.

What got built along the way

Once the core ranking worked, the dataset opened up a bunch of features almost for free:

  • Best anime openings & endings — ranked, and you can watch the actual OP/ED
  • Voice actor (seiyuu) filmographies, aggregated from the per-anime cast data
  • Hidden gems (high community score, low buzz), all-time rankings, airing calendar

Lessons learned

  • Percentile normalization >>> max normalization for any "score from mixed signals" problem. Outliers are the enemy.
  • JSON-in-git is underrated for read-heavy sites. No DB to run, full version history, trivial to deploy statically.
  • A brand-new domain is slow to get indexed — no amount of clever engineering substitutes for time and real links. (Still very much in that phase!)

If you're into anime, take a look and tell me what your Buzz Score gut-check gets wrong: anime.douga-summary.jp

Happy to answer any questions about the stack in the comments 👇