Building a Curated Video Portal in Two Hours with an AI Coding Assistant
An AI coding assistant can help turn a narrowly scoped video discovery idea into a working prototype within hours. This article explains how to build a curated, read-only video index using authorized metadata, community recommendations, explainable ranking, and lightweight personalization. It covers architecture, data normalization, frontend state, security boundaries, deployment, and observability, while distinguishing a rapid prototype from a sustainable production system.
Introduction: An Experiment in Personalized Information Discovery
Building a weekend prototype that aggregates only videos repeatedly recommended by technical communities may sound like recreating an entire video platform. In practice, it is a much narrower engineering experiment: a curated index.
The goal is not to replace a full-scale video-sharing service. It is to validate a reusable development approach. With an AI coding assistant, a developer can break the project into data ingestion, filtering rules, topic classification, recommendation ranking, frontend layout, deployment, and monitoring—and connect those pieces into a minimal working loop within hours.
This article examines the architecture, data pipeline, ranking, frontend, security, and operations needed to build a controllable, explainable, and extensible video discovery portal.
1. Reduce the Scope: Build a Curated Index, Not a Video Platform
A complete video platform includes accounts, uploads, transcoding, copyright payments, content moderation, advertising, personalized recommendations, and comment governance. None of these complex workflows can realistically be completed in two hours.
A rapid prototype therefore needs explicit boundaries:
- Support read-only browsing, not uploads or transcoding.
- Index metadata available through authorized APIs rather than storing copyrighted video files.
- Include items repeatedly discussed or recommended by technical communities instead of collecting an entire catalog.
- Reuse familiar interface patterns without copying protected visual assets.
These constraints turn “rebuild a platform” into “build a curated index with transparent sources.”
The data can be divided into two categories:
- Video metadata: stable video identifiers, titles, publication dates, view counts, and topic tags.
- Community discussion records: video references, discussion dates, recommendation counts, comment summaries, and topic context.
Collection should prioritize authorized APIs and comply with rate limits, caching requirements, privacy rules, and copyright restrictions.
The resulting application provides four core capabilities: topic-based video lists, detail pages, clearly attributed comment summaries, and lightweight recommendations based on curation signals and user behavior.
2. Architecture: Offline Processing and Online Queries
A maintainable prototype should separate offline batch processing from online queries.
The layers have distinct responsibilities:
- Collection and ingestion: Synchronize authorized data, enforce rate limits, perform incremental updates, and retain raw snapshots.
- Normalization: Extract stable video identifiers, standardize timestamps, remove tracking parameters, and deduplicate by identifier.
- Filtering and scoring: Apply community-mention thresholds, time decay, topic classification, and negative-feedback signals.
- Indexing and storage: Store metadata in a relational database, cache popular lists, and use object storage for snapshots and static assets.
- Service layer: Expose HTTP APIs for lists, categories, details, comment summaries, and recommendations.
- Frontend: Implement navigation, history, watch-later lists, recommendation feeds, and detail pages.
The first milestone should be the smallest useful path:
Community mention → video identifier → index → browseable list
Classification, recommendations, and comment aggregation can follow once that loop works.
The following pseudocode illustrates how to normalize and merge mentions from multiple sources. Its purpose is explainable deduplication and counting, rather than a complete implementation.
type RawMention = { url: string; time: string; context: string }type CuratedItem = {videoId: string; title: string; publishedAt: string;mentionCount: number; firstSeen: string; lastSeen: string;topics: string[]; comments: string[]}function normalizeAndMerge(raw: RawMention[]): CuratedItem[] {const byId = new Map<string, CuratedItem>()for (const m of raw) {const id = extractStableVideoId(m.url) // Use only stable identifiers from authorized dataif (!id) continueconst cur = byId.get(id) ?? {videoId: id, title: "", publishedAt: "",mentionCount: 0, firstSeen: m.time, lastSeen: m.time,topics: [], comments: []}cur.mentionCount += 1cur.firstSeen = minTime(cur.firstSeen, m.time)cur.lastSeen = maxTime(cur.lastSeen, m.time)cur.comments.push(summarize(m.context)) // Store summaries, not restricted full textbyId.set(id, cur)}return [...byId.values()].filter(x => x.mentionCount >= 2)}
When the same video appears in several discussions, those references become one index entry. Its detail page can show the recommendation count, first and most recent recommendation dates, and comment summaries. This exposes the evidence behind ranking rather than presenting an unexplained result.
3. Filtering and Scoring: Turn Community Consensus into Explainable Rankings
Filtering rules determine the quality of the index.
Normalize URLs. Keep the stable video identifier and remove tracking parameters or temporary session information so that different URLs do not inflate counts for the same content.
Deduplicate by video identifier. Merge discussion references from multiple sources into a single item.
Set a minimum mention threshold. For example, require at least two independent recommendations before an item enters the main list. During cold start, a single recommendation may be accepted with an “unverified” label.
Apply time decay. Recently recommended videos should receive more weight, but older classics should not disappear simply because of age. Piecewise decay can preserve their relevance rather than reducing their value to zero.
Classify topics using context. Combine the title, description, and surrounding discussion, then correct errors through manual spot checks.
Include negative feedback and quality signals. Reports, hides, duplicates, and low-quality summaries should affect eligibility or ranking.
An explainable linear score is sufficient for an initial version:
score = w1*log(1+mentions) + w2*recency(lastSeen) + w3*topicMatch + w4*quality - w5*negative
These weights are not universal constants. Tune them through small-sample evaluation and manual review.
Detail pages should display recommendation counts, first and most recent recommendation dates, topics, and comment summaries so users can understand why an item appears.
For personalization, keep curation signals as the primary ranking input. Use clicks, dwell time, and hides as secondary adjustments, rather than allowing a few interactions to quickly overfit the feed.
4. Frontend Design: Familiar Layouts, Explicit State, and Effective Caching
The frontend should make browsing familiar without copying protected visual assets.
A sidebar can provide access to liked videos, history, and watch-later lists. The recommendation feed can use consistent thumbnail proportions and display titles, publication dates, view counts, and community recommendation counts.
A detail page should include:
- Video playback or an authorized embed entry point.
- Topic tags.
- Attributed summaries of source discussions.
- A recommendation timeline.
Playback should use authorized embedding or public APIs rather than stored copies of video files. Comments should be limited to summaries and necessary context. Preserve a route back to the original discussion without displaying identifiable domain names in the interface.
For state management, browsing history and watch-later lists can initially remain in local storage to reduce privacy exposure. Popular and category lists should use caching and pagination, while detail data loads on demand.
Loading, empty, and error states—as well as accessibility—belong in the first version, not in a later cleanup phase.
Keep components modular so that data sources can be replaced independently. Video cards, source badges, timelines, comment summaries, and filters should be separate components.
Personalized recommendations should also include a “Why this was recommended” explanation and a “Show less like this” action. These controls give users a practical way to adjust the system.
5. Recommendations: Curation First, Personalization Second
The recommendation system can be divided into three layers.
Cold-Start Layer
Use community consensus, topic diversity, and freshness to provide useful content before the system has any user history.
Personalization Layer
Build a user-interest vector from lightweight signals such as clicks, completed views, hides, and saved items. Users should be able to clear this history or disable personalization.
Blending Layer
Combine curation, personalization, and freshness scores:
final = alpha*curated + beta*personal + gamma*freshness
Apply diversity constraints so that a single topic does not dominate the feed.
Evaluation should go beyond click-through rate. Offline evaluation can measure coverage, topic diversity, source transparency, and duplicate rates. Small-traffic online A/B tests can examine retention, negative-feedback rates, and diversity.
Behavioral data should follow data-minimization, anonymous-aggregation, and deletion principles.
Recommendation explanations should be specific and understandable, such as:
- “Recommended repeatedly by the community.”
- “Related to software engineering topics you recently browsed.”
- “Frequently recommended in the past 30 days.”
These explanations help users understand the ranking rather than leaving them to infer how the system operates.
6. Security and Compliance: Rapid Prototyping Does Not Justify Bypassing Restrictions
AI coding assistants can extract reusable component patterns from publicly visible layouts, generate scaffolding, add tests, and refactor code. These capabilities can substantially shorten prototype development.
However, reproducing a familiar layout is not the same as bypassing a platform’s restrictions.
The project needs clear safeguards:
- Collect data through authorized APIs and respect rate limits and caching requirements.
- Do not bypass verification, rate limiting, or encryption.
- Use authorized video embeds instead of storing copyrighted content.
- Retain only necessary comment summaries with source attribution, rather than bulk-copying restricted full text.
- Redact sensitive information from logs and avoid collecting personally identifiable information.
- Provide reporting, blocklists, and manual content review.
During complex tasks, an AI assistant may refuse a request or provide less thorough reasoning because of a mistaken safety assessment, limited context, or unclear task boundaries. Address these issues by decomposing tasks, clarifying data boundaries, supplying test cases, and using human review and audit records—not by attempting to evade safety policies through prompts.
Every rule change should record its version, data sources, and ranking parameters so that results remain traceable.
Enterprise deployments also require access controls, data classification, access auditing, and compliance assessment.
7. Deployment, Observability, and Cost Control
A practical deployment combines stateless query services with scheduled batch processing.
A container platform can host the query service, object storage can retain static assets and snapshots, and a cache can accelerate popular lists. Logging, monitoring, and alerts provide operational visibility.
Baidu AI Cloud offers general service categories such as object storage, container platforms, logging, monitoring, and alerting. Any selection should be checked against the official documentation, applicable quotas, billing rules, and availability for the intended deployment.
Cost control depends on incremental synchronization, paginated loading, separation of hot and cold data, and improved cache hit rates. Avoid repeated full-data collection and unbounded storage growth.
Operational metrics should include:
- Collection success rate.
- Normalization failure rate.
- Deduplication rate.
- Filter match rate.
- P95 query latency.
- Cache hit rate.
- Recommendation diversity.
- Negative-feedback rate.
- Report rate.
Release practices can include internal staged rollouts, limited-traffic validation, rule-version rollback, and end-to-end contract tests.
Testing should prioritize identifier-extraction unit tests, filtering-rule snapshot tests, frontend API contract tests, and checks that detail pages display source information correctly.
A continuously maintainable system needs an auditable chain connecting data sources → rule versions → ranking results → user feedback.
8. From a Personal Video Feed to a Personal Internet
This prototype represents a general-purpose curation pipeline:
Authorized ingestion → stable-identifier normalization → community-consensus filtering → topic classification → explainable ranking → transparent attribution → user feedback
The same approach can organize news, podcasts, courses, documentation, and technology radars.
Users can define their own sources, rules, rankings, and blocked items. Instead of accepting whatever a platform recommends, they can decide how their information entry point is organized.
That is the practical meaning of a “personal internet”: not duplicating a platform, but making small, auditable, customizable information portals feasible to build.
Personalized portals still create risks, including filter bubbles, biased rules, and copyright issues. Mitigations include topic-diversity constraints, visible sources and ranking explanations, a one-click reset, negative-feedback controls, and periodic manual review. Enterprise use also requires permissions and data governance.
A two-hour prototype demonstrates how an AI coding assistant can lower the barrier to building such a system. It does not establish that the system is production-ready. Long-term reliability still depends on compliant data access, explainable rules, monitoring, alerts, and governance.
The lasting result is not merely a page. It is a reusable method: validate the idea with a minimal working loop, build trust through transparent rules, and use engineering discipline to turn a short experiment into a maintainable information portal.
