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

I built my AI Chief of Staff

https://www.cesarrg.com/how-i-built-my-ai-chief-of-staff/
1•cesarrg•4m ago•0 comments

Notes about reading messages with the Python email packages

https://utcc.utoronto.ca/~cks/space/blog/python/EmailPackagesNotes
1•ankitg12•5m ago•0 comments

Spotify's ugly new disco ball icon accomplished its goal

https://www.businessinsider.com/spotify-disco-ball-icon-logo-app-ugly-2026-5
1•doppp•9m ago•0 comments

An Update from Cloudflare's Community Champions (Layoffs)

https://old.reddit.com/r/CloudFlare/comments/1ti4456/an_update_from_cloudflares_community_champions/
1•mmarian•10m ago•1 comments

Cold Email Roaster

https://zerohypelab.com/cold-email-roaster/
1•tbergmann•10m ago•0 comments

What Do Gödel's Incompleteness Theorems Mean?

https://www.quantamagazine.org/what-do-godels-incompleteness-theorems-truly-mean-20260518/
2•isaacfrond•12m ago•0 comments

FBI seeks US-wide access to license plate cameras, wants data in near real time

https://arstechnica.com/tech-policy/2026/05/fbi-seeks-us-wide-access-to-license-plate-cameras-wan...
2•ndsipa_pomu•13m ago•0 comments

Moving from API Operations to Business Capabilities

https://medium.com/@bpedro/moving-from-api-operations-to-business-capabilities-cbff4e08f7b7
1•bpedro•15m ago•0 comments

Parakeet Translates French Audio

https://thoth-app.com/blog/2026-05-19-parakeet-language-drift/
1•MattVePhD•20m ago•1 comments

The Many Kings Problem: Why Humans May Survive an Age of Superior AI [pdf]

https://zenodo.org/records/20281580
1•AccidentalOrder•20m ago•0 comments

LG Electronics Introduces First Native 1000Hz Full HD Gaming Monitor

https://www.lg.com/global/newsroom/news/media-entertainment-solution/lg-electronics-introduces-wo...
2•ksec•20m ago•0 comments

Why Elon Musk lost his suit against OpenAI

https://www.technologyreview.com/2026/05/18/1137488/elon-musk-suit-openai-verdict/
2•Judyrabbit•21m ago•0 comments

I built a scrubber to prevent AI from reading your secrets

1•svn-arv•24m ago•0 comments

RFC 7489 obsoleted and receivers MUST now downgrade to quarantine by default

https://www.rfc-editor.org/rfc/rfc9989.html
3•meysamazad•31m ago•0 comments

Meta Begins Laying Off 8000 Employees

https://www.nytimes.com/2026/05/19/technology/meta-layoffs-ai.html
1•andsoitis•35m ago•0 comments

Show HN: Claude Code Bundle for Bug Hunting with 574 Report Patterns

https://github.com/elementalsouls/Claude-BugHunter
1•ishqdehlvi•36m ago•0 comments

The great digital media valuation collapse

https://www.axios.com/2026/05/19/buzzfeed-media-fire-sales
2•thm•37m ago•0 comments

External Secrets Operator

https://external-secrets.io/latest/introduction/overview/
1•ankitg12•37m ago•0 comments

It used to be a beautifully imperfect world

https://user8.bearblog.dev/it-used-to-be-a-beautifully-imperfect-world/
1•James72689•37m ago•0 comments

UK needs urgent changes to survive global heating

https://www.theguardian.com/environment/2026/may/20/uk-built-for-climate-that-no-longer-exists-an...
1•andsoitis•38m ago•0 comments

A physical dial that locks your screens until you turn it back

https://miradial.com/
1•Kaljurahn•41m ago•0 comments

Join the Waitlist Mobile App

https://getstreek.com/
1•cnnadozi•43m ago•0 comments

Ambient Signifiers

https://boxesandarrows.com/ambient-signifiers/
1•tosh•44m ago•0 comments

Meta lays off ~8k employees

https://www.businessinsider.com/layoff-meta-severance-details-cobra-jobs-2026-5
2•almogo•44m ago•0 comments

SubAlert – get alerted before any subscription charges you

https://www.subalert.org
1•momolii•45m ago•1 comments

Trusted Publishing for NPM Packages

https://docs.npmjs.com/trusted-publishers/
1•Ozzie_osman•45m ago•1 comments

Investigation of unauthorized access to GitHub's internal repositories

https://xcancel.com/i/status/2056949168208552080
2•doener•46m ago•1 comments

The way you draw circles says a lot about you

https://qz.com/994486/the-way-you-draw-circles-says-a-lot-about-you
2•yzydserd•49m ago•0 comments

How to use Claude Code like you've used it for a year

https://codeaholicguy.com/2026/05/20/claude-code-guide-how-to-use-claude-code-like-youve-used-it-...
1•hoangnnguyen•49m ago•0 comments

Gemini Omni

https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-omni/
2•Lucasoato•49m ago•0 comments