Building a Custom Video Information Portal Using AI Coding Assistants

    This article explores how developers and small teams can leverage AI coding assistants to build controllable, custom video information portals. It details the architectural design, quality scoring based on community signals, frontend engineering practices, and personalized recommendation strategies. Furthermore, it discusses the engineering and observability requirements for transitioning from a rapid prototype to a sustainable system, highlighting the boundaries of prompt-driven code generation and the importance of long-term governance.

    Information autonomy is becoming a new requirement for developers and small teams. Recommendation feeds on public video platforms typically optimize for engagement efficiency, which easily traps users in exaggerated covers, repetitive topics, and algorithmic feeding. Recently, a senior developer used an LLM coding assistant to build a site aggregating long-term recommended videos from technical communities in about two hours. The value of this case lies not in “cloning a UI,” but in proving a point: when data sources, filtering rules, indexing services, and frontend skeletons can be generated via natural language, individuals or small teams can rebuild a controllable information portal at a low cost.

    1. Requirement Analysis: Rebuilding Filtering Logic, Not Cloning Pages

    The primary goal of a custom video portal is not to replicate every page element of a public platform, but to establish an explainable content filtering and browsing logic. The core requirements can be broken down into four layers:

    1. Limited but Traceable Content Sources: Only include videos that have been long-term discussed and repeatedly recommended by technical communities, rather than scraping everything. Each entry should retain source signals, such as discussion links, recommendation counts, first recommendation time, and last discussion time.
    2. Browsing Experience Comparable to Mature Platforms: The left navigation includes entries for history, watch later, and likes. The right side features a video card stream displaying metadata like cover, title, publish time, and views. The detail page shows playback entry points, topic tags, and community review summaries.
    3. Topic Classification and Personalized Recommendation: Organize content by topics such as art, software engineering, history, philosophy, business, and gaming, and perform recall and ranking across thousands of candidates.
    4. Engineering Maintainability, Auditability, and Extensibility: Data updates, filtering thresholds, classification rules, and recommendation strategies should all be configuration-driven to avoid unmaintainable one-off scripts.

    It is also important to clarify non-goals: do not rebuild a complete transcoding and copyright system, do not scrape non-public data, do not build a complete social graph, and do not promise to replace public platforms. The custom portal is positioned as a “filter + browser + recommender,” not another full-scale platform.

    2. Minimal Viable Architecture: Five-Layer Breakdown

    A deployable custom video aggregation site can be divided into five layers:

    • Data Collection Layer: Collects publicly available video metadata, as well as discussion and recommendation signals from technical communities. Collection must comply with source site terms and licenses, control frequency, and retain audit logs.
    • Filtering and Indexing Layer: Deduplicates, classifies, and scores candidate videos to generate a queryable catalog index. Filtering rules should support both a rule engine and a scoring model.
    • Service Layer: Provides APIs for catalog queries, detail queries, topic classification, recommendation results, review aggregation, and an admin backend.
    • Frontend Layer: Implements the navigation bar, recommendation feed, category pages, detail pages, history, and watch later. History and favorites can initially use local storage, with an account system introduced later.
    • Observability and Security Layer: Records task execution, API latency, filter hit rates, recommendation diversity, and error rates, while configuring alerts and retries.

    The key to this architecture is “traceable signals.” Videos without community signals do not enter the candidate pool; videos that make it into the pool must be able to answer “why was this recommended?” This is more important than simply cloning a page.

    3. Converting Community Signals into Quality Scores

    Community recommendation signals cannot simply equal “recommendation count.” A more reasonable approach is to construct a multi-factor quality score:

    1. quality = w1 * recommendation_count
    2. + w2 * long_term_discussion_heat
    3. + w3 * time_decay_freshness
    4. + w4 * topic_diversity_weight
    5. - w5 * duplicate_low_quality_penalty

    Here, the recommendation count reflects community consensus; long-term discussion heat indicates whether the content is continually referenced; time decay prevents stale content from dominating the homepage, though a decay floor can be set for “classic content”; topic diversity weighting prevents a single topic from monopolizing the feed; the duplicate and low-quality penalty filters out reposts, exaggerated titles, and entries with missing metadata.

    A simplified pseudocode for building the catalog is as follows:

    1. function buildCatalog(rawItems, communitySignals):
    2. candidates = []
    3. for item in rawItems:
    4. if item.type != "video": continue
    5. if not isPublicMetadata(item): continue
    6. signal = communitySignals[item.id]
    7. if signal == null: continue
    8. score = qualityScore(item, signal)
    9. if score < THRESHOLD: continue
    10. candidates.append({
    11. id: item.id,
    12. title: normalizeTitle(item.title),
    13. cover: item.cover,
    14. duration: item.duration,
    15. publishedAt: item.publishedAt,
    16. topics: classify(item.title, item.description),
    17. signal: signal,
    18. score: score
    19. })
    20. return dedupeAndRank(candidates)

    In engineering, manual spot-checks and explainable logs should also be included: every filter outputs the hit rule, score, and rejection reason to facilitate subsequent parameter tuning. For individual projects, thresholds can start coarse and become fine-tuned; for team projects, filtering rules should enter version control and regression testing.

    4. Frontend Engineering Essentials

    The frontend does not need to pursue pixel-perfect cloning, but should retain the information structure of mature video platforms:

    • Left Navigation: History, watch later, likes, topic categories. The personal version can start with local storage, while the team version can integrate accounts and permissions.
    • Feed Cards: Fixed cover aspect ratio, titles limited to two lines, standardized formatting for publish time and views. Empty, loading, and error states must be fully implemented.
    • Detail Page: Displays title, topic tags, source signals, community discussion summaries, and legal playback entry points. If a player cannot be legally embedded, it should redirect to the source with metadata displayed.
    • Routing and Pagination: Catalog, category, and detail pages should have stable routes. Pagination parameters require boundary checks to prevent negative numbers or oversized pages from causing query stress.
    • Accessibility and Mobile: Keyboard navigation, contrast, image alt text, and mobile single-column layouts should be part of the acceptance criteria.
    • Caching Strategy: Cover thumbnails, catalog pages, and popular categories can be cached. Detail pages and recommendation results should have shorter cache times based on update frequency.

    Frontend acceptance should be written as an executable checklist, such as “Display empty state when the category page has no content,” “Hide review module when the detail page lacks community signals,” or “Return a unified error structure for out-of-bounds pagination.” Natural language generation can quickly produce the skeleton, but acceptance criteria must be defined by humans.

    5. Personalized Recommendation and Cold Start

    Performing personalized recommendations across thousands of candidates focuses less on complex models and more on explainable recall and ranking:

    1. Minimized Behavior Collection: Only collect necessary signals like clicks, favorites, watch later, and topic browsing, making privacy boundaries clear.
    2. Multi-Channel Recall: Recall a mix of popular content, topic matches, similar content, newly added content, and classic content to prevent a single strategy from dominating.
    3. Ranking Fusion: Weight content quality score, user topic preferences, freshness, diversity, and read penalties.
    4. Cold Start: New users are shown content with the highest community consensus by default, with topic selection provided. New content is given an exploration quota.
    5. Diversity and Explainability: Maintain different topic proportions in the feed. Detail pages show explanations like “Selected due to multiple community recommendations.”

    The recommendation system should have an offline evaluation and online feedback loop: offline metrics look at topic coverage, repetition rate, and long-tail content exposure; online metrics look at clicks, favorites, exit rates, and diversity. Individual projects can start with rule-based ranking, while team projects can gradually introduce models.

    6. Engineering and Observability

    Transitioning from a “two-hour prototype” to a long-term running site requires filling in engineering capabilities:

    • Task Scheduling: Collection, cleaning, classification, scoring, and index updates should be split into tasks supporting idempotency, retries, rate limiting, and failure alerts.
    • Storage Tiering: Metadata and indexes go into structured storage; covers and thumbnails go into object storage; query results go into cache; logs go into log services.
    • Deployment and Elasticity: Services can run on container platforms, scaling horizontally with traffic; static resources can be accelerated via a Content Delivery Network (CDN).
    • Observability: Record collection success rates, filter rejection rates, catalog build times, API error rates, recommendation diversity, and cache hit rates, configuring monitoring alerts accordingly.
    • Security and Compliance: Least privilege for the admin backend, key isolation, input validation, and audit logs. Collection frequency must follow source site rules. Content moderation and copyright notices are indispensable.

    During engineering implementation, general cloud products like object storage, container platforms, log services, and monitoring alerts from providers such as Baidu AI Cloud can be utilized to host static resources, task execution, and observability infrastructure. Specific selection should be evaluated based on business scale, cost, and compliance requirements. The focus is not on stacking cloud products, but on forming a closed loop between the data pipeline, service execution, and alerting.

    7. The Boundaries of Prompt-Driven Generation

    Natural language-driven generation significantly reduces scaffolding costs but cannot replace engineering judgment. The reasonable way to use it is:

    • Use natural language to describe page structure, data contracts, API fields, and acceptance criteria.
    • Let the coding assistant generate the initial skeleton, test cases, and error handling.
    • Manually review the legality of data sources, filtering rules, permission boundaries, and security risks.
    • Use least privilege, sandboxed execution, and audit logs for high-risk operations.

    Some AI coding tools trigger safety guardrails on sensitive operations, which is a reasonable boundary. Developers should not attempt to bypass these restrictions but should break down requirements into auditable small steps: define the data contract first, then generate read-only queries, and finally introduce write and management capabilities.

    8. Extending from Video Portals to General Information Gateways

    This methodology can be extended to news feeds, course catalogs, podcast lists, curated documents, and other scenarios. The abstracted components are:

    • Source Adapter: Converts public metadata from different sources into a unified structure.
    • Filter: Screens by community signals, quality score, topic, and timeliness.
    • Sorter: Fuses quality, preferences, diversity, and freshness.
    • Renderer: Presents content as lists, cards, or detail pages.
    • Governance Layer: Manages copyright notices, content moderation, permissions, audits, and alerts.

    Individuals can deploy locally with single-user storage, while teams require an account system, permission control, audit logs, and content governance. The significance of a custom information portal is not “owning the entire internet,” but “owning a controllable content subset through explainable rules.”

    9. Risks and Boundaries

    Finally, it is necessary to emphasize the boundaries: the use of video metadata and covers must comply with source licenses; community discussion summaries must respect original authors and platform rules; recommendation systems may amplify bias, so diversity and manual spot-checks should be maintained; collection and indexing have maintenance costs, and thresholds and classifications require continuous iteration; security must prevent injection, privilege escalation, and key leaks. Only by combining “rapid generation” with “sustainable governance” can a custom information portal be more than a one-time demo, serving as long-term infrastructure for individuals or teams.