Building a Personalized Content Aggregation Site with LLM-Assisted Programming
This article shows how to use LLM-assisted programming to build a personalized content aggregation prototype. It covers the problem with platform-driven recommendations, a six-layer architecture, a source filtering process with traceable evidence, an explainable ranking formula, frontend and API design, a structured AI-assisted development workflow, and security and quality considerations.
1. Problem Definition: From “What the Platform Recommends” to “What I Choose to See”
The core tension of content platforms is simple. Users want to find information that interests them and that they can trust, efficiently. Platforms, however, tend to use algorithms to maximize retention and engagement. These goals do not always align. When a recommendation feed is filled with sensational cover images, repeated topics, and high-engagement content, users can feel that they have no control over how they enter information.
The lesson from the original case is that LLM-assisted programming lets a developer build a working content aggregation prototype in a very short time. This makes it possible to take back part of the information entry point from platform recommendation feeds. This article does not aim to replicate a specific video platform, and it does not review a particular product. It addresses a general technical problem: how to build a browsable, categorizable, recommendable, and maintainable personalized content aggregation site using a traceable source filtering mechanism.
The design goals fall into four points:
- Controllable sources: Aggregate only content that has passed an allowlist or a community signal filter, rather than crawling everything.
- Traceable evidence: Each item shows its source basis, recommendation records, and discussion entry point.
- Usable experience: Provide basic interactions such as a recommendation feed, category browsing, detail pages, and linked comments.
- Maintainable engineering: Decouple the data pipeline, APIs, frontend, and deployment so the system can be extended later.
Non-goals matter just as much. The project does not replace copyright holders, bypass access controls, store full copyright-protected content, or promise production-grade availability. The work takes about two hours and produces a prototype, not a production system.
2. Overall Architecture: Turning “Replicating a Page” into a Data and API Problem
Many developers, when they hear “quickly replicate a site,” first think about the frontend layout. In practice, the page is only a shell. Usability depends on the data contract and the filtering logic. A workable architecture can be divided into six layers:
- Data source layer: Public APIs, licensed subscription feeds, manually imported lists, and community recommendation records.
- Collection and cleaning layer: Rate-limited crawling, field normalization, deduplication, and media reference parsing.
- Storage and indexing layer: Content metadata, source evidence, category tags, search indexes, and recommendation features.
- Ranking layer: A blend of source credibility, community signals, time decay, user interest, and diversity.
- Application API layer: General-purpose interfaces for the recommendation feed, category lists, item details, linked comments, and search.
- Frontend and operations layer: Navigation bar, recommendation feed, detail pages, caching, logging, monitoring, and alerting.
The key principle is that the frontend does not access external data sources directly. It reads standardized, cached data through backend aggregation APIs. This lets the system apply filtering rules consistently and keeps source access policies out of the client.
3. Trust Filtering: Define “What Content Is Allowed In” First
The most common failure of a personalized aggregation site is not a poor design. It is an uncontrolled data source. Without filtering, crawling quickly leads to duplicate and low-quality content, copyright risk, and content whose origin cannot be traced. For this reason, filtering should be designed before the recommendation logic.
A general trust filtering process works as follows:
- Source allowlist: Accept only public APIs, licensed subscription feeds, or manually maintained lists that explicitly permit aggregation.
- Community signal threshold: Content from a source must be recommended or discussed multiple times in trusted technical communities to reach a minimum signal strength.
- Resolvable media reference: Keep only items for which a media reference or content identifier can be parsed.
- Time window control: Keep historically valuable content, and prevent outdated items from flooding the feed.
- Deduplication and normalization: Deduplicate by title, media reference hash, and semantic similarity.
- Evidence chain retention: Record metadata such as recommendation count, first recommendation time, most recent recommendation time, and discussion entry point.
The pseudocode can be expressed as:
function build_catalog(source_feeds, community_signals):items = []for feed in source_feeds:for post in fetch_with_rate_limit(feed):if not is_allowed_source(feed):continuesignal = community_signals.lookup(post.media_ref)if signal.recommend_count < MIN_RECOMMEND_COUNT:continuemedia_ref = extract_media_ref(post)if media_ref is None:continueitem = normalize(post, media_ref, signal)items.append(item)return dedupe_by_media_and_semantic_similarity(items)
The key point of this logic is not the specific thresholds. It is the order: filter first, then rank. If ranking happens before filtering, untrusted sources contaminate the recommendation system. Without an evidence chain, it becomes hard to explain why a given item appears.
4. Content Normalization and Indexing: Making Different Sources Speak the Same Language
Field names, timestamp formats, and category systems differ across sources. A unified content model is needed. For example:
{"id": "internal_id","title": "normalized_title","summary": "short_summary","media_ref": "media_reference_hash","tags": ["topic_a", "topic_b"],"source_evidence": {"recommend_count": 12,"first_seen_at": "timestamp","last_seen_at": "timestamp","discussion_ref": "internal_discussion_id"},"created_at": "timestamp","popularity": 0.0}
The indexing layer should support, at a minimum, filtering by topic, sorting by time, filtering by source credibility, and keyword search. For personalized recommendations, a lightweight feature index can record behaviors such as topics a user has clicked, favorites, and “watch later” items. At the prototype stage, an inverted index with simple rule-based ranking is usually enough. Vector retrieval or more complex ranking models can be added later.
Deduplication requires a combination of strategies. Media reference hashes handle exact duplicates, normalized titles catch near-duplicates, and semantic similarity handles different wordings of the same content. Deduplication should preserve “merged evidence” instead of simply discarding items, so the detail page can show recommendation records from multiple sources.
5. Recommendation and Ranking: Explainability Matters More Than Opaque Precision
The recommendation feed does not need complex models at the start. An explainable hybrid ranking formula suits a prototype better:
score(user, item) =w1 * source_trust+ w2 * log(1 + community_recommend_count)+ w3 * time_decay(item.created_at)+ w4 * user_topic_affinity(user, item.tags)+ w5 * diversity_penalty(item, recent_items)
Source credibility comes from the allowlist tier and the completeness of the evidence. Community recommendation strength reflects the signal of repeated recommendations. Time decay keeps stale content from occupying the homepage for long. User interest can build up from behaviors such as clicks, favorites, and topic subscriptions. The diversity penalty prevents the same topic from appearing repeatedly in a row.
During cold start, the system can combine topic browsing, recent popular items, and high-credibility sources. Each recommendation should carry an explanation field, such as “From an allowlisted trusted source,” “Recommended several times recently,” or “Related to topics you have favorited.” Explainability builds user trust, and it also makes the ranking logic easier to debug.
