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•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

OpenAI Trial – Greg Brockman's Journal

https://www.wsj.com/tech/musk-openai-trial-greg-brockman-diary-journal-6950270e
1•ilarum•2m ago•0 comments

Could At-Home Brain Stimulation Reduce Psychiatry's Reliance on S.S.R.I.s?

https://www.nytimes.com/2026/04/28/health/depression-at-home-brain-stimulation-fda.html
1•bookofjoe•3m ago•1 comments

Open source rule based guardrails for coding agents

https://github.com/falcosecurity/prempti/tree/main
1•knoxa2511•3m ago•0 comments

America is experiencing a productivity miracle

https://www.economist.com/finance-and-economics/2026/05/11/america-is-experiencing-a-productivity...
1•mackmcconnell•10m ago•0 comments

Turritopsis Dohrnii

https://en.wikipedia.org/wiki/Turritopsis_dohrnii
1•thelastgallon•12m ago•0 comments

Loading/running every LLM with 4M ctx in 3 clicks

https://old.reddit.com/r/Hugston/comments/1tbgrbb/4_million_ctx_for_every_ai_llm_model/
1•trilogic•12m ago•0 comments

DuckDB Quack Announcement [video]

https://www.youtube.com/watch?v=RQBhuL9Ve8g
1•fredguth•15m ago•0 comments

The Unmet Needs Index

https://www.convoke.bio/blog/introducing-the-unmet-needs-index
3•ray__•18m ago•0 comments

How AI Is Making Us All Dumber [video]

https://www.youtube.com/watch?v=eSABedBwZjQ
2•mooreds•19m ago•0 comments

All the demons hiding in your AIs

https://drtompollak.substack.com/p/all-the-demons-hiding-in-your-ais
1•gmays•19m ago•0 comments

Companies start getting tariff refunds after Supreme Court decision

https://www.cnbc.com/2026/05/12/trump-tariff-refunds.html
2•tcp_handshaker•20m ago•0 comments

Apple will soon start using AI-generated presenters on its Sales Coach app

https://9to5mac.com/2026/05/12/apple-will-soon-start-using-ai-generated-presenters-on-its-sales-c...
1•cdrnsf•21m ago•0 comments

Twin brothers wipe 96 government databases minutes after being fired

https://arstechnica.com/tech-policy/2026/05/drop-database-what-not-to-do-after-losing-an-it-job/
2•jnord•22m ago•0 comments

The revolt against I-Ready: Private equity-backed education software faces fury

https://www.nbcnews.com/news/education/iready-school-software-faces-parent-teacher-student-fury-r...
1•Umofomia•23m ago•0 comments

I Bought a "Junk" PSP from Japan: Here's How It Went

https://gardinerbryant.com/i-bought-a-junk-psp-from-japan-heres-how-it-went/
1•Kate0CoolLibby•23m ago•0 comments

Subvert: The music platform owned by its community

https://www.subvert.fm/
1•vectordust•24m ago•0 comments

Preview bill is now available

https://copilot-billing-preview.github.com/
1•predkambrij•26m ago•0 comments

Empathy as Principal Computation Substrate

1•mimoos•32m ago•0 comments

Two Thousand Line educational operating system released by Cornell University

https://github.com/yhzhang0128/egos-2000
3•argosopentech•37m ago•1 comments

DeepSeek V4's indexer dies at 65K. We got it to 1M on 6GB

https://arxiv.org/abs/2605.02568
5•OsamaJaber•37m ago•0 comments

Mm-ctx – fast, multimodal context for agents

https://huggingface.co/posts/spillai/891696740911772
2•visioninmyblood•41m ago•1 comments

Open Source Claude Code Offer to Help

1•diavelguru•44m ago•0 comments

Idle Musings on 201

https://www.solipsys.co.uk/ZimExpt/IdleMusingsOn201.html
1•ColinWright•47m ago•0 comments

Fossier – GitHub spam prevention for open source repositories

https://github.com/PThorpe92/fossier
1•pabs3•47m ago•0 comments

Ask HN: Does anyone know what a monad is?

3•etrvic•47m ago•3 comments

Canvas's owner strikes deal with hackers who disrupted schools

https://www.washingtonpost.com/education/2026/05/12/canvass-owner-strikes-deal-with-hackers-who-d...
1•TruffleLabs•49m ago•2 comments

Jho Low, Fugitive Behind 1MDB Scandal, Seeks Pardon from Trump

https://www.wsj.com/finance/jho-low-fugitive-behind-1mdb-scandal-seeks-pardon-from-trump-2ce04db1
3•impish9208•50m ago•1 comments

Why This Is Not a Newsletter

https://nathanschneider.info/2026/05/why-this-is-not-a-newsletter/
1•ntnsndr•51m ago•0 comments

I built a free PII scanner for LLM prompts. No signup needed

https://aisecuritygateway.ai/ai-leak-checker
2•binugeorge•51m ago•0 comments

The Cults of TDD and GenAI

https://drewdevault.com/blog/Cult-of-TDD-and-LLMs/
3•pabs3•52m ago•0 comments