Simple Catalysts
This all began when Omnisearch, a meta search-engine that collates results from all over the place, stopped working. When I searched something, I got a capcha warning from a few of the search engines, and then no results. This had happened in the past, so I went to my mirror, pulled a copy, and then fetched from the original. I don’t really need to host a full mirror, I don’t make any crazy changes, but I have some color scheme and layout tweaks I apply, which means I stick to the same (outdated) version of this particular program for months at a time, usually until something stops working, as it had. When I did, though, most of the repo ceased to exist. Both the nix flake and the module that I relied on for compatibility had vanished, and in the reflog, (fix) Removed Nix Support.
Needless to say, I reverted the commit at hand immediately and pushed the new and improved version to my git server. Of course, because of how nix works, there’s borderline no maintenance, so there’s literally no reason to have removed nix support, but I guarantee that’s what the maintainer would cite if he were asked. Other than being overly-opinionated and maintained by someone who doesn’t like mainstream for the sake of not liking mainstream, Omnisearch is a great project, and is undoubtedly a great way to distance yourself from fingerprinting online, but if the developer isn’t going to maintain it properly, then I may as well just make my own!
Fixing what’s broken
The architecture used for Omnisearch is almost as simple as one can get. To begin, everything on the backend is hard-coded in C, including search engine endpoints and filtering rules. That leads to a simple url change requiring a recompile at the very least, and completely rewriting the associated functions because of a UI change at worst. The filtering rules (as far as I can tell) are regex, relying heavily on grep and C’s built in .contains() methods for strings, which can get extremely inefficient when dealing with massive hunks of text, like, oh, I don’t know, entire webpages? I can’t fault the frontend, it’s just a http server, although custom implemented by the same developer with “less than ideal” efficiency, but if you wanted to add a new search engine, rather than being a config change, it’s a whole afternoon of suckless programming.
It’s rather obvious that it was written in C so that the dev could put it on the readme. C isn’t optimised for handling html, searching through strings, or hosting websites. Great choice. On top of the language, some of the code in the repo hasn’t changed since the initial commit, which has led to the entire system slowing down with age and implementation debt (is that what it’s called?? idk). Finally, with the addition of specialised capchas, and anubis in particular, the average search takes a few seconds to fetch and render, leading to a sluggish experience. But we’re still before I fixed everything, remember? I should probably get working on that.
Why AI is good sometimes
I don’t know how anubis works. I don’t know how capchas and cookies work. I do, however, know how to read through chunks of code and get a rough idea whether it’ll do what it’s supposed to. So, instead of spending a few hours deciphering cryptic stack overflow posts and attempting to bypass closed source bot protection methods, I just asked Opencode. Within 25 minutes, I had a fully functional anubis solver, cookie caching system, and a hard bypass for the duckduckgo lite capcha screen. On top of that, with one additional prompt, it made the entire fetch phase multithreaded, which sped up the page load by almost double. For literally a one shot, it was pretty impressive.
If you’ve ever heard anyone talk about “ethical AI usage”, this is probably what they mean. Getting AI to take care of some niche issue that’s never existed before, or to employ technologies that they have no konwledge of, so that the project doesn’t run to a halt at the slightest roadblock. The core ideology that seperates vibe coded slop from actual good code is usually human understanding of the codebase as a whole. Omnisearch is an established project with hundreds of human made commits, leading to high levels of consistency across the board, meaning that if there’s a blackbox function called solve_anubis() somewhere, it doesn’t prevent the rest of the app from being properly developed. Of course, Omnisearch isn’t my project, and my mirror is basically considered a hard fork, but this idea can be applied to basically anything. It’s ethical if the AI:human code ratio is 1:9, or greater.
But, even though Omnisearch works fine again, I’m not happy. It’s still bloated, and written in C for no reason (we’re in 2026, there’s no reason to be messing with CFLAGS anymore), and now there’s AI uncertainty sprinkled in amongst the awful hard coding of values. There’s a file called scraping.c, that’s over 800 lines long and has 5 different functions calling 5 different instantiated curl classes for 5 different search engines, it’s almost as if it were designed to make sure that only the head developer understood it fully. With some thought, the whole project could be compressed down into easily a quarter of its current size, just by universalizing the methods that are used by different search engines. So, I put some thought into it.
Putting some thought into it
I’m now working on a replacement for Omnisearch, because Omnisearch sucks. Of course, I’m going to write it in rust, because rust is the best language ever made no matter what Aspen says, and package it primarily for nix, because it’s the best package manager, no matter what the lead dev of Omnisearch thinks. The structure is going to be fully universal and modular, making the actual search engine implementation completely separate from the underlying code. Everything will be lua based, of course, with the program only taking in an array of functions that correspond to all the search engines that you want to index. Within lua, there’ll be an api exposed that will allow manipulation of html objects, or just raw text through regex, as well as being able to hook up whatever anubis solvers or capcha bypassers that you could want. Finally, at the end, you would return an array of “search result” structs, which are passed to the template builder on the frontend and served to the user. That could lead to a config file that looks something like this:
local function duck_duck_go(term)
local result = vs.request("https://lite.duckduckgo.com/lite?q="..term)
if result.status ~= 200 then
-- Solve for capcha or request something different
end
local body = vs.objectify(result.body) -- Decodes into a html dom tree
local titles = body.select("tbody tr rd a.result-link") -- Uses css selectors
for title in ipairs(titles) do
-- Manipulate, format, then add to final array
end
return finalArray; -- of search results
end
Considering I haven’t implemented anything yet, this is probably only a guideline of what to expect. Of course, because i can use async in rust, every function passed through can be run in parallel, using a batched request from curl::multi (I’m pretty sure that’s the right one), and then using reactive html magic, the results page can load immediately, and then update when new results come in that are more relevant. Additionally, because everything is a flat structure, results can be easily cached and re-served really easily, based on relevancy matching, leading to similar searches that would yeild the same results having effectively 0 load time.
De-centralising even further, if all the html is generated by the rust code instead of templates, it can be overwritten, allowing for completely custom interfaces to be generated on the fly with just some simple lua scripting. As usual, feature creep, but it would be interesting to have a seperate rendering configuration that would treat everything as the same object, allowing you to change the layout of results depending on where the results come from, have different columns altogether for different engines, or add conditional wikipedia info boxes that would pop up if a close enough match is found. You could even embed a search bar or button into a result, that would return semantically similar results from all search engines. If everything is treated as a generic object, there’s nothing stopping entire custom UIs being created from scratch to suit a particular need. But, as usual, I’m getting ahead of myself.
Making shit
I’ll be working on this nameless search engine in the background, but this isn’t an article about that, this is an article about how you should make shit. As I’ve said before, most things are made out of a simple frustration. Linux was made because some random guy got annoyed one time. Git was made because the same guy was annoyed that there wasn’t a good code versioning tool. This blog was made because I was annoyed with the old one being slow, and my nix system was made because I was fed up with stray packages and inconsistent, undocumented fixes that I would have to rediscover when the same issue happened again after an update.
Next time you encounter something that annoys you, don’t just sit there and deal with it. Is your note taking app slow? Make one! Is the dev of a project you use mean? Make an alternative! Is your search engine stealing all of your data? Make one that doesn’t, and if that fails, go live on a farm somewhere and make food or something! Use AI all you want to get started. Pick a language and start googling! It’s fine to ask “Hey, chatgpt, how do i convert from a Vec<&str> to a String?”, because once you have an answer, instead of asking chatgpt again, you go back to your old code and look at the example you already have! Go and explain your niche issue to claude, and understand the solution. Then, one day, you’ll just make a cool project without even thinking about it! No chatgpt required.
Now, instead of reading more of my articles, go and make something cool! Bye!