<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Abdulalmas on Medium]]></title>
        <description><![CDATA[Stories by Abdulalmas on Medium]]></description>
        <link>https://medium.com/@abdulalmas842?source=rss-5ddbaab481b5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*JmZh5FtnXe85pauN</url>
            <title>Stories by Abdulalmas on Medium</title>
            <link>https://medium.com/@abdulalmas842?source=rss-5ddbaab481b5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 07:48:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abdulalmas842/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Context.dev Deep Dive]]></title>
            <link>https://medium.com/@abdulalmas842/context-dev-deep-dive-3b008199b8f5?source=rss-5ddbaab481b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b008199b8f5</guid>
            <category><![CDATA[web-context]]></category>
            <category><![CDATA[data-extraction]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[model-context-protocol]]></category>
            <category><![CDATA[web-scraping]]></category>
            <dc:creator><![CDATA[Abdulalmas]]></dc:creator>
            <pubDate>Tue, 15 Sep 2026 09:04:13 GMT</pubDate>
            <atom:updated>2026-09-15T13:49:07.273Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a3r4njCK9l51XBAJH_vauA.png" /></figure><h3>Context.dev Deep Dive</h3><p>I wanted to understand <a href="https://context.dev/">Context.dev</a> in depth.</p><p>At first, it seems like it’s doing web scraping, which others like Firecrawl already do. But I wanted to look deeper into it and understand it from the very start.</p><p>So I approached Context.dev through six questions:</p><ol><li>Why does it exist?</li><li>What does it provide?</li><li>Who uses it, and why?</li><li>What infrastructure enables it?</li><li>What makes this difficult at scale?</li><li>Where could this go?</li></ol><p>I also made a video walking through how I approached this deep dive and the reasoning behind it:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FE5Gm2MJFE5M%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DE5Gm2MJFE5M&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FE5Gm2MJFE5M%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/45d64b1cbe594ce88ffce0f987849c12/href">https://medium.com/media/45d64b1cbe594ce88ffce0f987849c12/href</a></iframe><h3>1. Why does Context.dev exist?</h3><p>To understand this, we have to go back to the beginning.</p><p>About a year and a half ago, Yahia Bakour started <strong>Brand.dev</strong>. The initial product was focused on brand intelligence — providing structured brand and company data through an API.</p><p>As it grew, customers started asking for more features, and the product slowly moved beyond just brand intelligence. Eventually, it had outgrown what Brand.dev originally was and was moving more towards <strong>context</strong>.</p><p>That’s when Yahia rebranded it to <strong>Context.dev</strong>.</p><p>Before doing this deep dive, one of my main questions was: <strong>how is Context.dev different from Firecrawl?</strong> Both scrape and crawl the web and return structured information.</p><p>As I looked deeper, I realized that this wasn’t necessarily a distinction that was planned from the beginning. Context.dev had evolved into it.</p><p>Brand.dev had started by solving a specific problem: getting structured information about companies and brands, which is often scattered across the web. From there, the same idea expanded to other kinds of context.</p><p>The broader problem is simple:</p><p><strong>How do you turn the messy, changing web into usable context for software and AI agents?</strong></p><p>An application could build all of this itself, but then it has to deal with crawling, scraping, JavaScript rendering, proxies, retries, blocked pages, extraction, and everything else that comes with it.</p><p>Context.dev provides that as an API instead.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VSlEh_QreHVzjASVg1YZhA.png" /></figure><h3>2. What does Context.dev provide?</h3><p>At a high level, Context.dev provides APIs for turning web content into information that software can use.</p><p>The main things it provides are:</p><ul><li><strong>Web retrieval</strong> — scrape pages, crawl websites, and discover URLs.</li><li><strong>Structured extraction</strong> — turn web pages into structured JSON based on a schema.</li><li><strong>Brand and company intelligence</strong> — get structured information about companies and brands.</li><li><strong>Product and visual data</strong> — extract product information, images, screenshots, and website design information.</li><li><strong>Monitoring</strong> — keep checking websites and detect changes.</li></ul><p>The simplest example is scraping.</p><p>Give Context.dev a URL and it can return the page as Markdown or HTML. That sounds simple, but behind it are things like JavaScript rendering, proxies, retries, blocked requests, and cleaning the resulting content.</p><p>Structured extraction takes this a step further. Instead of just asking for a webpage, you can give it the structure you want:</p><pre>{<br>  &quot;company&quot;: &quot;...&quot;,<br>  &quot;pricing&quot;: &quot;...&quot;,<br>  &quot;founded_year&quot;: 0<br>}</pre><p>Context.dev can then find and process the relevant pages and return the information in that format.</p><p>The same idea is used for other types of data. Product pages can be turned into structured product information, companies into brand data, and websites into visual information like colors, fonts, and design systems.</p><p>There is also monitoring, where Context.dev repeatedly checks a website and tells the application when something changes.</p><p>So even though there are a lot of different APIs, the basic idea is pretty simple:</p><p><strong>Take messy information from the web and turn it into structured context that software and AI agents can use.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UbtOkFcCYv6NwJtB8D4ZfA.png" /></figure><h3>3. Who uses it and why?</h3><p>Context.dev is mainly used by software companies, especially AI products, that need web or company context but don’t want to build all the infrastructure for getting it themselves.</p><p>There are a few common use cases:</p><h3>AI agents that need the web</h3><p>Agents often need current information that isn’t in the model. Context.dev gives them access to websites, crawling and web data through an API.</p><h3>Products that need company context</h3><p>Company information is scattered across the web. Context.dev can take something like a domain, company name or email and return structured information about the company.</p><h3>Products that use web data</h3><p>Some products use web data as an input to their own systems. They need things like crawling, extraction, document parsing or monitoring, but don’t want to build all of that themselves.</p><h3>Products that need visual or brand information</h3><p>Context.dev can also provide things like logos, colors, fonts and other information about a company’s visual identity.</p><h3>Enrichment and research</h3><p>It can also be used for things like identifying merchants from transaction data or adding industry information to companies.</p><p>So the common pattern is pretty simple:</p><p><strong>The product needs the context, but the context isn’t the product itself.</strong></p><p>Instead of building and maintaining the crawling, scraping, rendering, proxies, retries and extraction themselves, they can use Context.dev as the layer that provides it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bCnzBWC3zgMppuuhi3DQgw.png" /></figure><h3>4. What architecture enables it?</h3><p>At this point, I wanted to understand what could actually sit behind these APIs.</p><p>One important note: <strong>Context.dev’s actual architecture isn’t public.</strong> So what follows is my own system-design inference based on the product’s behaviour, documentation, and the problems it needs to solve. I’m not claiming this is their actual implementation.</p><h3>Problem Statement</h3><p>Developers and AI applications need reliable, structured and up-to-date context from the real world, much of which exists on the web.</p><p>Building this yourself means dealing with crawling, scraping, JavaScript rendering, browser automation, proxies, retries, failures, caching, extraction and large-scale processing.</p><p>So the problem is essentially:</p><p><strong>How do you turn the messy, changing web into usable context without every developer having to build this whole pipeline themselves?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5xOwpyF-WhK7R3YkuhjweQ.png" /></figure><h3>Functional Requirements</h3><p>From what Context.dev provides, the system needs to support three broad areas:</p><p><strong>Web context</strong></p><ul><li>Scrape and crawl websites</li><li>Discover URLs</li><li>Extract structured data</li><li>Extract images and screenshots</li><li>Parse documents</li><li>Extract product data</li></ul><p><strong>Brand / company context</strong></p><ul><li>Retrieve brand data</li><li>Resolve companies from domains, names, emails or tickers</li><li>Extract design systems and logos</li><li>Enrich and classify companies</li></ul><p><strong>Automation</strong></p><ul><li>Batch scraping</li><li>Website monitoring</li></ul><h3>Non-Functional Requirements</h3><p>The system needs to be reliable even though the web isn’t. Pages can timeout, fail, change, block requests or fail during JavaScript execution. One bad page shouldn’t bring down an entire crawl.</p><p>It also needs to scale across many customers and simultaneous requests, including large asynchronous crawls.</p><p>Then there is freshness. Web data gets stale, but fetching everything again for every request would be expensive.</p><p>And finally, cost matters. Browser rendering, proxies and retries are much more expensive than a normal HTTP request, so the system needs caching, deduplication and some way of choosing the cheapest path that works.</p><h3>Scale Assumptions</h3><p>For the design, I assumed roughly:</p><ul><li><strong>1,000 customers</strong></li><li><strong>500 daily active customers</strong></li><li><strong>500K API requests/day</strong></li><li><strong>10K pages per normal crawl</strong></li><li><strong>25K pages for a large async crawl</strong></li><li><strong>500 concurrent crawl jobs</strong></li><li><strong>50K monitoring targets</strong></li></ul><p>These aren’t claims about Context.dev’s internal numbers. They are the assumptions I’m using to reason about what the architecture would need to handle.</p><h3>High Level Design</h3><p>The basic flow I arrived at is:</p><p><strong>Client → API → Orchestrator → Queue → Workers → Storage/Cache → Result</strong></p><p>The API handles authentication, validation and rate limits. The orchestrator decides what kind of work needs to happen.</p><p>Expensive work shouldn’t happen inside the API request itself, so it gets pushed into a queue. Different workers can then handle crawling, browser rendering, extraction and other processing.</p><p>The results can be stored or cached and returned through the API, polling or webhooks. For things like monitoring, a scheduler can continuously create new jobs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*blof56mFCXadolv_wI9CPQ.png" /></figure><h3>Deep Dives</h3><p>From there, there are a few parts worth looking at more closely.</p><p><strong>1. Web acquisition</strong></p><p>A normal HTTP request should be the cheapest path. If the page needs JavaScript or is blocking requests, the system can move to browser-based fetching and proxy handling.</p><p>So I’d expect something like:</p><p><strong>HTTP → Browser → Proxy / anti-bot</strong></p><p>rather than using a browser for every page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0PTgjOlOe_na7YCN6pINtA.png" /></figure><p><strong>2. Crawling and URL discovery</strong></p><p>Crawling isn’t just repeatedly fetching links. The system needs to discover URLs, remove duplicates and control how far it goes.</p><p>Sitemaps provide one way of discovering pages cheaply, while link-based crawling handles sites where that isn’t enough. Limits like depth, page count and URL patterns keep the crawl bounded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ujXnFiGitUhF5r2dthFDIQ.png" /></figure><p><strong>3. Browser infrastructure</strong></p><p>Browser workloads are expensive, so I’d keep them separate from the normal API servers.</p><p>A browser worker can run Chromium, execute JavaScript, handle isolated sessions and use proxy infrastructure when needed.</p><p><strong>4. Extraction</strong></p><p>Once the pages are fetched, the raw content needs to become structured data.</p><p>The flow would be something like:</p><p><strong>Pages → Normalize → Extract → Validate → Structured Context</strong></p><p>The interesting part is that extraction can be schema-driven. Instead of writing a parser for every website, the application gives the schema it wants and the system finds the relevant information.</p><p><strong>5. Async processing</strong></p><p>A 25,000-page crawl obviously shouldn’t keep an API request open.</p><p>The API creates a job, the queue distributes pages across workers, and the system keeps track of completed pages, failures and retries. This is what lets large crawls scale horizontally.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4KQ1Ee-5YukKMuQq2qp4TQ.png" /></figure><p><strong>6. Caching and freshness</strong></p><p>The same URL will often be requested more than once, so fetching it again every time doesn’t make sense.</p><p>A cache can reuse previous results, while something like maxAgeMs lets the caller decide how fresh the data needs to be.</p><p><strong>7. Monitoring</strong></p><p>Monitoring is basically the same pipeline running repeatedly:</p><p><strong>Schedule → Queue → Fetch → Compare → Change → Webhook</strong></p><p>The system needs to keep the previous state so it can determine whether something actually changed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ENe7-bkgOnOZZ-719y0Tmw.png" /></figure><p><strong>8. Reliability</strong></p><p>Finally, failures have to be expected.</p><p>A page can fail while the rest of the crawl succeeds. Transient failures can be retried, persistent ones marked as failed, and fetching can escalate from a simple request to a browser or proxy when needed.</p><p>The important thing is that <strong>failure of one page shouldn’t mean failure of the whole job.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_S_STVfFM3ICf4Jgt2iBgQ.png" /></figure><h3>5. What makes this difficult at scale?</h3><p>The architecture itself doesn’t look that crazy. The difficult part is when you have to do this across millions of pages and thousands of requests.</p><h4>The web is unreliable</h4><p>You don’t control the websites. A page can timeout, disappear, change, rate-limit you, or just block you.</p><h4>Browsers are expensive</h4><p>If you’re doing this across millions of pages, running Chromium for a lot of them gets expensive pretty quickly in terms of CPU and memory.</p><h4>Anti-bot keeps changing</h4><p>It’s not just about rotating IPs. Websites can look at fingerprints, behaviour, request patterns, sessions, and a lot of other things.</p><h4>Crawls can get out of hand</h4><p>One website might have a few pages, another might have thousands. So you need limits around things like depth, page count and concurrency.</p><h4>Freshness isn’t free</h4><p>If the data needs to stay fresh, you have to keep going back to the web and fetching it again.</p><h4>Extraction can go wrong</h4><p>Even after getting the page, you still have to figure out which information matters and put it into the right structure. The answer isn’t always obvious.</p><h4>Everything has a cost</h4><p>Browsers, proxies and retries make things more reliable, but they’re also more expensive. So you’re constantly balancing <strong>accuracy, freshness, latency and cost</strong>.</p><p>And when you’re doing millions of requests, even a small failure rate means a lot of failed pages. You can’t expect everything to work every time, so retries and partial results become important.</p><p>I think that’s what makes this difficult.</p><p>None of these problems are especially unusual by themselves. <strong>It’s having to deal with all of them at the same time that makes it hard.</strong></p><h3>6. What could be the future?</h3><p>I think at this point, we can expect the use of AI agents to increase significantly.</p><p>As we transition more of our work to agents, the demand for context will increase as well. Agents need information about the world to actually do things, not just the knowledge already inside the model.</p><p>So Context.dev’s future looks pretty good to me.</p><p>Another interesting part is that, today, the context is mainly limited to the web.</p><p>But as agents become more common, they will be everywhere — inside applications, tools, databases, and other systems. There could be an opportunity for Context.dev to provide context to these agents from more than just the web.</p><p>The web could be the starting point, rather than the limit.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b008199b8f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>