frontpage.
newsnewestaskshowjobs

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

Cash Access Map

https://www.centralbank.ie/financial-system/access-to-cash/public-information/cash-access-map
1•austinallegro•24s ago•0 comments

Domain seller Godaddy fears India's fake site crackdown could damage internet

https://www.reuters.com/world/worlds-biggest-domain-seller-fears-indias-fake-site-crackdown-could...
1•Terretta•55s ago•0 comments

New Spatial Augmented Reality Makes Projections Crisper

https://spectrum.ieee.org/shadow-free-spatial-augmented-reality
1•JeanKage•4m ago•0 comments

Show HN: I revived a 128MB RAM NAS by building my own control panel

https://github.com/itprogresscorp/Mini-Bucket
1•minibucket•6m ago•0 comments

Manson murders 'were linked to CIA mind control experiments', Congress told [pdf]

https://oversight.house.gov/wp-content/uploads/2026/06/ONeill-Written-Testimony.pdf
1•abbassix•6m ago•0 comments

Speculative pre-positioning: off-path decode for stateful inference sessions

https://arxiv.org/abs/2606.29565
1•logotype•14m ago•0 comments

Recordly: A cross-platform OSS alternative to Screen Studio

https://github.com/webadderallorg/Recordly
1•kozika•14m ago•0 comments

Your Vibe coded website is going to get you fined

https://thoughtbot.com/blog/your-vibe-coded-website-is-going-to-get-you-fined
2•ingve•15m ago•0 comments

IsChinaByEmoji – A way for browser to detect if a user is from China

https://github.com/yArna/isChinaUser/blob/main/src/isChinaByEmoji.ts
1•phantomathkg•19m ago•0 comments

Camox: The framework for agent-driven websites

https://github.com/camox-ai/camox
1•malgamves•21m ago•1 comments

TS Foundation Models

https://huggingface.co/NX-AI/TiRex-2
1•Robert_Linz•22m ago•1 comments

Read Build Ship #1 – Starting at $0, 0 users, 27 followers. Here's the plan

https://readbuildship.substack.com/p/read-build-ship-1-starting-at-0-0
1•babilonczyk•30m ago•0 comments

What is the Fourth Dimension? (1884)

https://en.wikisource.org/wiki/What_is_the_Fourth_Dimension%3F
2•downbad_•37m ago•0 comments

Achieving Operational Excellence with AI

https://www.technologyreview.com/2026/07/02/1140045/achieving-operational-excellence-with-ai/
1•joozio•39m ago•0 comments

The Expensive Fictions of Low-Level Programming Languages

https://stng.substack.com/p/the-expensive-fictions-of-low-level
1•rbanffy•41m ago•0 comments

The Day I Played Hide-and-Seek with an AI

https://medium.com/@gianlucabailo/the-day-i-played-hide-and-seek-with-an-ai-7a1ee189b5ff
1•dexmac221•42m ago•1 comments

Running 26B and 35B LLMs at Full Speed on €990 of Used Hardware – No Cloud

https://medium.com/ai-advances/running-26b-and-35b-llms-at-full-speed-on-990-of-used-hardware-no-...
2•dexmac221•43m ago•0 comments

Why Europe doesn't have a Tesla

https://worksinprogress.co/issue/why-europe-doesnt-have-a-tesla/
1•nielsole•45m ago•1 comments

Scaling PgBouncer Beyond a Single CPU Core

https://clickhouse.com/blog/pgbouncer-clickhouse-managed-postgres
1•saisrirampur•45m ago•0 comments

The Data Recipe for Teaching AI New Skills [video]

https://www.youtube.com/watch?v=I9F_VFfLTmM
2•aborovykh•52m ago•1 comments

Obsidian AI Setup – A production-ready onboarding skill for AI agents

https://github.com/anliberant/obsidian-ai-setup
1•javatuts•55m ago•0 comments

Google's AI buildout drove 37% increase in electricity use in 2025

https://arstechnica.com/ai/2026/07/googles-ai-buildout-drove-37-increase-in-electricity-use-in-2025/
4•mpfect•1h ago•0 comments

Show HN: Opplic AI growth employees for web agencies

https://opplic.com
1•sanketta•1h ago•0 comments

Nvidia B300 vs H200: GPU Specs and Performance Analysis

https://canopywave.com/blog/nvidia-b300-vs-h200-gpu-specs-performance-analysis
1•Timmyzzz•1h ago•0 comments

Show HN: Warmbly – Automate cold email outreach

https://github.com/warmbly/warmbly
1•meszmate•1h ago•0 comments

Meta: New Muse Spark update, and an Opus level Muse variant, are both on the way

https://twitter.com/i/status/2072858780816330833
1•euio757•1h ago•0 comments

Go (golang) Report Card project/service was archived on Jul 1, 2026

https://github.com/gojp/goreportcard/commit/176744ca23b40aa64c55b390161a3c78982e91b8
1•guessmyname•1h ago•0 comments

Ask HN: Is anyone experimenting with different ways of using LLMs for coding?

20•yehiaabdelm•1h ago•29 comments

After WhatsApp, Indian govt sends notices to Telegram, Signal over usernames

https://www.hindustantimes.com/india-news/after-whatsapp-centre-notices-to-telegram-signal-today-...
1•shibaprasadb•1h ago•0 comments

Buy nothing, feel richer – South Korea dopamine apps

https://www.koreajoongangdaily.com/lifestyle/these-brainhacking-services-let-you-buy-absolutely-n...
1•BaudouinVH•1h ago•0 comments