Building a Personalized Video Aggregator in Two Hours: A Technical Guide

    This article explores the technical practice of building a high signal-to-noise ratio video aggregation site in just two hours. Rather than replicating a full video platform, it focuses on creating an explainable information entry point using community signals, data pipelines, generative AI workflows, and adjustable recommendation logic, while addressing security, compliance, and sustainable engineering evolution.

    1. The Core Problem: Rebuilding Information Entry Points, Not Video Sites

    Mainstream video platforms typically optimize for retention, ad revenue, and watch time. As a result, users are often bombarded with highly engaging but repetitive content. For developers, the real question isn’t whether we can clone a video site, but whether we can build a high signal-to-noise information entry point around trustworthy signals: where content sources are explainable, filtering rules are auditable, and recommendation logic is adjustable.

    The Minimum Viable Product (MVP) for such a project doesn’t require heavy capabilities like uploading, transcoding, copyright hosting, or full-text search. It acts more like a read-only aggregation layer: fetching video metadata from public pages or open APIs, filtering and ranking it based on long-term recommendation signals from specific communities, and presenting it in a familiar video site layout. The ability to complete a prototype in two hours relies less on raw model power and more on compressing requirements into three rapidly generable modules: layout replication, data filtering, and read-only browsing.

    2. Requirement Boundaries and Acceptance Criteria

    Before letting AI coding tools generate code, you must define non-goals clearly; otherwise, the model might expand the project into an uncontrollable full-stack platform. It’s best to break down requirements into four categories:

    1. Content Scope: Only aggregate videos that have been discussed and recommended by communities over time, rather than scraping the entire site.
    2. Core Pages: Homepage recommendation feed, category pages, detail pages, and lightweight navigation like history and watch-later.
    3. Data Display: Title, thumbnail, duration, publish time, view count, topic category, community mentions, and first/latest recommendation time.
    4. Explainability: Every recommendation must be backed by source signals, such as community mentions, topic match degree, and time decay.

    Acceptance criteria should be written as testable items rather than vague descriptions like “build a video site.” For example: homepage initial load time below a set threshold; reproducible filtering results; merged duplicate content; detail pages displaying community comment summaries; all external video links redirecting to the original source; filtering rules adjustable via a configuration file.

    While a single prompt can be a starting point, reproducible engineering relies on contextual constraints. Prompts should include tech stack limitations, data models, page layouts, error handling, security boundaries, and testing requirements. A moderate reasoning budget helps balance generation speed and code quality, but critical modules still require manual review and automated testing.

    3. Data Pipeline: From Community Signals to Sortable Entries

    The technical core of this project isn’t frontend replication, but data filtering. The data pipeline should be divided into five steps: collection, normalization, deduplication, scoring, and categorization.

    The Collection layer only stores metadata and external links, without caching full video content. It must comply with target sites’ Terms of Service, rate limits, and robots.txt to avoid bypassing access controls. The Normalization layer unifies titles, durations, publish times, and tags from different sources into stable fields. The Deduplication layer merges duplicate entries based on URLs, title fingerprints, and semantic similarity. The Scoring layer combines community mentions, topic match, time decay, and duplicate penalties into a ranking score. The Categorization layer uses a mix of rules and semantic models to group entries into topics like software engineering, history, business, or art.

    Here is a pseudocode for an explainable scoring mechanism:

    1. # Pseudocode: Community signal scoring, independent of specific platform APIs
    2. def score(item, now, weights):
    3. age_days = (now - item.last_seen).days
    4. decay = 0.5 ** (age_days / 180) # Time decay
    5. dup_penalty = 1.0 if item.dup_group_size > 3 else 0.0
    6. return (
    7. weights.mentions * item.community_mentions
    8. + weights.topic * item.topic_match
    9. + weights.decay * decay
    10. - weights.dup * dup_penalty
    11. )

    This scoring mechanism doesn’t aim for absolute accuracy but ensures explainability: users can understand why a video appears and adjust weights to change their content preferences. For personalized recommendations, a hybrid strategy of “rule scoring + content vector similarity + lightweight collaborative signals” can be used. During the cold start phase, rely primarily on topic preferences and community signals. Once behavioral data is available, introduce click, save, and skip feedback, but limit the weight of any single signal to prevent a narrow filter bubble.

    4. Generative Construction Workflow: Making the 2-Hour Prototype Work

    Completing a prototype in two hours isn’t a “one-click site generation” by AI, but the result of strictly controlled engineering scope. A reproducible workflow usually involves the following steps:

    1. Scaffold Generation: Have the tool generate the project structure, routes, basic components, and local data files first, without rushing to integrate complex services.
    2. Data Model First: Define structures for video entries, categories, community signals, and comment summaries before generating pages to avoid frequent frontend field changes.
    3. Componentization: Generate the left navigation, recommendation feed cards, category filters, detail pages, and comment/source info separately, reusing the same set of card and list components.
    4. APIs and Caching: For read-only aggregation, use static data with incremental updates, combined with pagination, indexing, and caching to reduce real-time query load.
    5. Validation and Fixing: Run basic tests to check for empty data, duplicates, broken external links, mobile layout, and error prompts, then let the tool fix specific issues.

    This approach is fast because most pages of a video aggregator are standard CRUD and display interfaces, which models excel at generating structured components and boilerplate code for. The data scale is manageable, with no video transcoding, copyright storage, or complex write chains involved. The truly time-consuming parts are often data cleaning, filtering rule validation, and compliance audits, rather than writing pages.

    5. Experience Design: Making Recommendations Explainable and Adjustable

    The page layout can borrow from the information architecture of mature video sites, but should avoid copying trademarks, brand assets, and copyrighted visual materials. Recommendation feed cards should display both content and source signals: thumbnail, title, duration, publish time, view count, alongside “community mentions,” “latest recommendation time,” and “topic tags.” Besides the external playback link, the detail page can display community comment summaries, number of recommenders, and time windows to help users judge content value.

    Personalization shouldn’t just look like “guess what you like,” but should provide adjustable knobs: topic weight, time freshness, community popularity, and content diversity. Recommendation reasons can be simplified into three tags: “Recommended multiple times by the community,” “Matches your followed topics,” and “Recent discussions heating up.” Incorporate diversity constraints and a few exploration slots to prevent users from getting stuck in a single-topic loop. For an information entry point, explainability and adjustability are more important than black-box accuracy.

    6. Security Guardrails and Compliance Risks

    In an agentic workflow, AI coding tools read/write files, access networks, execute commands, and even trigger deployments. Therefore, the principle of least privilege must be followed: sandbox execution, network whitelists, manual confirmation before deployment, and operation audit logs. Model safety policies might trigger false positives; developers should treat “interceptions” as engineering constraints rather than exceptions, reducing friction by splitting tasks, minimizing sensitive operations, and clarifying authorization scopes.

    On the content side, copyright and scraping compliance must be prioritized: store only metadata and external links, not full videos; respect rate limits; provide copyright notices and complaint channels; anonymize aggregated comments and avoid collecting sensitive personal information. UI replication should stop at general layouts and not copy protected assets. If the project goes public, content rating, source transparency, and deletion mechanisms should be added.

    7. Engineering and Sustainable Evolution

    Once the prototype is live, the system needs to transition from “just working” to “maintainable.” It’s recommended to add data validation, failure retries, incremental updates, cache invalidation, pagination indexing, and basic monitoring. Logs should record collection failures, filtering hits, recommendation exposures, and user negative feedback to facilitate weight adjustments. Deployment can use containerized services, object storage for static assets, message queues for incremental tasks, and logging/monitoring tools to observe system health. In terms of cloud infrastructure, you can objectively consider general object storage, container platforms, and log monitoring services provided by vendors like Baidu AI Cloud as references for deployment and operations, though the specific architecture should still be designed around data compliance and cost control.

    Long-term evolution directions include multi-source signal integration, configurable topic systems, visualized recommendation weights, configuration import/export, and offline-first browsing. A more crucial product insight is that a custom information entry point shouldn’t become a new filter bubble. Through source transparency, diversity constraints, and user-controllable weights, we can shift the paradigm from “what the platform recommends” to “what users filter based on their own rules.” As construction costs decrease, true competitiveness will shift towards data governance, filtering rules, and product values.