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

How much of an environmental menace is AI?

https://www.cnn.com/2026/10/16/climate/ai-environmental-impact-energy-water-noise-explainer
1•conferza•30s ago•0 comments

AiDocEngine – MS Word, Excel, PDF Ingestion and Semantic Chunking for RAG

https://aidocengine.com
1•qaultradev•1m ago•0 comments

The Most Significant Moment in Math History Just Happened [video]

https://www.youtube.com/watch?v=3yXtXTwz4J4
1•pretext•1m ago•0 comments

Laws You Can Feel – Laws and heuristics deciding how an interface feels to use

https://lawsyoucanfeel.com/
1•nikolay•1m ago•0 comments

AI Capital Spending Is Booming. But What About Shareholder Returns?

https://michaelhillaert1.substack.com/p/valuation-dislocation-october-2026
2•michaelhillaert•4m ago•0 comments

Eulogy for the Software Engineer [video]

https://www.youtube.com/watch?v=uuKOXGVIP8I
1•linsomniac•9m ago•0 comments

Show HN: I turned mrdoob's Slop New York into a 3D billboard bidding game

https://makeitanywhere.xyz/
1•ymattia•9m ago•0 comments

Contract Watch – emails when a smart contract's code, owner or signers change

https://smartcontractauditor.ai/contract-watch
2•ninjafromqueens•12m ago•0 comments

Wall Street closes sharply lower as AI cash burn fears spark tech selloff

https://www.reuters.com/business/nasdaq-futures-tumble-amazon-intel-results-deepen-ai-spending-wo...
4•geox•12m ago•0 comments

Sanstun: A sans-IO, parallel-friendly WireGuard implementation in Rust

https://www.firezone.dev/blog/introducing-sanstun
2•wh33zle•15m ago•0 comments

Show HN: Balk – A Baseball Game

https://balk.club
2•mandymoorefan•15m ago•0 comments

Web-MCP-Bridge – Connect browser-based LLMs to MCP servers and tools

https://github.com/AstraxOf/web-mcp-bridge
2•astraxof•18m ago•0 comments

Using AI to Revive Frozen Bubble

https://github.com/guax/frozen-bubble
2•guax•19m ago•1 comments

NHS warns of risk to GP patient data after website vendor collapse

https://www.theregister.com/public-sector/2026/10/30/nhs-quango-warns-of-risk-to-gp-patient-data-...
8•bhavansig•20m ago•1 comments

Wholesome Games

https://wholesomegames.com
1•doener•21m ago•0 comments

Network Infrastructure Hiding Protocol

https://opennhp.org/
2•mlhpdx•23m ago•0 comments

OpenAI's latest discoveries spark a backlash and Help My kid hates AI

https://text.npr.org/nx-s1-6022556
2•erikschoster•24m ago•0 comments

GitLab Orbit

https://about.gitlab.com/blog/find-vulnerability-blast-radius-with-gitlab-orbit/
6•andrewstetsenko•26m ago•0 comments

Show HN: News article bias detector tool

https://aethelgard.news/
2•Tryvrsakjo10•27m ago•0 comments

From blank page to PDF in three steps AI resume builder

https://nokku.payanai.com/resume-builder
1•payanai•27m ago•0 comments

Archive of our own (AO3) hacked

https://www.otwstatus.org
1•idlewords•28m ago•0 comments

Inquest: An AI Infrastructure Investigator Using Nemotron and MCP [video]

https://www.youtube.com/watch?v=ZvImEHQ09UY
1•abhinaystha•33m ago•0 comments

Democrats' Secret Effort to Stack Alaska's Ballot

https://www.nytimes.com/2026/10/28/us/politics/alaska-dan-sullivan-conspiracy-peltola.html
4•nonethewiser•36m ago•6 comments

The Shady Israeli Executive Running YouTube Music and the Hip Hop Industry

https://www.mintpressnews.com/lyor-cohen-the-shady-israeli-executive-running-youtube-music-the-gl...
16•lorecore•37m ago•0 comments

Show HN: Optimized CUDA forced alignment kernels. 10x – 1000x faster

https://github.com/brthor/fast-forced-aligner
1•bthornbury•38m ago•0 comments

Generative AI's Environmental Impact

https://news.mit.edu/2025/explained-generative-ai-environmental-impact-0117
3•conferza•38m ago•0 comments

Open Agent Primitives: Run enterprise AI agents securely

https://openap.org
1•samkim•39m ago•0 comments

Set Up Stripe Data Pipeline for ClickHouse

https://bookofrevenue.com/blog/6ae4d508e115910001bc9bb2/set-up-stripe-data-pipeline-for-clickhouse
1•tanin•43m ago•0 comments

Show HN: Ultrafast Rust Based ADE

https://trypalomino.com/
6•gpt-7•47m ago•9 comments

Show HN: HackerFlow – A Responsive HN Reader

https://hn.vinceroyer.ca/
2•vinistois•47m ago•0 comments