frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: routr - a fast local replacement for DuckDuckGo bangs

https://t128n.github.io/routr/
2•trbndev•1y ago

Comments

trbndev•1y ago
routr is a lightweight, offline search router inspired by DuckDuckGo's bangs. It's fully browser-based (no server requests needed other than the initial one) and routes queries like `!gh tokio` to GitHub, `!yt` to YouTube, `!hn` to Hacker News, etc.

What sets it apart:

- Runs entirely locally (no network, no tracking)

- Lets you define your own bangs and destinations

- Optionally rewrites queries for better precision (with AI)

Example:

Typing `article about german war in the stone age !!g` becomes: `site:en.wikipedia.org "german" AND "war" AND "stone age"`

More on query rewriting and performance:

https://tl128n.github.io/writings/2025-05-02_optimizing_sear...

Leftium•1y ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•1y ago
Ah damn what a bummer that I can‘t edit the original comment anymore. Thank you for pointing it out… didn‘t even see that extra `l` there in the url
Leftium•1y ago
> Typing `article about german war in the stone age !!g` becomes: `site:en.wikipedia.org "german" AND "war" AND "stone age"`

I wonder how much of that could be done without AI, just (locally) using https://www.npmjs.com/package/compromise

---

Also I couldn't find your source for bang data; Kagi maintains an updated list: https://github.com/kagisearch/bangs

I'm working on an enhanced version of bangs. Since there are so many "dead" bangs, I'm thinking of using a bang whitelist and suggestions from the full list if not found in the whitelist.

trbndev•1y ago
What an interesting library. Thanks for mentioning it here… will definitely look into it!

—-

The bangs are at

https://github.com/t128n/routr/blob/main/src/sw/routes.ts

Mostly ripped from duckduckgo.com/bang.js and then pretty-formatted with Prettier… with some sane-defaults added like a bang for ChatGPT or T3 Chat

Leftium•1y ago
Related project (also works locally):

- https://unduck.link/

- https://github.com/t3dotgg/unduck

- https://youtu.be/_DnNzRaBWUU

---

Note unduck works without service workers: https://github.com/t3dotgg/unduck/blob/91a66c25de8b0e7ac5ba5...

Is there any advantage to using service workers?

edit: Ah... unduck doesn't work from the browser search bar.

trbndev•1y ago
Unduck actually also uses service workers to cache the app locally

https://github.com/t3dotgg/unduck/blob/91a66c25de8b0e7ac5ba5...

—-

> Is there any advantage to using service workers?

With service workers we can intercept the `fetch` request, before the index.html gets rendered/loaded. One should (in theory) be redirected some micro-seconds faster than doing the redirect in the index.html js

DoD Officially Drops 180 Faiths from Military's Recognized Religion List

https://www.military.com/dod-officially-drops-180-faiths-from-militarys-recognized-religion-list
1•Balgair•42s ago•0 comments

Telegram's Plan to Break the Apple-Google-Meta Monopoly Runs Through Wall Street

https://www.disruptionbanking.com/2026/06/05/telegrams-kremlin-approved-plan-to-break-the-apple-g...
1•bmcdresson•6m ago•1 comments

Product? Useful for me. Distribution? No clue

1•lucasacosta_•7m ago•0 comments

Missing American student found dead in Japan after dayslong search

https://www.cnn.com/2026/06/06/us/james-weston-higginbotham-found-dead
1•andy99•9m ago•0 comments

Ergonomic Overrides for Nixpkgs

https://haskellforall.com/2026/06/ergonomic-overrides-for-nixpkgs
1•birdculture•10m ago•0 comments

You can't detect your way out of catastrophic LLM failure)

https://github.com/joseteiadirector/teia-igo-vs-claude-opus-4.8/blob/main/README.en.md
1•joseteia26•12m ago•0 comments

Show HN: VaultSQL – Open-Source Zero-Trust SQL Workbench

https://vaultsql.com/
1•antileet•13m ago•0 comments

EU's tech sovereignty package includes 29 pages on Open Source, says OSI

https://news.slashdot.org/story/26/06/06/0618217/eus-tech-sovereignty-package-includes-29-pages-o...
1•MilnerRoute•13m ago•0 comments

Praggnanandhaa takes Norway Chess title after scorig four wins in a row

https://en.chessbase.com/post/norway-chess-2026-10
1•qainsights•14m ago•1 comments

Show HN: Ironwall, a safety-first native programming language and compiler

4•bOZbfU4YdRnJQ•16m ago•1 comments

Context Sculpting

https://perceptiontheory.bearblog.dev/context-sculpting/
2•perceptronblues•18m ago•0 comments

How to try out over 85 Linux distros, no installation required – with DistroSea

https://www.zdnet.com/article/try-dozens-of-linux-distros-no-installation-distrosea/
2•doener•19m ago•0 comments

Python Populous: A Populous (Amiga) Clone Developed in Python Using Pygame

https://github.com/powerpsy/python-populous
1•doener•20m ago•0 comments

Hamyoungwook

https://drive.google.com/file/d/1vUeOrzJhXwX1eZ1URNCmBEojnQ3AvWJ8/view?usp=drive_link
1•Hamyoungwook•21m ago•0 comments

AI Can now control your desktop

https://clawdcursor.com
1•AmDab•23m ago•0 comments

Show HN: Note management app that sorts and files stuff for the user

https://notaru.ai
2•alpadurza•23m ago•0 comments

GitHub Copilot: GPT-5.2 and GPT-5.2-Codex deprecated

https://github.blog/changelog/2026-06-05-gpt-5-2-and-gpt-5-2-codex-deprecated/
2•zorrn•25m ago•0 comments

Show HN: Aquifer – an MCP runtime for spiky agent tool traffic

https://github.com/rjpruitt16/aquifer
1•rjpruitt16•29m ago•0 comments

Show HN: Keybench – Scriptable, extensible performance tool for key value stores

https://github.com/guycipher/keybench
2•alexpadula•31m ago•0 comments

No Babies? Blame Capitalism

https://jacobin.com/2026/06/birth-rates-capitalism-socialism-germany
16•thisislife2•33m ago•18 comments

Life is too short for a slow terminal

https://mijndertstuij.nl/posts/life-is-too-short-for-a-slow-terminal/
2•ingve•36m ago•0 comments

Why Aren't We Measuring How AI Affects Humans?

https://spectrum.ieee.org/measuring-ai-societal-impact-khan
3•pseudolus•43m ago•0 comments

How to Get Ahead Startups with Indie Hacking

https://twitter.com/n0rizkitty/status/2062334836195639430
4•zkitty•44m ago•0 comments

How the body creates reliable antibodies out of biological chaos

https://www.rockefeller.edu/news/39873-germinal-center-immune-evolution/
3•hhs•46m ago•0 comments

The Long Illness Persists

https://systemsthinkingcollection.substack.com/p/the-long-illness-persists
2•InputName•47m ago•0 comments

Pfizer Bets on Weight-Loss Drugs to Power Its Next Decade

https://www.bloomberg.com/news/articles/2026-06-06/pfizer-bets-on-weight-loss-drugs-to-power-its-...
2•paulpauper•47m ago•0 comments

Raize Orion Multi-framework GRC with anchored NIS2 reporting clocks

https://raizehq.dev
2•olusmith•48m ago•0 comments

Waypoint-1.5

https://over.world/blog/waypoint-1-5
3•sshh12•49m ago•0 comments

Reed Hastings officially leaves Netflix board, Jay Hoag becomes chairman

https://variety.com/2026/tv/news/netflix-board-reed-hastings-jay-hoag-chairman-1236768093/
5•hhs•53m ago•0 comments

Tragedy of the Anticommons

https://en.wikipedia.org/wiki/Tragedy_of_the_anticommons
2•thelastgallon•54m ago•0 comments