Rebuilding a Video Site in Two Hours: Using AI to Take Back Control of Your Information Feed

    This article walks through how a developer used an AI coding tool to build a working video aggregation site in about two hours, and why the real takeaway is not the speed but the shift in control over how information is discovered. It explains the core idea of replacing behavior-driven recommendations with a curated data source, breaks down the prompt into explicit constraints, and lays out a layered architecture covering data ingestion, indexing, services, and presentation. It also includes a minimal personalization approach using tag-based weighting, practical engineering and compliance notes such as indexing only instead of rehosting media, and a reusable checklist for building your own curated information hub.

    1. Background: An Improvised Project Born Out of Frustration with Recommendation Feeds

    A seasoned developer who is regularly active in technical communities was browsing a video platform late one night, surrounded by high-contrast thumbnails, repetitive topics, and clickbait titles. The homepage recommendation feed was clearly optimized for click-through rate and watch time rather than information quality. The next morning, instead of continuing to complain, they opened an AI coding tool, described the requirement in a single sentence, and delivered a working video aggregation site within two hours.

    The key to this case is not the “two hours” figure, but the fact that it handed back to an individual a capability long monopolized by platforms: the power to build an information gateway. In the past, we could only passively receive content through a platform’s recommendation strategy; now, with the help of code generation, an individual can define “what is worth recommending.”

    It should be noted that the site does not scrape or copy video files. The videos remain hosted on the original platforms; the site only performs indexing and filtering. This is important both technically and from a compliance standpoint, and will be discussed further below.

    2. Core Idea: Replacing Behavior-Driven Recommendations with “Human-Curated Data”

    A traditional recommendation system takes user behavior logs as input: impressions, clicks, completions, and interactions. Its optimization goal is clear, but it tends to converge on homogeneous content. This project takes a different approach: it replaces the input with a high-quality content list that has been repeatedly validated over a long period—the sharing posts accumulated over many years in a technical community.

    Abstractly, this is a data source swap:

    1. Traditional pipeline: content pool → behavior features → ranking model → recommendation feed
    2. This project : curated list → rule-based filtering → deduplication & indexing → recommendation feed

    This approach offers three benefits:

    1. Very low cold-start cost. No user profiles are needed, no analytics instrumentation is required, and there is content from the very first visit.
    2. Stronger quality prior. The list itself has been filtered over a long period by a community, so the noise ratio is far lower than that of a full content pool.
    3. Better explainability. Every video can be traced back to a specific discussion thread, making it possible to explain “why you are seeing this.”

    The tradeoffs are equally clear: coverage is limited by the size of the list, content decays in relevance over time, and there is no negative feedback mechanism. As a result, it is better suited as a “high-quality information subscription source” than as a replacement for a general-purpose video platform.

    3. Prompt Engineering: Why a One-Sentence Requirement Works

    The original requirement was compressed into a single natural-language sentence containing a greeting, but it implicitly contained a fairly complete specification. Breaking it down reveals at least five types of constraints:

    Constraint Type How It Appears in the Requirement Engineering Significance
    Form constraint Video site style Determines the tech stack and page paradigm
    Data constraint Only include content repeatedly recommended by a specific community Defines the data source and filtering rules
    Quality constraint Do not make mistakes Triggers self-checking and validation
    Scope constraint Do only this one thing Suppresses over-engineering and unrelated features
    Tone constraint Conversational greeting Reduces the chance of the model entering “defensive explanation” mode

    In practice, if you want to use this kind of prompt in a production setting, it is advisable to explicitly fill in three parts: input, output, and acceptance criteria. For example:

    1. Input: A list of entries containing title, link, time, and discussion count
    2. Output: A runnable static site + local index file
    3. Acceptance: Homepage loads, categories can be filtered, detail pages can be navigated to, no duplicate entries
    4. Constraints: Do not download media files, only save metadata and reference links

    Translating “don’t make mistakes” into an executable acceptance checklist is the dividing line that determines whether natural-language programming can be reliably reproduced.

    4. System Architecture: A Practical Layered Design

    Even though the deliverable was produced by code generation, it still follows a clear layering. Understanding this structure is necessary if you want to modify it yourself.

    4.1 Data Layer

    Responsible for collection and cleaning. The core fields are recommended as follows:

    1. {
    2. "id": "sha256(url)",
    3. "title": "Original title",
    4. "url": "Original playback address",
    5. "topics": ["software", "history"],
    6. "score": 412,
    7. "discussed_at": "2023-04-11",
    8. "referrers": 37
    9. }

    Key cleaning points: deduplicate by normalized URL, filter out dead links, unify time formats, and apply length truncation and escaping to titles.

    4.2 Index Layer

    For small-scale scenarios, local files are sufficient; a few thousand entries do not require a database. As the scale grows, you can introduce a search engine or vector retrieval. Retrieval should support both keywords and topics as two dimensions.

    4.3 Service Layer

    Provides three types of interfaces: paginated listing, topic aggregation, and detail lookup. Example implementation:

    1. def list_videos(topic=None, page=0, size=30):
    2. items = index.all()
    3. if topic:
    4. items = [v for v in items if topic in v["topics"]]
    5. start = page * size
    6. return items[start:start + size]
    7. def recommend(seed_ids, top_k=10):
    8. seed_topics = counter(t for i in seed_ids for t in index.get(i)["topics"])
    9. scored = [(v, sum(seed_topics[t] for t in v["topics"]))
    10. for v in index.all() if v["id"] not in seed_ids]
    11. return [v for v, _ in sorted(scored, key=lambda x: -x[1])[:top_k]]

    This uses tag-based weighted recall. The logic is simple and the results are explainable, which suits a personal site. If you want to improve effectiveness later, you can introduce content vector similarity as a supplementary recall method.

    4.4 Presentation Layer

    Replicate the three-column layout of mainstream video sites: left-side navigation (history, favorites, watch later), a central content feed, and right-side related recommendations. Cards need to display metadata such as title, source, publish time, and popularity.

    5. A Minimal Viable Approach to Personalized Recommendations

    You can build a recommendation feed that feels “like your own” without training a model. The steps are:

    1. Record the entries the user has clicked on and their topic tags;
    2. Count topic weights and apply time decay (more recent behavior carries higher weight);
    3. Score the candidate set by summing weights, sort, and filter out already-read items;
    4. Reserve 20% of exploration slots, inject uncovered topics to avoid information cocoons.

    Step 4 is often overlooked in many personal recommendation implementations. Without an exploration mechanism, the recommendation feed will degrade within a few weeks into an echo chamber of a single topic.

    6. Engineering and Compliance Notes

    • Index only, do not rehost. Save titles, links, and metadata; playback goes back to the source site, avoiding copyright and bandwidth issues.
    • Respect robots protocols and rate limits. Implement retries and graceful degradation for collection failures, and do not take the site down.
    • Separate metadata from pages. Store data as independent files so that a redesign does not require re-running the collection.
    • Security by default. Escape external text to prevent injection; allow only whitelisted protocols for links.
    • Observability. Log build duration, entry count, and failure rate to facilitate regression.

    If deployed on the cloud, you can use object storage to host static resources, a container platform to run services, and logging and monitoring/alerting services to track anomalies. All of these are general capability categories and do not require binding to a specific vendor.

    7. Controversy and Boundaries: Capability Availability and Responsibility

    Two types of voices are worth recording from the community discussion. One concerns usage restrictions of generation tools: when a task involves behavioral analysis of an existing system, it may trigger safety policies, causing the model to degrade or refuse. The other worries about where the boundary of “replication” lies.

    A pragmatic conclusion is: aggregating and reorganizing publicly available metadata is fundamentally different from reverse-engineering another party’s system. The former is data processing, while the latter involves authorization issues. Engineering practice should clearly distinguish between the two and document the data sources and scope of use.

    8. A Reusable Action Checklist

    1. Define your “curation source”; any list that has been validated over a long period can work;
    2. Write a three-part prompt specifying input, output, and acceptance criteria;
    3. Get data cleaning and deduplication working first, then build the interface;
    4. Start with tag-based weighting for recommendations, then consider vector recall once it works;
    5. Add exploration slots and negative feedback to delay homogenization;
    6. Store only metadata and route playback back to the source site;
    7. Use general-purpose cloud capabilities for hosting and monitoring to keep the architecture portable.

    The real value of two hours is writing the power to define “what I want to watch” back into your own hands. When the barrier to building an information gateway drops to a single sentence, a personalized internet is no longer just an idea.