98

Hey everyone!

I wanted to share a small open source project I’ve been working on: Searloc.

Searloc is an open source lightweight, client-side web tool (pure JavaScript, no server-side code) that helps you search via a random public SearXNG instance, directly from your browser. The goal is to decentralize search and improve privacy without requiring you to host your own instance.

How it works

There are currently around 50 public SearXNG instances in the pool. Each time you search, Searloc randomly chooses one. This means no single instance sees all your queries — just about 1 in 50, statistically. The more public instances there are, the better the decentralization and privacy.

Who is this for?

If you already self-host your own SearXNG instance, you probably don’t need this.
But if you want private, decentralized search without hosting anything yourself, Searloc might be a great fit.

Key Features

  • Automatic quality checks to filter public instances from searx.space
  • Use !! to retry your search on a different random instance
  • Bangs (!!bang syntax) fully handled in-browser
  • Light/Dark mode support
  • English and French localization
  • Autocomplete for bangs on the homepage
  • Automatically forwards your theme and localization preference to the selected SearXNG instance
  • Add your own custom instances via the settings page

This is still an early-stage project, but I use it daily and it’s been ok for regular use.
Feedback, bug reports, and ideas are always welcome! Check out the Projects tab on Codeberg to see the current "roadmap".

Give it a try, and let me know what you think.

Have a great day!

top 10 comments
sorted by: hot top controversial new old

Would be cool to automatically set the favorite settings inside every instance via cookies for example

[-] wazaby@piefed.social 1 points 3 hours ago

I don't think I can set a cookie on another website. The way I do it at the moment is by passing the settings as a query param alongside the search query. So the favorite settings must already be passed to each instances. Is that not the case for you?

[-] TomAwezome@lemmy.world 9 points 1 day ago

So this is basically doing what https://searx.neocities.org/ is doing? Or is it going some step beyond? Neat project

[-] wazaby@piefed.social 18 points 1 day ago* (last edited 1 day ago)

Yes, it's an alternative, so the end goal is the same. But there are some differences:

  • Settings: In Searloc, you can set the language, theme, etc., and those settings are passed to the SearXNG instance.
  • Bangs: Bangs are handled locally (directly by the Searloc JS in your browser), whereas Neocities forwards your bangs to an instance.
  • Automatic instance updates: It seems that the Neocities instances haven't changed since 2024. Searloc builds its pool daily from searx.space. From what I can see in the Neocities source, they only use 12 instances in their pool, which isn't enough in my opinion.
  • Retry: A real pain point for me is that sometimes, even with the quality check I've added to select the instance pool, an instance doesn't return the results I'm expecting. So I implemented a retry feature (it's opt-in—you need to enable it in the settings). If the results aren't good enough, just type !! and it will rerun the search on another random instance.
[-] lilith267 2 points 1 day ago

It would be really cool to have a docker build for this to selfhost!

[-] wazaby@piefed.social 4 points 17 hours ago

Yes! I already have an issue for that: https://codeberg.org/wazaby/searloc/issues/21

I have limited time, so at the moment I am more focused on features, but I will definitely do it. I also want to create a self hosted guide in the repo wiki.

[-] lilith267 1 points 3 hours ago

Ay thats really nice to hear! Ofc no pressure with getting anything released, as the project stands right now is already something I'm excited to use

[-] ace_garp@lemmy.world 2 points 1 day ago* (last edited 1 day ago)

Quick-add Searloc to your favourite browser with this link

https://searloc.org/search?q=%25s

--//--

Solid project, I appreciate your efforts.

[-] YoSoySnekBoi@kbin.earth 4 points 1 day ago

This is really cool!

[-] futurk@feddit.org 1 points 1 day ago

simple math & statistics to enhance privacy, brilliant!

this post was submitted on 02 Aug 2025
98 points (100.0% liked)

Open Source

39476 readers
521 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 6 years ago
MODERATORS