I built a 500k-domain search engine for makers in a weekend for $10

(alexmorleyfinch.github.io)

88 points | by dreamforever 4 hours ago

14 comments

  • tpowell 35 minutes ago

    It takes a bit of setup and a huge download, but every time I need a good domain I follow this old post from Derek Sivers. I have Claude de-dupe it and turn it into a searchable database (on my machine), then have it search genres and terms I'm looking for. It's a task Claude is very well-suited to, from the technical implementation to back-and-forth about selections. [link]: https://sive.rs/com

    • iFire 3 hours ago

      Here's my impressions of your algorithm:

      1. read each site

      2. rent a 4090 with https://vast.ai to run vllm

      3. let llm model invent its own category and tag names freely

      4. save 1KB of metadata each

        a. a small local language model that reads each one and writes a name, two or three sentences, a category, and a handful of tags.
      
      5. `code is going up as open source` soon (TM)
    • headz 3 hours ago

      TS;DR: Too Sloppy; Didn't Read.

      • juleiie 3 hours ago

        Yeah it’s ai generated obviously but as I said previously which some people didn’t like - don’t judge the tools, judge the content.

        I don’t care if robot hand written this or black or white. It’s useful.

        • order-matters 21 minutes ago

          did you edit it? did you fully read everything yourself and take out anything extra that didnt need to be in there like unnecessary comparisons and typical AI idioms? tweak the language to be less dramatic or emphatic about things that do not need emphasis?

          AI is a great tool, but it is somewhere between a 3D printer and a CNC machine. it can make something smooth and easy to handle and maybe good enough for personal use but you would want to run it through some Finishing steps before giving its output to someone else. In some cases thats using the output as a mold for a full recreation and other times maybe its just sanding it a bit, smoothing out some rough spots and putting paint on it.

          youre right not to care about if something was made by a human or a tool, but the full presentation of the content including editing is part of the content when it comes to a write-up.

          • abc3354 3 hours ago

            In the expression "AI slop", "AI" is about the tools, "slop" is about the content

            • uean 3 hours ago

              I'm not going to spend an hour trying to distill the AI-slop to find out what potential golden nugget may lie in there.

              It's impossible to judge the content if it's buried under a landfill. "If you won't take the time to write it, I won't take the time to read it."

              • fg137 1 hour ago

                > judge the content

                The content itself is slop.

                • ImPostingOnHN 3 hours ago

                  "slop" is a perfectly valid judgement of content

                  surely if we're expected to read this ourselves, the author can write it themselves?

                  indeed, it's helpful to the author, too: writing helps you learn

                  • ModernMech 21 minutes ago

                    I dunno, you'll notice several people here saying that got value from it, despite others not engaging with it at all. If your filter is that you don't engage with anything you don't expect a priori to get value from (based on weak signals), you'll miss a lot.

              • marginalia_nu 3 hours ago

                Interesting project. Website discovery is indeed in a pretty dire spot, definitely a space that needs innovation. An auto-labeled website directory isn't that silly of an idea.

                I have a 400 GB sqlite database with samples of rendered root document DOMs I use for ad detection in Marginalia Search I've been meaning to explore similar ideas using.

                • alightsoul 1 hour ago

                  I have been wanting do do this. The biggest source of domains is certificate transparency logs. Also ICANN zone files. According to some scientific papers these cover 88% of all registered domains. You could crawl dns for CNAME records with all ipv4 IPs by distributing requests across dozens of DNS servers, the internet archive or the common crawl but doing it for the internet archive is a dick move without giving them money

                  There's about 200 million active domains currently. That's about 66% of all businesses worldwide of which there are around 300 million. Around 100 to 150 million have active webpages

                  • jeromechoo 1 hour ago

                    It feels like we've hit a point where search engines can become what "todo list apps" were for devs 10 years ago.

                    What a homebrewed solution lacks in coverage it excels in indexing and serving a small slice of the internet really really well.

                    • marginalia_nu 1 hour ago

                      To be fair they are a supremely interesting problem to hack away at, and one that will meet you where you are.

                      Almost anyone can put together a basic search engine in a few thousand lines of code, it's just not very hard to make a program that will index a few million documents better than Confluence.

                      Then, between that first ansatz and a working scalable internet search engine, you have a pile of interesting problems touching every aspect of computer science and computer hardware and networking, enough so that hundreds of people will have gotten PhDs in narrow sub-problems of those problems you'll be facing.

                      It's great because you can just tackle the stuff you feel comfortable approaching and leave the rest for later.

                  • lagrange77 36 minutes ago

                    Took me a few minutes to realise it's not a domain name search engine.

                    • fg137 1 hour ago

                      Sorry I have a lot of trouble understanding what this is useful for. Like, I am never going to replace it with Google, DuckDuckGo, ChatGPT or even Bing.

                      • dreamforever 24 minutes ago

                        It's not for that, sorry, I should have been more specific. It's for people who wanna put in the effort and steer their own crawl to surface their own slice of the web. The article is just a little story of the journey

                        • prepend 50 minutes ago

                          I was wondering the same thing. I’ve wished for just a big blob of the web to grep and regex through, but I don’t think this is that much easier than using duckduckgo or even google.

                        • eggbrain 3 hours ago

                          This is actually where I see software going in the short term -- cloud moving to local.

                          A few years ago, if you wanted translation, you'd use Google Translate. If you wanted to search the web, you'd use Google search.

                          But for a few gigabytes, you can now install nllb-200-distilled-600M, and get translations for almost any language locally. You can have your computer crawl the web, create abstracts and categorizations for websites, and build search exactly as you want it.

                          The main limiter now is hard drive space (and to an extent, local compute) -- but right now it feels like the 70s again where the terminal into a remote server turned into building applications locally.

                          • dylan604 2 hours ago

                            The number of times we've gone from cloud/server access via terminal to local compute back and forth is something that always makes me laugh a bit.

                            • an0malous 2 hours ago

                              It's more of a pipeline than a back-and-forth. New abilities happen in the cloud first because they require specialized, higher capacity resources and then move towards being local as the resource usage gets optimized.

                          • BaudouinVH 1 hour ago

                            How do you build a list of domains you want to index ? I see there is a fetcher and a spider in the code but so for I haven't found how to build that list.

                            • dreamforever 16 minutes ago

                              Ah, I forgot to mention that anywhere. You have to provide your own. You can start from a small set, like 10 websites you like that have a bit of character, and it will also add any domains it finds from those 10

                            • pimlottc 2 hours ago

                              Sometimes I think people forget how capable computers are. 500k is not much. You can just slap that in a Lucene instance. This is a solved problem.

                              • marginalia_nu 2 hours ago

                                Approaching search by just tossing the data in Lucene is how you end up with Confluence's search box though.

                              • pavel_lishin 1 hour ago

                                From the screenshot, it's very funny that one of the indexed sites is www.llresearch.org, which looks like it's run by a crackpot.

                                • dreamforever 14 minutes ago

                                  There are all kinds of websites in here lol. There is some gold in here and I'm determined to surface it all. I had to wrap this up without full analysis cos it was dragging on

                                • orliesaurus 3 hours ago

                                  Like a personal Google? How do you bypass all the captcha, ip bans, cloudflare turnstile antibot stuff etc?

                                  • dreamforever 11 minutes ago

                                    despite this limitation, there is still some good stuff out there, and with the priority steering, you can focus compute on what you actually want, fast and cheap.

                                    • sandeepkd 2 hours ago

                                      Thats the fun part, the user just went with happy path. Javascript, captchas, cloudflare protected content did not made to the catalogue. This sort of use case exists in LLM training data a lot which makes it easier. The data gathered by the user is not really practically useful cause there are way too many gotchas when it comes to web scraping and building a catalogue (source: I have done scraping for a particular domain data and had to do at least 10+ iterations to get it >90 right)

                                      • voidUpdate 2 hours ago

                                        They don't: "skips the model entirely if the page is empty, parked, or a bot-challenge wall"

                                      • dewey 3 hours ago

                                        I think Kagi Small Web filter would give you very similar results.

                                      • dreamforever 4 hours ago

                                        Check out my latest project! You can fork it, tweak the policy manually or with AI, run the system and watch the data come in! It's engineered to keep a low data footprint, so 500k domains fits into 1GB on disk. If you have local models it's free! You just might not get the best throughput depending on your GPU. My production data is not exposed anywhere yet, and I may never expose it. The point is for you to fork and make your own policy, and thus your own personal search engine! The article covers basic analysis on my data, so it's worth a read if you're interested! A deeper analysis may arrive with V2 if I ever do it

                                        • elorant 2 hours ago

                                          Domains are way more than just 40M though.

                                          • BaudouinVH 1 hour ago

                                            From what I understand the aim was not to collect all the domains on the web but focus on personal website, etc. and avoid corporate web sites.