← all posts

Building a system which knows what's trending around the world

16 October 2026

eart

Where it all started

During the 2026 FIFA World Cup, I had a discussion with our founder. What if we could see everything about the world cup in one place? The live scores, news headlines, merch prices and crowd sentiment all accessible in one click.

That started project Hypestream.

I had a short deadline to build this since we were already halfway through the world cup and with the help of Claude, I managed to ship it before the world cup final

Hypestream was built with a decoupled architecture. The core scraping engine had no knowledge of the frontend. It only collected information from our predefined sources and sent them to the UI adapter which normalized, filtered, validated, deduplicated, aggregated and ranked the raw output before sending the signals to the frontend.

The architecture:

worldcup architecture

The most important part of the architecture was the scraping engine. It followed a 3 tiered approach to get information from various sources:

The 3 tiers:

  1. XHR/Hydrating sniffing: Find the JSON that the page reads to hydrate itself and call it directly. Used for match scores and merch prices.
  2. High Frequency Polling: Poll the sources frequently to find out what’s new. Used for news RSS and social posts.
  3. LLM Chunking: Get the markdown of the website using Crawl4AI and then use LLMs to create relevant chunks and pull the right fields. Used to extract important entities and content from big articles.

Using these 3 tiers we were able to extract information from all sources and build a robust system which could be extended beyond the world cup.

What hypestream 1.0 looked like:

Pasted image 20261019190839

After the world cup

After the world cup ended, I wanted hypestream to discover any trend around the world and build a feed around it.

That started hypestream 2.0.

Half the work was already done. We already had a scraping engine in place with an adapter that could connect to the frontend. We just needed to change the frontend and discover the right sources to scrape. Easy right?

Well, i discovered that figuring out the right trends across multiple categories was not as easy as I thought.

My initial instinct was to go to google trends, get the trending keywords and build the feed around it. I selected 20 countries, got the most trending keywords across 6 categories and then deduplicated the keywords, ranked them and searched the internet for sources that could build the feed.

This approach allowed me to discover trending search terms but it did not give a full picture of the actual trends around the world. One big problem was that the system was easily influenced by one country’s spike: If let’s say a lot of people in India search about a local cricket match then it would rank higher than a genuine trend with lower volume of searches.

Another problem with the approach was that it didn’t work for trends in niche areas such as technology and science. A big science paper or an AI model/technology release might not necessarily be searched a lot on google and may not show up in Google Trends over something like a product release or a product outage.

Pasted image 20261019205600

You can see how unhelpful some of the results are (Why is Kareena Kapoor in technology!?)

These problems made me realize that search spikes by themselves don’t give a complete picture; they’re only one piece of the entire puzzle.

The full puzzle:

I quickly realized that to find real trends, I had to look at multiple surfaces.
So I added a lot more sources to discover trends, including:

With a plethora of surfaces to discover trends from, I had to use an LLM to split the raw candidates into themes and group them into trends. I then built a pipeline to validate each trend by checking if it had any Google News articles and linked it to a Wikidata entity which helped us get a real ID for our trend and a reader count for the week.

Finally, I ranked all the validated trends through a formula where we take into account the raw attention it got, the spike in its views and how many languages/countries it spiked in.

Trend discovery flow:

trend discovery

With the right trends discovered, the challenge now was to find the articles covering the trends properly.

I split the hydration of trends into 2 phases:

  1. Prewarm the trend before anyone taps on it: Right after the board is built, we create a spec of the trend: its name, description, category, news query, etc. We then do a quick search to find some Google news articles and use an LLM to create a better spec with more search queries and an AI briefing about the topic.
  2. Full Genesis: When a user opens a trend, we launch the full hydration in waves:
    • First we go through Google, Bing, the category-specific registry, RSS and GDELT.
    • Then we gauge public sentiment by going through Mastodon, Bluesky, Reddit and Youtube comments.
    • Finally we decode all Google News articles and display the information to the user.

To keep the trends fresh, I implemented a 15 minute refresh cycle to get new content from the discovered sources.

Putting it all together:

I now had a trend discovery algorithm and a hydration pipeline but I was not happy with the final user experience. I didn’t want the users to read 5-6 similar article headlines just to learn 10% more about a topic. I wanted the user to get up to speed on any topic in 2 minutes.

So I added AI takes to the home page. Each take is generated based on a topic’s real cards. The AI goes through multiple articles and generates its own take grounded in actual information.

With the AI takes in place I finally had the version of hypestream I was happy with :p

The final look:

Pasted image 20261020131711
Pasted image 20261020131756

In the end, it turned out pretty well. There are still plenty of things I want to improve so I won’t say this is the final version yet :p

Thank you for reading my first real blog all the way through!