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•11mo ago

Comments

trbndev•11mo 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•11mo ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•11mo 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•11mo 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•11mo 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•11mo 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•11mo 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

Protect Your Shed

https://dylanbutler.dev/blog/protect-your-shed/
1•baely•1m ago•0 comments

Every Barrier Between AI Agents and Autonomy – A Practical Map

https://vibeagentmaking.com/blog/every-barrier-between-agents-and-autonomy/
1•vibeagentmaking•2m ago•0 comments

LLM scraper bots are overloading acme.com's HTTPS server

http://acme.com/updates/archive/229.html
2•mjyut•2m ago•0 comments

Trump and Iran announce two-week ceasefire that will open Strait of Hormuz

https://www.ft.com/content/2868ed5b-865f-4491-a78e-c84967d50c34
1•zlu•2m ago•0 comments

The Kernel Panicked (Apologies to the Front Fell Off)

https://twitter.com/morphillogical/status/2041711892159484172
1•rictic•3m ago•0 comments

Semiconductor Fabs III: The Data and Automation

https://nomagicpill.substack.com/p/semiconductor-fabs-iii-the-data-and
1•nomagicpill•3m ago•1 comments

Kennedy sets September deadline to identify cause of rising US autism rates (2025)

https://www.reuters.com/business/healthcare-pharmaceuticals/health-secretary-kennedy-says-us-will...
2•rzzzwilson•4m ago•1 comments

Show HN: Chrome Developer Tools on Android

1•rasengan•8m ago•0 comments

The Fundamentals Still Haven't Changed: Typewriters to Tokens

https://bunworkspaces.com/blog/typewriters-to-tokens
1•smorsic•11m ago•1 comments

Discovered This Baby

https://plannex.app/
1•Novakinify•16m ago•0 comments

After 6 months of solo building, I just launched my first SaaS

https://cogitly.com/
1•behnamsherafat•17m ago•0 comments

Hungary and Russia struck 12-point plan for closer ties, documents show

https://www.politico.eu/article/hungary-and-russia-struck-12-point-plan-for-closer-ties-documents...
2•JumpCrisscross•20m ago•1 comments

Free 1700 tailwind blocks. Enjoy

https://opentailwind.dev/
2•babacklindo•22m ago•0 comments

Pydantic-resolve – define relationships once, reuse across REST, GraphQL and MCP

https://allmonday.github.io/pydantic-resolve/
1•tank-34•23m ago•0 comments

OpenAI says its new model GPT-2 is too dangerous to release (2019)

https://slate.com/technology/2019/02/openai-gpt2-text-generating-algorithm-ai-dangerous.html
40•surprisetalk•24m ago•3 comments

US Electricity Price Heat Map

https://electricity.heatmap.news/
1•toomuchtodo•24m ago•2 comments

Financial Information for ICANN

https://www.icann.org/resources/pages/governance/financials-en
1•greyface-•26m ago•0 comments

Show HN: Replaced Neo4j with pure vector search for Graph RAG

https://github.com/zilliztech/vector-graph-rag
1•zhangchen•26m ago•0 comments

Why the Persian Gulf has more oil and gas than anywhere else on Earth

https://theconversation.com/why-the-persian-gulf-has-more-oil-and-gas-than-anywhere-else-on-earth...
1•pseudolus•28m ago•0 comments

Maine Is About to Become the First State to Ban New Data Centers

https://www.wsj.com/us-news/maine-data-center-ban-e768fb18
3•toomuchtodo•28m ago•0 comments

Sam Altman on Building the Future of AI [video]

https://forum.openai.com/public/videos/event-replay-sam-altman-on-building-the-future-of-ai-2026-...
1•erickhill•31m ago•0 comments

Phillips Machine

https://en.wikipedia.org/wiki/Phillips_Machine
2•curio_Pol_curio•34m ago•0 comments

Show HN: Mdstitch – NPM for Markdown Files

https://github.com/tannerjames711/mdstitch
1•tannerjames711•34m ago•0 comments

Bill Phillips used flowing water to model the economy

https://www.npr.org/sections/planet-money/2026/04/07/g-s1-116575/how-bill-phillips-used-flowing-w...
4•curio_Pol_curio•36m ago•0 comments

Visual Hallucinations in Psychedelics vs. Schizophrenia

https://psychedelirium.substack.com/p/pharmacology-vs-pathology-of-altered
1•yenniejun111•45m ago•0 comments

'This Is Just Not How the Human Race Should Operate,' Says US Senator

https://www.commondreams.org/news/chris-murphy-trump-threat
14•hkhn•48m ago•2 comments

OpenSource: Native screen recorder extension for Chrome

https://github.com/mbarlow/chrome-recorder
1•moo-jason•52m ago•1 comments

Larger and more instructable language models become less reliable

https://pmc.ncbi.nlm.nih.gov/articles/PMC11446866/
4•gmays•52m ago•0 comments

America: A Bet Worth Taking If You're Built for It

https://code2net.com/usa
2•xyz_ielh•1h ago•3 comments

Nodepad

https://www.nodepad.space/
2•skogstokig•1h ago•0 comments