Rebuilding a Video Site in Two Hours: Why AI Shifts the Real Problem to Curation and Information Gatekeeping
This article uses a case where a developer built a community-curated video site in about two hours with an AI coding tool to explain a reusable architecture for a personal, programmable information gateway. It covers how to turn vague requirements into measurable rules, a six-layer minimal viable system (collection, cleaning, filtering, storage, service, and presentation), consensus-based ranking and deduplication, structured prompting with acceptance criteria, performance and cost controls, security and compliance boundaries, and a three-day delivery plan. The key takeaway is that when generative coding drives implementation costs close to zero, information quality depends on who defines the filtering rules, data governance, and evaluation system.
1. The Real Issue Is Gatekeeping, Not the Rebuild
A developer who was active in technical communities grew tired, late on a Friday night, of exaggerated thumbnails and repetitive topics filling the home feed. The next morning, using an AI coding tool and a single natural-language requirement, he delivered a site in about two hours that collected only videos recommended over time by the community. The page structure, navigation hierarchy, thumbnail sizes, publish times, and view counts closely resembled a mainstream video site. The videos themselves still came from public video platforms; the difference was an added layer of “community consensus filtering.”
Two kinds of reactions appeared on social media: one marveled at the speed of going from natural language to a complete application; the other discussed usage limits, safety guardrails, and model degradation. For the developer, those debates would quickly become outdated. The question with lasting relevance is this: when generative coding pushes implementation cost close to zero, what determines information quality is no longer whether something can be built, but who defines the filtering rules, data governance, and evaluation system.
Rather than retelling one product experience, this article abstracts the case into a general architecture: a personal, programmable information gateway. It can be a video feed, a news feed, a subscription aggregator, or a knowledge-base Q&A system. The core capabilities are the same: collect, clean, filter, rank, present, and gather feedback.
2. Requirements Modeling: Turning “I Don’t Want to See This” into Computable Rules
Most failed self-built feeds start from a requirement like “build a good-looking website.” A workable requirement must be measurable. Start by defining four types of objects:
- Content objects: title, summary, source, publish time, duration, topic tags, and a fingerprint of the original link.
- Signal objects: community discussion volume, number of recommendations, historical weight of recommenders, and a time-decay factor.
- User objects: interest tags, negative-feedback lists (not interested / already seen / clickbait), and active hours.
- Constraint objects: deduplication threshold, daily update limit, source whitelist, and compliance and copyright boundaries.
Then translate vague demands into rules. For example, “keep only videos that have been recommended repeatedly” can be formalized as:
score = w1 * log(1 + mention_count)+ w2 * distinct_recommenders- w3 * age_days_decay- w4 * clickbait_penaltykeep if score >= threshold and passed_deduplicate
Here, distinct_recommenders is more resistant to manipulation than a raw count, age_days_decay keeps content from going stale, and clickbait_penalty can be produced heuristically from a library of exaggerated title words and the text density of thumbnails. Keep the rules simple and explainable first, then introduce model-based scoring gradually.
3. Overall Architecture: A Six-Layer Minimal Viable System
- Collection layer: scheduled tasks pull candidate content from public data sources, using conditional requests and incremental cursors to avoid repeated crawling; failed tasks retry with exponential backoff.
- Cleaning layer: field standardization, timezone unification, language detection, body extraction, and dead-link detection.
- Filtering layer: applies the scoring, whitelists, and blacklists above to output a candidate set; every rejection is logged for traceability and parameter tuning.
- Storage layer: a relational database holds users and metadata, a document/vector store holds content bodies and embeddings, and a cache layer absorbs hotspots.
- Service layer: exposes list, detail, search, personalized recommendation, and negative-feedback endpoints.
- Presentation layer: a three-column layout, topic categories, infinite scrolling, and a detail page showing discussion excerpts and a recommendation timeline.
An illustrative API design (kept generic and not tied to any vendor):
GET /api/v1/feed?topic=software&cursor=...GET /api/v1/items/{fingerprint}POST /api/v1/feedback # {fingerprint, type: "hide|like|seen"}GET /api/v1/recommendations # based on profile and real-time feedback
4. Filtering and Recommendation: From “Popular” to “Consensus”
Popular means instant clicks; consensus means being mentioned repeatedly by different people over time. Implementation can proceed in three steps:
- Rule-based recall: topic whitelist + keywords + source credibility, ensuring coverage and explainability.
- Statistical ranking: distinct recommender count, time decay, and cross-topic diversity penalty to prevent a single topic from dominating the home page.
- Personalized reranking: use a lightweight model or vector similarity for interest matching, while forcing 10%–20% exploration slots to prevent filter bubbles.
Deduplication is a key engineering point. A dual channel of “content fingerprint + semantic similarity” is recommended: the fingerprint uses a hash of the normalized title and link, while the semantic channel uses embedding cosine similarity. Items above the threshold are merged into the same content cluster, keeping only the one with the most discussion.
5. Prompt Engineering: Turning a One-Line Requirement into a Verifiable Engineering Task
The “generate a whole site from one sentence” case makes it easy to overlook the constraints behind it. In production, prompts should be split into structured sections:
Role: senior full-stack engineerGoal: build a content aggregation site with list/detail/search/feedbackData: public data only, fields per schemaConstraints: pagination cursor, deduplication, empty and error states, accessibilityAcceptance: given sample data, pass 8 test casesOutput: directory structure + key code + run instructions
The key is to provide acceptance criteria and boundary conditions so the generated result is testable. For high-risk parts (authentication, payments, data deletion), insist on human review and do not let the model decide on its own.
6. Performance, Cost, and Stability
- Caching strategy: cache home and category page results for 1–5 minutes, and expire detail pages differently based on how often the content updates.
- Cost boundaries: set daily token and request limits for generative calls; when exceeded, degrade to rule-based ranking.
- Observability: instrument impressions, clicks, negative feedback, API latency, and error rates, and configure threshold-based alerts.
- Elastic deployment: deliver in containers, use object storage for static assets, a message queue for peak shaving, centralized log search, and a closed loop of monitoring and alerting.
- Capacity estimation: derive read QPS from “daily active users × refreshes per user × items per response,” estimate writes from the collection frequency, and reserve 3x headroom.
7. Security, Compliance, and Risk Control
A self-built gateway needs boundary awareness too. On the data side, respect robots protocols and platform terms, control crawl frequency, and store only necessary fields. On the content side, only index and link to copyrighted material; do not cache protected media bodies. On the account side, if multi-user access is enabled, implement authentication, rate limiting, and input validation to prevent injection and privilege escalation. For model-generated parts, build prompt-injection protection and output review, and never write keys or tokens into code or logs.
It is worth noting that debates about “whether models can be used for reverse engineering” should, from an engineering standpoint, return to authorization and compliance: prioritize official APIs and public data, and focus effort on filtering and experience rather than bypassing limits.
8. Delivery Roadmap: From Zero to Usable in Three Days
- Day 1: finalize the topic and data sources, complete collection and cleaning, and run 500 sample items.
- Day 2: implement scoring, deduplication, and list/detail endpoints, and add caching.
- Day 3: add personalization and negative feedback, complete empty states, error states, and accessibility, and deploy in containers.
Acceptance checklist: first screen returns within 200ms, deduplication accuracy can be spot-checked, negative feedback takes effect immediately, and content auto-updates daily with retry on failure.
9. Conclusion: Take Back Control of Recommendations
Delivering a site in two hours is not magical. What is magical is the real problem exposed once the barrier disappears: who we are willing to hand “what to watch” over to. For developers, the most worthwhile investment is not imitating a particular interface, but building a set of rules, data, and evaluation systems of your own. When collection, filtering, and ranking can all be replaced and audited, everyone can have a customized gateway to the internet—it can be a video site, or a daily briefing containing only the topics you care about.
