---
author: R. S. Doiel
dateCreated: 2026-11-26T00:00:00Z
dateModified: "2026-12-05"
description: "A deeper exploration of the Markdown Web, what's there and how it \nmight be enhanced through explicit support of indexing and search\n"
draft: true
keywords:
    - search
    - indexing
    - markdown web
postPath: blog/2026/12/05/rethinking_web_search_p2.md
pubDate: Sat, 05 Dec 2026 16:59:38 -0800
title: Rethinking static site search for the Markdown Web, Part 2

---



# Rethinking static site search for the Markdown Web, Part 2

By R. S. Doiel, 2026-11-26 to 2026-12-05

I have three projects experimenting with the Markdown Web

- [CMarkBrowser](https://rsdoiel.github.io/cmarkbrowser/index.md), a terminal Markdown Web browser, a place where I try experimental features centered around bookmarking, indexing and search
- [CMarkFind](https://rsdoiel.github.io/cmarkfind/index.md), An indexing and search platform. It works as a cli, can index local and remote Markdown content and provides for managing sets of partial indexes (one set per site)
- [Antenna App](https://rsdoiel.github.io/antennaApp/index.md), my feed oriented content management system. It's what allowed me to quickly turn my GitHub hosted website into something much more Markdown Web friendly

It's proving to be a fun place to explore and it feels allot like the early web and the early blogging period when RSS was invented. The Markdown Web feels more distributed, more independent much more interesting.

The Markdown Web is about writers and readers with a clear boundary around those roles and responsibilities. Search is important to both. It think search, search control by individual writers and readers, will be an important disguising point for the Markdown Web.

It's trivial for a language model to generate slop content. That's true for HTML and unfortunately is likely to be true on the Markdown Web. This makes we feel that a personal search engine is all the more important. You control what indexes you're searching or creating so you also control the noise level that occurs in search. This isn't a new problem, just a problem that becomes more obvious when even a small language model can be used to generate megabytes of text nonsense quickly.

In the past when new centralized search engines arose there was a sweet spot period. The sweet spot happened when search results aligned your queries. Then overtime the results would become noisy. This happened because the indexes grew to encompass more of the Web. It grew worst because of the game called "search engine optimization".  The a single search box using a page weight algorithm was an early response to this a noisy Web. Today the noise problem is due to the fact that search engine companies depend on an advertising and surveillance business models. That shifts there purpose from providing good results to selling attention spans and the whole thing starts to implode. I think we can mostly avoid this if as individuals and organizations on the Markdown Web we can break incentive for centralization and encourage better curation. 

How do you bootstrap responsible search curation on the Markdown Web?

I think you can bootstrap by providing easy turn-key systems that support indexing locally, indexing remote sites and sharing the resulting indexes on your local network or potentially on the public Internet. The reason I emphasize turn-key is it has to be simple to do and simple to manage. Everyone is busy. Creating, updating and publishing indexes is a big ask and for many people a new one. I also think Our alternative search should move us collectively towards a more distributed, opt-in, relationship with the content we want to search.  The tooling around search, it's indexes and publishing them is what could enable an ecosystem providing a rich search capability with a minimum effort of those writing and reading the Markdown Web.

In the HTML Web we've taken steps towards this. The Open Search Description Format made it possible to add individual sites' search implementation to your browser's search engine list. This is very similar to the `/.well-known/bonbon.json` supported in the BonBon browser. We already have robots.txt files that can signal a search bot how to be polite. We have HTTP response headers that can guide the bot to remain polite during a crawl. We need to embrace those for sites not publishing downloaded index sets. If we don't we risk pushing those sites off-line. This is why I think sharing indexes becomes an important component of our search ecosystem. Each site can folder creating and update it's own published indexes (this is happening for static site on the HTML Web via PageFind). Shared **index sets** provide the possibility of **aggregated search results** across sites.

What's an index set? What do I mean by downloadable? PageFind was a significant innovation over the early browser side search solutions pioneered by Oliver Nightingale with [LunrJS](https://lunrjs.com). Oliver was the first successful attempt at browser side site search I encountered. With a little JavaScript you could build a sites' search index as a JSON documents. You could then use the JSON index browser site with a little more JavaScript to provide site search. The trouble with LunrJS was a cost in download time as the index grew in size. 

The larger the JSON index file got the worse the user experience was go to time for search to be available. In my experience when your site had more than about 5,000 documents, the JSON indexes it was getting very slow. By 10,000 documents, it was beyond my tolerance limit. Most static sites are small. The incentive to tacky large sites was low. Things stayed this way for quite some time. The cool thing was LunrJS freed us from relying on running a service like Solr or handing the problem off to a commercial provider.  We focus on curating our static site and still got site search along with it. The cool thing about static site search was you get include an Open Search Description Format file and your site could be treated as if it was a hosted search provider. The trouble was your search engine only search a smaller number of objects.

PageFind broke through that barrier by partitioning the search indexes and used an auto complete mechanism to trickle feed only the partial indexes needed for search query being typed. This allowed for searching much larger sites. An addition feature was PageFind could aggregate the indexes published across multiple sites. Like LunrJS, you can point at your browser page search engine like other hosted search providers. By aggregating you can build large index sets indexing a site with 100,000 HTML documents. Your browser never loads the whole index, it just loads what is needed. Similarly by providing index sets the indexing process is scoped smaller so can build very quickly. It doesn't require a massive machine, many CPUs or an extraordinary amount of RAM. I've index my personal websites using PageFind on a Raspberry Pi Zero 2W before. It's not as fast to index as it is on my Pi 500+ plus but it does get the job done and I can carry that Pi in my pocket along with a batter pack to run it.

In my [previous post](/blog/2026/11/28/rethinking_web_search_p1.md), I speculated about doing this for the Markdown Web. Embed the search engine in the Markdown Web browser. The turn-key search system is responsible for creating the indexes. The browser can optional cache the requested partial indexes or download the whole set from a site. This will allow us to have a personal search engine with a indexed of what I estimate can be up to 100,000 Markdown documents. This covers most sites. The trouble is we now have to make the choice between aggregating a bunch of small sites before we hit the approximately. 100k ceiling or live with separate index set aggregations to handle larger site (say Wikipedia sized sites). How do we raise the ceiling?

The tool we use to provide the indexing can also host the search engine too. As long as the tool is easier to run than Solr or OpenSearch we can aggregate much larger collections of index sets. We can even put such a search service on a dedicated device on our local home networks (much like we do with media servers). The trick is to keep it really simple while still supporting a hybrid of local and remote indexes as needed.

This is where the `/.well-known/bonbon.json` file comes in handy. You can point at the search service hosting your site, you can point at some place else. In a local Web that could be a dedicated machine or the machine you're running your CMS on. It's up to you. The browser embedded search engine can defer the query to the external source, the service, to get the result. That search service, because it doesn't run under the constraints of the browser, can aggregate a much large collection of index sets.

But wait, what about the search web form, the Markdown Web doesn't support Web forms? With Google's delivery of a single search box and submit button around the turn of the millennia most people expect very simply search UI. The browser can provide that directly. The Open Search Document or the bonbon.json explains how to submit the search. The Markdown oriented search engine returns the results in Markdown. Now we have search. We have distributed personal search while allowing for hosted search too.

## The gory details

So we generated a set of partial indexes, similar to how the PageFind apps generates indexes for HTML pages. Our indexes also take advantage of any front matter that might travel with the Markdown document. We need something to tie those partial indexes together so the Markdown Web browser knows what's available. For that we just need a manifest file. The manifest file can be generated when the partial indexes are built. We place the manifest and the partial indexes into our staging directory for our static web site and away we go.

Being able to downloading the indexes locally helps allot. A a big part of the time taken for a query to execute in a browser using PageFind like indexes is the time spent retrieving the index over the network. Caching the indexes retrieves speeds things up the next time you search that site. The manifest is small and can be retrieved quickly and the browser can use that to decide when it is necessary to refresh the cached copy.  If it's a site you know you'll repeatedly search, you could tell you browser just to download the whole set. This also means search can work off-line without an internet connection. I think downloading index sets will become important even if local storage is a constraint. A search management tool built into our search and indexing tool could make that management of what is cached, downloaded and only used remotely easier to manage. Maybe easy enough that it will get adopted broadly just as better Web browsers lead to wide adoption[^1].

[^1]: The first web browser I encountered was a terminal based on (pre-Mosaic). It used Emacs keybindings. That left vi editor users out in the cold. Later it was improved allot and that opened doors that challenged Gopher so by the time Mosaic Web Browser arrived the pump was well primed.

My CMarkFind project is about creating a tool that makes it easy to create, curate and consume Markdown search indexes. If I'm lucky it will inspire people to consider the approach and make something far more user friendly. Right now I am only focused on proving that it is possible.

As I get the bugs sorted out in my working prototype I'll start including CMarkFind indexes on my own site. I'm also embedding CMarkFind search engine in my terminal based CMarkBrowser. If I can get that working smoothly I'll see if I can add it to BonBon.  I also intend that CMarkFind will have a server mode where it can provide the search service hinted at by BonBon's bonbon.json file. Once I have the working the prototype should be able to prove that a hybrid distributed search is workable. 

## What I've learned so far rethinking search.

I have a working prototypes. All are buggy. Think pre-alpha releases on a good day. But they have been useful and I've learned a few things.

- Communicating the nuance around the mechanics of search is challenging.
  - It's challenging to communicate with humans and language model systems
- I need a clean way to explain the partial index approach used by PageFind
  - I've used lots of ambiguous terms, "partial index", "index sets", "collections", "library" and nothing quite captures it. When I show someone how PageFind can work they get it but it's are to explain
- Metadata is going to be really important, Markdown front matter practices are largely under mined
  - this wasn't a surprise, it I think it'll benefit from an active conversation with my library and achieves friends
- Site index sets and site index set collections are going to play a role in the solution. Figuring out what is accessed as needed remotely, what is downloaded and what has to be generated from scratch locally is the tricky bit.
- If Cloudflare proposal for returning Markdown for AI Bot usage was widely adopted, it can be an important signal for indexing the Markdown web content. I don't know about adoption.
- The Markdown Web isn't the HTML Web, it's going to grow differently and I think benefits from being much more distributed rather than centralized
- Having a single tool, CMarkFind, that provides indexing and searching provides a virtuous development cycle
  - turn key solutions can work nicely for developments testing, they are real nice for deploying
- being able to integrate Markdown Web search into other tools is also a big win
- Having a web service configured to provide correct HTTP header responses and to respond correctly to requests with `text/markdown` request it going the a big lift but when it works, it just works

## Markdown Web is a busy place (November 2029)

Dave noted in [scripting news today](https://dave.writersweb.org/scripting/2026/11/29.md) that there is allow of activity around the Markdown Web, more than he realized. I think that's true. I think the Markdown Web is sort of hiding in plain site. The two challenges I see to activate it (as opposed to a series of explicit links) is to have web services, like those that front S3 buckets honor the accepts request header for `text/markdown`. This would go a long way of mitigating hypertext links take you to an HTML page even though there is a perfectly good Markdown one sitting right next to it.

One of the big difference I find as I explore the Markdown from the Web I encountered in the early 1990s is the ability to code and experiment. If you have access to a language model system, you can attempt much more ambitious experiments and cast aside those that don't pan out. This is a result of the fact we already have rendering engines we can use and languages like Go and TypeScript seem to be well understood by language model systems. Dave's BonBon is a really good example of that. By BonBon exists we have a really good reference point to explore from. On my to do list is to try out [Servo](https://servo.org/index.html "HTML site for the Servo project") for rendering the Markdown Web once I get the feature set figured out with CMarkBrowser.

## Almost Markdown Web ready (December 2026)

I think in the coming weeks or months we could see a real explosion of what is both searchable on the Markdown Web. There are allot of sites that already provide Markdown documents alongside their HTML counter parts. Often as an artifact of their build processes.

Here's an example of being almost on the Markdown Web. In my day job I am responsible for a website called <feeds.library.caltech.edu>. It has content in Markdown sitting along side HTML. A good example is [Overview](https://feeds.library.caltech.edu/overview.md). On that page there is a link to people. There's a catch though. The links returned by the requests to the web server in front of our S3 bucket don't respect the accept header provided by Markdown Web browser for `text/markdown` and instead reply always with HTML for bare URLs. Not fun in BonBon or CMarkBrowser. I have received permission at work to remedy the situation. Once I've made those adjustment it will provide a large site to test indexing and aggregation against. That will likely be my first chance to see if the CMarkFind approach can be scaled up or if it is an upper bound that pushes back to a solution like Solr or OpenSearch.

## Hidden Gems of the Markdown Web

The Markdown community adopted front matter for metadata along time ago. This is a real boon to the academic Markdown community. Everything from DOI to author ORCIDs can easily get integrated. Even while you may still point at PDFs for specific publications, landing pages could easily be represented in Markdown (if they are not already). Why is that significant? The research, library, archives and universities are under daily assault form AI Bots scraping content. It is come now to have to deal with denial of service episodes. One way to mitigate that, or at least drop the byte count to be downloaded by the bots is to always hand them Markdown rather than HTML. In essence, join the Markdown Web deliberately. 

Markdown is very easy to index and with front matter can also provide metadata to harvest and leverage. It really deserves to be a first class hypertext format. The little I've experience of the Markdown Web is proving that in spades.

## Potential and Missing features in the Markdown Web

There isn't much I missing in the Markdown Web. We've been reading and writing it for decades. There is a huge amount tooling available. The largest missing is piece was exposed by BonBon. The rest of the glue is challenging though. It will be important that sites include the `/.well-known/toc.opml` files and keep them up to date. Like with feed reading, getting good RSS feeds is an ongoing comment on the publishing sites. Being able to search for and discover new things to read on the Markdown Web will likely make or break it's main stream adoption. It doesn't have to go main stream. I follow content that is RSS only, I look stuff up in Gopher Space when I have time. Some people still publish Gemini sites. There's always something peculating out there on the Internet when people break out of the silos.

I think there are possibilities for a dynamic Markdown Web, the large search engine use case is a good example. My guess there is other things like guest books and commenting. Dave's RSS.chat looks interesting in that regard. I think you could also describe a web form in JSON or YAML. A browser could digest that then provide a UI if it was willing to do so. The search engine interaction that BonBon hints at with `/.well-known/bonbon.json` becomes a gate way to a dynamic Markdown Web. Is this a good thing? I am not really sure. It could become a slippery slope like what happened in the HTML Web.

A potentially missing piece to the Markdown web would be to easily move between the Markdown Web and ePub. One the things I enjoy about the Markdown Web is that it feels like reading an eBook with the next and previous arrows for site navigation in BonBon.  Lots of potential there.

### Beyond personal Markdown documents 

Many academic institutions and organizations are building static websites using Markdown documents. An S3 bucket or similar service is cheap to rent. A server hosting static content can be small (example a Raspberry Pi attached to storage can function as a static site appliance). The challenge currently for static websites is the lack of search which PageFind has filled the gap for. One of the problems though for static websites is they often want other types of documents beyond HTML to be searchable, for example PDF documents. PDFs can be converted to plain text for ingest into search engines like Solr and OpenSearch. A similar approach could be used to allow CMarkFind to index PDFs as well as Markdown documents (or other plain text formats). This would extend the usefulness of a browser side search that could read a hosted CMarkFind set of indexes and for a Markdown Web browser it'd be able to point to those types of resources too, though the browser would need to open them in an appropriate program after downloading the content.

We could expand beyond sitemaps, toc.opml and RSS feeds to discovering Markdown documents. A harvester that builds CMarkFind indexes could take advantage of protocols like [OAI-PMH](https://en.wikipedia.org/wiki/Open_Archives_Initiative_Protocol_for_Metadata_Harvesting "Wikipedia page for OAI-PMH, HTML") to build an enhanced corpus of indexed material for trusted sites like a research repository or archives.




