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

A Schema Named Hash Sent Our Ruby SDK into Infinite Recursion

https://octri.dev/blog/schema-names-shadow-standard-library
2•khalidkhair•5m ago•0 comments

Show HN: Kotlean: write Android apps in Lean

https://github.com/kbr-/kotlean
1•kbr-•5m ago•0 comments

Silent degradation is back, Fable and Mythos 5.2 perform at level of Opus 5.5

https://twitter.com/sfxnz/status/2120058367825908031
2•espeed•6m ago•1 comments

Yahoo is betting the house on its new AI, from search to all its services

https://www.fastcompany.com/91637528/yahoo-scout-new-search-ux
1•mkmk•6m ago•0 comments

Getting Started with OpenIndiana

https://docs.openindiana.org/handbook/getting-started/
1•measurablefunc•7m ago•0 comments

Show HN: Broken links silently waste your Google crawl budget

https://sitetoolsbox.com/article.php?id=55
1•kagouhui•10m ago•0 comments

A real-time city-infra map of Seattle

https://busytowns.org
1•abouhmad•12m ago•1 comments

MoofPort: An Open-Source WiFi Ethernet Driver for the Wi-Fi on Classic Mac

https://github.com/matthewmrichter/moofport
1•marcusbasant•14m ago•1 comments

Why did an Anglo-Saxon kingdom mint copper coins when silver was plentiful?

https://www.cambridge.org/core/journals/antiquity/article/debasement-and-the-production-of-copper...
1•titusblair•21m ago•1 comments

We Tore Down the MacBook Proled XDR and Found the Secret of the Glowing Apple

https://www.ifixit.com/News/120152/we-tore-down-the-macbook-proled-xdr-and-found-the-secret-of-th...
2•gnabgib•21m ago•0 comments

Powerful New Embedded C++ Scripting Language

https://jaiscript.com/
1•Devacor•24m ago•1 comments

Adobe brings AI agents and new creative tools to Photoshop Premiere and Firefly

https://techcrunch.com/2026/11/10/adobe-adds-more-ai-to-its-products-and-launches-an-mcp/
1•belcairn•24m ago•0 comments

OpenAI Continues to Suffer Heavy Losses as Revenue Rises to $10B

https://www.wsj.com/business/earnings/openai-continues-to-suffer-heavy-losses-as-revenue-rises-to...
3•JumpCrisscross•28m ago•2 comments

The Best Algebras Are Spinny [video]

https://www.youtube.com/watch?v=-k-Dnw0F3kc
1•marvinborner•29m ago•0 comments

PG Finds – PostgreSQL Articles and Tools from Hacker News

https://albedoweb.github.io/pg-finds/
1•albedoweb•30m ago•0 comments

Build-Aware Context and a Checking Harness for C++ Coding Agents

https://byteask.ai/research/byteask-system-cpp
1•anirudhak•31m ago•0 comments

Show HN: Vaultbase – a self-hosted back end in a single binary

https://github.com/vaultbase-sh/vaultbase
1•khalidsheet•32m ago•0 comments

Stanley Zabar Has Died at 94

https://www.nytimes.com/2026/11/10/obituaries/stanley-zabar-dead.html
3•bmmayer1•32m ago•0 comments

How I became a machine learning practitioner (2019)

https://blog.gregbrockman.com/how-i-became-a-machine-learning-practitioner
1•brandonb•32m ago•0 comments

AI proved your code correct. What did it actually prove?

https://kellerai.io/resources/ai-proved-your-code-correct
3•trehans•38m ago•1 comments

30 years of Internet transfers with curl

https://daniel.haxx.se/blog/2026/11/11/30-years-of-internet-transfers-with-curl/
3•sohkamyung•39m ago•0 comments

Openrouter will scan all traffic, adds human review

https://openrouter.ai/blog/announcements/csam-screening/
1•leafingensemble•39m ago•1 comments

Show HN: Code-to-ERD tool that only renders the tables you're currently editing

https://sqlestev.com
1•lestev•40m ago•1 comments

The Four Tiers of AI Intelligence

https://blog.coship.fyi/blog/ai-tiers/
1•Bolwin•42m ago•0 comments

Visualizing the Flow of Energy Through the U.S. Economy

https://www.viz.gl/projects/energy-flow/
2•skadamat•43m ago•1 comments

Extending LLDB to Debug Applications That Span CPUs and GPUs

https://engineering.fb.com/2026/11/09/developer-tools/extending-lldb-to-debug-applications-that-s...
3•JDevlieghere•51m ago•0 comments

The coming war on general computation [video]

https://www.youtube.com/watch?v=HUEvRyemKSg
1•Bluestein•52m ago•0 comments

Show HN: Rystic – Stateful Local Simulators of Slack, GitHub and Linear

https://www.rystic.ai
3•evan_whitehouse•55m ago•0 comments

LLMs Play Zachtronics' TIS-100

https://tis-100.wincon.dev/
3•fairestvalue•1h ago•0 comments

I built a Rio de Janeiro Map in Isometric Pixel Art style [video]

https://www.youtube.com/watch?v=OeYzRevuSCQ
2•bdelmas•1h ago•1 comments