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

India's 'Cockroach' Protesters Declare Rare Victory over Government

https://www.nytimes.com/2026/07/25/world/asia/india-education-minister-resigns-cockroach-protests...
1•thunderbong•1m ago•0 comments

We built the new fastest API for GLM-5.2

https://www.baseten.co/blog/how-we-built-the-new-fastest-api-for-glm-52/
1•philipkiely•1m ago•0 comments

Show HN: Raise a virtual pet with your friend/partner

https://dandan.schols.io
1•chaidhat•9m ago•0 comments

Google ignored my site for 13 weeks, so I audited everyone who outranks me

https://getqrcodepro.com/blog/google-ranking-evidence
1•benbuilds•17m ago•0 comments

An ESP32 based plane radar for my desk

https://blog.ktz.me/esp32-plane-radar/
1•alexktz•17m ago•0 comments

Lessons from Building My Own Products as a Freelance Engineer

https://www.mazin.sd/blog/lessons-from-building-my-own-products-as-a-freelance-engineer
1•maz225•18m ago•0 comments

Four Proposals to Improve Fuel Economy Standards (2021)

https://epic.uchicago.edu/area-of-focus/four-proposals-to-improve-fuel-economy-standards/
1•bariumbitmap•21m ago•0 comments

Show HN: Rules that stop AI coding agents from breaking working code

https://github.com/avenna01-ceo/claude-code-survival-kr
1•gaiinmaster•22m ago•0 comments

Show HN: I enhanced the UX for TemplatesOn, what do you think?

https://templateson.com
1•maz225•29m ago•0 comments

Multiple LLMs trying to reach a consensus

https://trekhleb.dev/blog/2026/yesbrainer/
1•trekhleb•30m ago•0 comments

Show HN: I mapped every US golf course – 18k courses, free, no signup

https://golfcoursebrowser.com/
3•rickmf•30m ago•0 comments

What Colorado consumers should know about the cyclospora outbreak

https://source.colostate.edu/cyclospora-outbreak-safety-symptoms/
1•mooreds•30m ago•0 comments

Ajay Kumar on running MCP in production [audio]

https://www.getreadyforagents.com/podcast/ajay-kumar-mcp-in-production-ediy/
1•mooreds•31m ago•0 comments

When You Build the Wrong Thing

https://remotesynthesis.com/posts/when-you-build-the-wrong-thing/
2•mooreds•33m ago•0 comments

Show HN: What 180k words look like as a temporal knowledge graph (Oz series)

https://synaptale.com/graph?ch=100
2•ald0r•34m ago•0 comments

Do People Swallow 8 Spiders a Year While They Sleep? (2014)

https://www.scientificamerican.com/article/fact-or-fiction-people-swallow-8-spiders-a-year-while-...
1•thunderbong•37m ago•0 comments

How Many Bits Can an Adapter Write? Capacity and Memorization of LoRA

https://arxiv.org/abs/2607.21351
1•sbulaev•45m ago•0 comments

Dartmouth Workshop on Artificial Intelligence (1956)

https://en.wikipedia.org/wiki/Dartmouth_workshop
1•d_silin•50m ago•0 comments

1209X Agentic Engineering

https://twitter.com/psdimov/status/2081179527884034259
2•pdcd•50m ago•0 comments

Sally the Robot Was Coming to a New York School. Then the Plug Was Pulled

https://www.nytimes.com/2026/07/25/nyregion/robot-school-new-york-salamanca.html
2•apparent•53m ago•1 comments

Show HN: Fitter – declarative web-data extraction,running in the browser also

https://pxyup.github.io/fitter/
3•pyxru•55m ago•1 comments

NYU Stern pricing expert: The hidden 'AI tax' hitting your next phone

https://fortune.com/2026/07/24/apple-ai-memory-chip-price-increases/
2•1vuio0pswjnm7•1h ago•0 comments

Show HN: ZWPlayer – Free player with interactive annotations and subtitle search

https://www.zwplayer.com/
2•logicplayer•1h ago•0 comments

Scottish tax hike for high earners backfires with loss of £22M

https://www.thetimes.com/uk/scotland/article/scottish-tax-high-earners-22m-3sb2k3wns
3•ivewonyoung•1h ago•0 comments

The hidden cost of AI: Why your town is negotiating with Amazon and Microsoft

https://fortune.com/2026/07/23/hobart-amazon-data-center-community-benefits/
1•1vuio0pswjnm7•1h ago•0 comments

An automated website audit tool using Gemini and n8n

https://www.aiwebsitecritic.com/
1•brayden_jones•1h ago•0 comments

Alien World Chemistry Found Inside Meteorite That Struck New Jersey Home

https://www.seti.org/news/alien-world-chemistry-found-inside-meteorite/
1•spzx•1h ago•0 comments

Space Oddity; Review of Slobodian and Tarnoff's "Muskism"

https://www.nybooks.com/articles/2026/07/23/space-oddity-muskism-slobodian-tarnoff/
1•1vuio0pswjnm7•1h ago•0 comments

AI Can Now Design Drugs in Seconds; We Still Can't Tell You If They Work

https://philippdubach.com/posts/ai-can-now-design-drugs-in-seconds-we-still-cant-tell-you-if-they...
1•TEHERET•1h ago•0 comments

Forer Effect

https://www.skepdic.com/forer.html
2•8organicbits•1h ago•0 comments