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

Show HN: Eavesong – self-hosted product mention monitoring

https://github.com/sonic0002/eavesong
1•misonic•19s ago•0 comments

Vanishing Scarcity: Generative AI and the Redefinition of Musical Value

https://medium.com/@smoking2man/vanishing-scarcity-generative-ai-and-the-redefinition-of-musical-...
1•Aldus551•3m ago•0 comments

Brian Kernighan: Inside Bell Labs, the Best Programmer, Why C Was So Influential [video]

https://www.youtube.com/watch?v=sMllOlxVgD0
1•Teever•4m ago•0 comments

Walter Koenig, actor who played Chekov on original "Star Trek" series, dies

https://www.cbsnews.com/news/walter-koenig-dies-age-90-chekov-star-trek/
3•benkan•8m ago•0 comments

UK to charge universities $1,200 per international student

https://africa.businessinsider.com/local/markets/uk-to-charge-universities-dollar1200-per-interna...
2•teleforce•8m ago•0 comments

Apple updates the iPad Mini with a larger OLED display

https://www.theverge.com/tech/1017801/ipad-mini-oled-display-apple-announce
1•benkan•9m ago•0 comments

1984: The Canadian Edition

https://btxx.org/posts/1984/
2•HotGarbage•15m ago•0 comments

Show HN: Outer Space Jobs

https://outerspacejobs.com/
2•non-•16m ago•3 comments

Looking for a tech job is a helpless data-entry nightmare

3•Gravyness•20m ago•2 comments

Show HN: MouseChase – A place-and-run puzzle game

https://mousechase-playtest.web.app/
1•X-Geek•26m ago•1 comments

There are now 5 inference providers for abliterated DeepSeek

https://allmodels.io/llm/abliterated
2•moeadham•28m ago•0 comments

Kickoff – A keyboard-driven live football scoreboard in your terminal

https://github.com/e12jassir/kickoff-cli
1•e12jassir•28m ago•0 comments

AI Enabled Private Equity

https://nivawealth.com
1•vbsm•32m ago•1 comments

Tailscale SSH: Investigation and remediation update

https://tailscale.com/ssh-investigation-update
3•theanonymousone•36m ago•0 comments

Journal of Agentic Meta Algorithms

https://agentic-meta-journal.pages.dev/
1•measurablefunc•38m ago•0 comments

Don't anthropomorphize big tech companies

https://www.seangoedecke.com/dont-anthropomorphize-big-tech-companies/
2•vismit2000•38m ago•0 comments

The Non-Negotiable Pattern – When Our Progress Becomes a CosmicOrigin Compulsion

https://medium.com/system-weakness/the-non-negotiable-pattern-when-our-progress-becomes-a-cosmic-...
1•mkraft_berlin•39m ago•0 comments

Why AI coding tools assume a clean slate

https://loopsfinity.com/blog-greenfield-bias-ai-tools
2•shymaple•40m ago•0 comments

Serbia's Student List preparing for talks on forming government

https://www.theguardian.com/world/2026/oct/26/serbia-student-list-preparing-for-talks-on-forming-...
1•akbarnama•40m ago•0 comments

Three Levels for AI Agents: The Repo, the Company, and the Developer

https://systemweakness.com/three-levels-for-ai-agents-the-repo-the-company-and-the-developer-0e4f...
1•mkraft_berlin•41m ago•0 comments

Tech market feels like a data entry job

2•Gravyness•44m ago•0 comments

AI and the Collapse of Capitalism

https://jasonpolak.substack.com/p/ai-and-the-collapse-of-capitalism
4•bemtevi•1h ago•1 comments

Microsoft offers buyouts to around 60k employees to contain costs

https://www.reuters.com/technology/microsoft-is-offering-buyouts-around-60000-employees-business-...
3•wfme•1h ago•2 comments

Microsoft offers voluntary buyouts to 60k employees

https://www.cnbc.com/2026/10/26/microsoft-msft-voluntary-buyouts.html
2•smsm42•1h ago•0 comments

Nvidia's AI showpiece: Jensen-mania, robot ducks and neocloud distress

https://www.cnbc.com/2026/10/23/jensen-huang-gtc-robot-ducks-neocloud-distress.html
1•gmays•1h ago•0 comments

Periopolis is a 100% Carless City – Build it Yourself

https://periopolis.city
2•ChicagoDave•1h ago•0 comments

Quasiturbine Chainsaw

1•LongTermCapital•1h ago•0 comments

Live captions and translation for any Windows audio local

https://github.com/EduardoViniciusJ/AnyCaptions
1•eduardovinicius•1h ago•0 comments

Create and edit images with a collection of easy-to-use AI tools

https://www.picttool.com/
3•madisonmothkuri•1h ago•0 comments

Inside Real-Time Systems

https://kothariji.in/talks/real-time-systems/
1•kothariji•1h ago•1 comments