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 Clawd Grip: breaking free from Logitech G HUB

https://louisabraham.github.io/articles/clawd-grip
1•Labo333•17s ago•0 comments

Lindsey Graham dies at 71 after sudden illness

https://www.cnn.com/2026/07/12/politics/sen-lindsey-graham-dies-at-71-hnk
1•kilroy123•18s ago•0 comments

Stop Memorizing Design Patterns: Use This Decision Tree Instead

https://medium.com/womenintechnology/stop-memorizing-design-patterns-use-this-decision-tree-inste...
1•bmacho•36s ago•0 comments

Why Cursor Is the Most Practical Choice for Beginners in Agentic Coding

https://calcrecipe.com/en/workshop/6
1•wsdn•2m ago•0 comments

Jj v0.43.0 Released

https://github.com/jj-vcs/jj/releases/tag/v0.43.0
1•birdculture•4m ago•0 comments

FreeCAD: New Addon; Banana for Scale

https://blog.freecad.org/2026/07/12/new-addon-banana-for-scale/
2•Klaster_1•5m ago•0 comments

Morosx MX88 Manet [video]

https://www.youtube.com/watch?v=yFxEGkT_pfw
1•marklit•8m ago•0 comments

Waldi: A quiet place to write, and to be read

https://github.com/waaldev/waldi
1•waaldev•10m ago•0 comments

AI backlash hits university: laptops and phones banned for law students

https://www.foxnews.com/media/ai-backlash-reaches-major-university-bold-ban-laptops-phones-students
2•01-_-•11m ago•0 comments

MRI Grid Viewer

https://github.com/MarvinSchwaibold/mri-grid-viewer
1•dsego•12m ago•0 comments

IT administrators are "fed up" with Microsoft's "useless" apps and Windows 11

https://www.neowin.net/news/it-admins-feel-overwhelmingly-sick-of-microsoft-and-windows-11-garbag...
4•01-_-•14m ago•0 comments

What Makes Humans Stupid

https://nautil.us/what-makes-humans-stupid-1282459
2•imartin2k•14m ago•0 comments

On-call Engineer 2026 [video]

https://www.youtube.com/watch?v=sY1UqUuBqQQ
1•throwaway2027•16m ago•0 comments

Woman in Brazil enslaved for 55 years by 3 generations of the same family

https://english.elpais.com/international/2026-07-10/woman-rescued-in-brazil-after-being-enslaved-...
3•RetroTechie•18m ago•0 comments

X for Y Programmers

https://www.chrisfinke.com/x-for-y/
1•joshbetz•19m ago•0 comments

Old and new apps, via modern coding agents by Terry Tao

https://terrytao.wordpress.com/2026/07/11/old-and-new-apps-via-modern-coding-agents/
2•subset•27m ago•0 comments

Mnema: A local, encrypted memory layer for AI agents

https://github.com/MerlijnW70/mnema
1•MerlijnW70•27m ago•0 comments

Memory makers are slaves to the boom-bust rollercoaster

https://www.theregister.com/ai-and-ml/2026/07/12/memory-makers-are-slaves-to-the-boom-bust-roller...
1•jnord•27m ago•0 comments

Putin Turned Japan into a Den of Spies

https://www.nytimes.com/2026/07/12/world/asia/russia-spies-japan-war-drones-electronics.html
3•JumpCrisscross•28m ago•1 comments

Show HN: Dr. Wong – an AI space for journaling and self-reflection

https://www.drwongai.com
1•superyuan•29m ago•0 comments

A Gang of Thieves Pulled Off a Multimillion-Dollar Data Center Heist

https://www.nytimes.com/2026/07/12/magazine/data-center-heist.html
3•reaperducer•30m ago•1 comments

A Python data-handling pattern (gDS) & framework for testing concurrent systems

https://www.testingcomplexsystems.com
1•TAlborough•31m ago•0 comments

Louis de Bernières children's childhood ended the moment they got smartphones

https://www.rnz.co.nz/life/books/as-far-as-i-can-see-my-children-s-childhood-ended-the-moment-the...
2•tigerlily•35m ago•0 comments

Scientists' Side Hustle? Using AI and Quantum Computing to Generate New Peptides

https://www.wired.com/story/scientists-using-ai-and-quantum-computing-to-generate-new-peptides/
2•joozio•35m ago•0 comments

AI Agents Are About to Change Payments Operations

https://open.spotify.com/episode/41kRSmDW5IKhvamyzlPxqq
2•siroj•37m ago•1 comments

25% long-form social media posts appear AI-generated

https://www.theregister.com/ai-and-ml/2026/07/09/ai-slop-writing-has-taken-over-the-internet-part...
3•u1hcw9nx•38m ago•1 comments

Laws of Project Management

https://www.lucasfcosta.com/blog/laws-of-software-project-management
3•lucasfcosta•39m ago•0 comments

Some features work in design meetings but fail in the real world

https://mattcasmith.net/2026/07/12/feature-design-testing
1•mattcasmith•40m ago•0 comments

OpenAI's Head of Safety Is Leaving the Company

https://www.wired.com/story/openai-head-of-safety-leaving/
4•theanonymousone•41m ago•0 comments

Databricks AI Agent Genie Code Is No Longer Free. Now You Have to Pay as You Go

https://medium.com/databrickscommunity/databricks-ai-agent-genie-code-is-no-longer-free-now-you-h...
2•protmaks•43m ago•0 comments