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

The place the frostbite CPU came from

https://twitter.com/EV_Trapper/status/2123631975894302816
1•petra•26s ago•0 comments

EndeavorOTC, FDA-approved video game for treating ADHD

https://www.endeavorotc.com/
1•illidan1000•2m ago•0 comments

GrapheneOS claims Google is now waging war against it, could lock Pixel bootload

https://www.androidauthority.com/grapheneos-team-google-pressure-3737525/
3•jeena•3m ago•0 comments

Judge: DHS's Seizure Of Immigration Lawyer's Phone Likely Violated 1st Amendment

https://www.techdirt.com/2026/11/20/judge-says-dhss-seizure-of-an-immigration-lawyers-phone-likel...
3•hn_acker•4m ago•1 comments

Engineering human oversight with decision queues

https://muster.town/blog/engineering-human-oversight-with-decision-queues
1•bitforger•4m ago•0 comments

Ask HN: How do you use AI for exploring new codebases

1•_null_pointer_•6m ago•0 comments

Lean Copers

1•xxxdddyyy•8m ago•0 comments

Who gambles in the stock market? (2009)

https://onlinelibrary.wiley.com/doi/abs/10.1111/j.1540-6261.2009.01483.x
1•aaavl2821•8m ago•0 comments

Kernarium: Run real Linux kernel natively on iOS

https://github.com/imxieyi/Kernarium
1•lnyan•9m ago•0 comments

Show HN: Name Sayer – authoritative DNS with support to blocklist

https://github.com/gabrielfalcao/name-sayer
1•gfalcao•10m ago•0 comments

Woman entered hibernation-like state during winter for more than 30 years

https://www.newscientist.com/article/2599918-woman-entered-hibernation-like-state-during-winter-f...
1•cybermango•11m ago•1 comments

Q4 2026 AI Patterns

https://www.tbray.org/ongoing/When/202x/2026/11/18/AI-Patterns
1•nothing_is_real•12m ago•0 comments

Trump says he still has confidence in Lutnick

https://www.cnbc.com/2026/11/20/trump-lutnick-commerce-china-ai.html
1•nazgulsenpai•12m ago•0 comments

Minerva Archive (382 TB)

https://minerva-archive.org/browse/
2•o_-_o•15m ago•0 comments

ChurchTerminal – Christian News Dashboard Inspired by Hacker News

https://churchterminal.com/
5•den_sv•16m ago•2 comments

Imps in a Jar

https://dmitri.im/blog/imps-in-a-jar/
1•Damirakyan•18m ago•0 comments

Probably Stolen – Cyberpunk Shopkeeper Sim

https://store.steampowered.com/app/4348910/Probably_Stolen_Cyberpunk_Shopkeeper_Sim/
1•doener•19m ago•0 comments

Comparing iOS 27's RAW 9 decoder with RAW 8 and ProRAW

https://m-mode.cam/resources/field-notes/raw-8-raw-9-proraw
1•danlng•19m ago•0 comments

Google says it's going to shut off Google Assistant on smart speakers next year

https://www.theverge.com/tech/1038834/google-assistant-smart-speakers-nest-app-killed-shut-down
3•speckx•19m ago•0 comments

Isolated Linux workstations for autonomous AI agents

https://github.com/Sanne/incus-spawn
2•LaSombra•21m ago•0 comments

Teenager wants to play Grand Theft Auto VI. Should you let them?

https://www.rnz.co.nz/life/screens/games/your-teenager-wants-to-play-grand-theft-auto-vi-should-y...
1•mustntmumble•21m ago•2 comments

Making microvms fast, persistence and cheap on GKE with Kata and CH

https://kosem.ai/blog/making-microvms-fast-for-coding-agents
1•yevpats•21m ago•0 comments

Anthropic mathematician claims proof of Riemann hypothesis with help of Claude

https://www.the-independent.com/tech/riemann-hypothesis-solved-levent-alpoge-b3088927.html
1•nfc•21m ago•0 comments

How People Behave in a Disaster and How to Survive One [video]

https://www.youtube.com/watch?v=B2I2Iqa758M
1•gmays•22m ago•0 comments

Include partners with Altex Romania, delivers smart city technology in Pecica

https://include.eu/newsroom/company/include-partners-with-altex-romania-delivers-smart-city-techn...
1•taubek•23m ago•0 comments

Internet Archive Staffers Are Unionizing

https://cwa-union.org/news/releases/internet-archive-workers-launch-union-campaign-communications...
4•todsacerdoti•23m ago•0 comments

Lagarde says EU funds should take first losses on chip plants

https://www.cnbc.com/2026/11/20/lagarde-eu-data-center-funding.html
2•Betelbuddy•24m ago•0 comments

The (Un)Cancellation of Erwin Schrödinger

https://jimbaggott.substack.com/p/the-uncancellation-of-erwin-schrodinger
1•mathgenius•25m ago•0 comments

PL/PgSQL

https://en.wikipedia.org/wiki/PL/pgSQL
1•doener•26m ago•0 comments

'Just Ridiculous': A Famed Philosopher Takes on AI Consciousness

https://www.wired.com/story/just-ridiculous-a-famed-philosopher-takes-on-ai-consciousness/
2•rafaelc•26m ago•0 comments