Building a Personalized Video Site with AI Coding Tools in Two Hours
This article analyzes a case in which an engineer used a conversational AI coding tool to build a complete video site in about two hours, with all videos sourced from content repeatedly recommended by a technical community rather than from a platform’s commercial recommendation algorithm. It breaks down requirement definition, a four-layer architecture, data acquisition and scoring logic, AI-assisted frontend generation, lessons and limitations, and extension directions. Readers will learn a reusable approach for combining AI coding tools with content curation to create personalized information portals and full-stack web applications.
1. Case Background: Why Rebuilding a Video Site Is Worth Studying
A well-known engineer once publicly shared a representative practice. One evening, he was put off by the algorithm recommendations on the homepage of a mainstream video platform: exaggerated thumbnails filled the screen, and old topics appeared again and again. This made him want to build something himself. The next day, with a conversational AI coding tool, he built a complete video site in about two hours. Its core differentiator was simple: all videos on the site came from content that the technical community had discussed and recommended repeatedly over the years, rather than relying on the platform’s commercial recommendation algorithm.
The value of this case is not that it “replicated a website,” but that it shows the convergence of three important trends:
- LLM coding capabilities now cover complete web applications: from page layout and interaction logic to data pipelines, AI can produce runnable full-stack code in a single session.
- Personalized information entry points are becoming essential: general-purpose platforms’ recommendation algorithms serve platform goals, while individuals have a more precise ability to define “what I actually want to watch.”
- The barrier to combining curation and engineering has dropped significantly: work that once required a team several weeks to complete can now be delivered overnight by one person with basic technical literacy.
The following sections break this process into a reusable technical approach.
2. Requirement Definition: Engineering Breakdown Behind a One-Sentence Prompt
It is worth noting that the project’s requirement description was extremely short, roughly: “Help me build a video-site-style site, but only include videos recommended by the technical community over the years, and don’t make any mistakes.” Although the prompt is only one sentence, making it work actually implies multiple engineering subproblems. In practice, it is advisable to break them down proactively:
- Feature scope: video list page, category browsing, detail page, personalized recommendations, watch history, and watch later;
- Layout fidelity: left sidebar, right video feed, cover size, publish time, view count, and other information hierarchy;
- Data sources: where does video metadata come from? How are community discussion records crawled and linked?
- Filtering logic: what counts as “repeatedly recommended by the community”? How should the time window and recommendation-count threshold be set?
- Quality assurance: the “don’t make any mistakes” constraint needs to be enforced through testing and staged acceptance.
A practical approach is to have AI first generate a requirements list and technical plan, confirm it manually, and then move to coding. This has a much lower failure rate than outputting all code at once.
3. Technical Architecture Breakdown
3.1 Overall Layering
This type of application can be abstracted into four layers:
- Data collection layer: through public APIs or compliant data export methods, obtain video metadata (title, cover, duration, publish time) and community discussion data (recommendation records, comments, discussion heat).
- Data processing layer: clean, deduplicate, score by rules, and build the mapping between videos and community discussions.
- Storage layer: when metadata is small (on the order of thousands of records), static JSON or SQLite is sufficient; consider a relational database only after the data volume grows.
- Presentation layer: the frontend handles browsing, search, categorization, detail display, and interaction state management.
3.2 Data Acquisition and Filtering Logic
The filtering rule is the soul of the project. Using “community recommendation count” as a quality signal is a classic proxy metric for content quality: a video repeatedly mentioned and discussed by a technical community is itself a decentralized quality endorsement.
An illustrative scoring logic can be expressed as follows:
def relevance_score(video, mentions):recency = 1.0 / (1 + months_since_last_mention(video) / 12)breadth = len({m.author for m in mentions}) # number of unique recommendersdepth = sum(m.comment_count for m in mentions)return 0.5 * breadth + 0.3 * depth + 0.2 * recency * len(mentions)
The core idea is: the number of recommenders (breadth) is more trustworthy than raw recommendation count (repeated votes), comment quality comes next, and the time-decay factor balances new and old content. In practice, manual spot checks should also be added to filter out clickbait and low-relevance content.
3.3 AI Generation Strategy for Frontend Layout
When replicating a classic two-column layout, it is advisable to use componentized prompts to guide AI:
Please implement a video site homepage:- Fixed left navigation: Home / Categories (Art, Software Engineering, History, Business, Games, etc.) / History / Watch Later- Responsive video card grid on the right; each card includes cover image, title, duration, publish time, and recommendation count- Use a component-based framework; follow design system conventions; support both desktop and mobile
Generating modules separately (navigation, cards, detail page, and recommendation module) and then assembling them is more controllable than generating the entire site at once, and it also makes localized fixes easier.
3.4 Detail Page: Integrating External Discussion Data
The detail page is the most distinctive part of the project: in addition to the video itself, it also displays community comments, the number of recommenders, and the distribution of recommendation times. Implementation only requires establishing a one-to-many relationship between “video—discussion thread” in the data pipeline, and rendering them in reverse chronological order on the frontend. This design combines viewing behavior with community discussion context and significantly increases the information density of the content.
4. Lessons and Limitations in AI Coding Practice
Based on public discussions of such projects, several lessons are worth noting:
- Model tier and cost tradeoff: a high-tier model with medium reasoning strength is usually enough to handle tasks at this scale; when complex logic fails, switch to a stronger reasoning tier for targeted fixes.
- Safety guardrails and usage limits: AI providers may trigger safety policies for certain task types (such as reverse engineering or large-scale scraping), and there have even been discussions of account downgrades. In practice, ensure that data sources are legal and compliant, and prefer official APIs and public data.
- Iterative acceptance: split the two-hour work into four milestones: data pipeline → list page → detail page → recommendations. Perform manual acceptance immediately after each segment to avoid error accumulation.
- Do not believe in “zero errors”: AI-generated code still needs review, especially data-processing edge cases and frontend state management.
5. Derivative Directions and Engineering Recommendations
The same methodology can be extended to broader scenarios of rebuilding information entry points:
- Personalized short-video feed: custom filtering rules and topic pools instead of generic recommendation algorithms;
- Long-video/course platform: organize content by learning path with progress management;
- Academic information feed: for example, curate high-heat papers from technical communities to build a personal literature radar;
- News aggregation portal: organize information based on subscription sources rather than platform recommendation feeds.
For long-term operation, it is also necessary to add scheduled tasks to update data, object storage to host covers and other static assets, CDN acceleration, logging and monitoring/alerting, and necessary caching layers. These capabilities can be assembled from generic product categories on major cloud platforms, and the overall cost is very manageable at personal-project scale.
6. Conclusion
The significance of “replicating a video site in two hours” is not replication itself, but that it proves a key inflection point: the marginal cost of building customized software has approached zero, and the scarce capability has shifted from engineering implementation to requirement definition and content curation. When everyone can build their own information entry point at low cost, our choice over “what to watch” will, for the first time, truly return to our own hands. For developers, now is the best time to invest effort in “defining your own filtering rules.”
