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 lightweight C implementation of Unix utilities (grep/tail/cat)

https://github.com/b3hzzzad/c-unix
1•behzad163•41s ago•0 comments

LabRobotBench v0.1: Benchmarking wet lab robotics

https://gamowlabs.com/lab-robot-bench-v0-1
3•wardbradt•3m ago•0 comments

Help Us Improve Techrights

https://techrights.org/n/2026/10/20/Help_Us_Improve_Techrights.shtml
1•amcclure•5m ago•0 comments

Wolcott man pleads guilty to $1M cryptocurrency fraud

https://www.wtnh.com/news/connecticut/new-haven/wolcott-man-pleads-guilty-to-1m-cryptocurrency-fr...
2•paulpauper•11m ago•0 comments

A Nice Tracking Website

https://www.trumpactiontracker.info/?domains=1%2C1%2C0%2C0%2C0%2C0%2C0%2C1%2C0%2C0
1•oldfuture•11m ago•0 comments

Show HN: Wellbody [Body Health Tamagotchi]

https://wellbody.me
1•RAGcontent•11m ago•0 comments

New Proliferation Era – Why more countries will build the bomb

https://northbranchmedia.substack.com/p/the-new-proliferation-era
1•northbranchm•12m ago•0 comments

Show HN: Drop in a folder of HTML and get back a private URL

https://eze.page/
1•ahyield•13m ago•0 comments

A Decade-Old Bug That Could Have Minted Unlimited XRP

https://247wallst.com/investing/cryptocurrency/2026/10/10/a-decade-old-bug-that-could-have-minted...
1•paulpauper•14m ago•0 comments

MapleSpire – Open-source C4 architecture modelling, offline-first

https://maplespire.ca/en/
2•oliveralbertini•15m ago•0 comments

A $168,000 Michael Jordan rookie card rocked the $15B card industry

https://www.businessinsider.com/anthony-curcio-trading-fraud-scandal-psa-2026-8
1•paulpauper•16m ago•0 comments

Do Not Trust, Continuously Verify (Your AI Agents)

https://altchan.org/sh/41
1•Bender•17m ago•0 comments

Upcoming Critical PHP Security Release (CVSSv4 score of 9.2)

https://www.php.net/index.php
3•kacy•17m ago•0 comments

Show HN: One click flight booking in Claude

https://mcp.bonbook.co/claude-setup
4•themagyar•22m ago•2 comments

AGI-S – an AI platform I'm building

1•smitsjoshi•22m ago•1 comments

Musk calls Tesla-SpaceX merger a 'good idea'

https://www.reuters.com/business/media-telecom/spacex-quarterly-revenue-jumps-beats-estimates-ai-...
6•lossolo•25m ago•3 comments

When AI agents take matters into their own hands

https://www.economist.com/business/2026/10/15/when-ai-agents-take-matters-into-their-own-hands
2•ijidak•27m ago•0 comments

How We Manage More Than 11,000 Application Configuration Parameters

https://medium.com/@krawa76/how-we-manage-more-than-11-000-application-configuration-parameters-1...
2•krawa76•29m ago•0 comments

Generate Scripts with Amytis

https://www.amytis.io/blog/generate-scripts-with-amytis
2•JohnHammersley•29m ago•0 comments

Node.js Wednesday, October 21, 2026 Security Releases

https://nodejs.org/en/blog/vulnerability/october-2026-security-releases
2•defenestration•31m ago•0 comments

Push-based KV transfer to improve TTFT, TPOT for disaggregated inference in vLLM

https://aws.amazon.com/blogs/machine-learning/push-based-kv-transfer-to-improve-ttft-and-tpot-for...
3•gmays•31m ago•0 comments

Tiny London

https://tiny.london/
2•duck•33m ago•0 comments

Three nested stars suffice in generalized regex [pdf]

https://github.com/openai/math/blob/main/preprints/Generalized-Star-Height-at-Most-Three-Septembe...
2•rnbnnnn•37m ago•1 comments

Learning Without Backpopagation

https://idlemachines.co.uk/essays/learning-without-backpropagation
4•smaddrellmander•37m ago•0 comments

Doom and Tim = AAAAuehhh [video]

https://www.youtube.com/watch?v=RDBpSvLBBlM
2•hefner1456•38m ago•0 comments

Do Spammers Deserve Death?

https://www.gojiberries.io/do-spammers-deserve-death/
2•neehao•38m ago•1 comments

Show HN: Pace or Pause – Explore where people stand on AI development

https://paceorpause.com/
2•DashiellB•39m ago•0 comments

Revisiting Open Science in the Age of AI

https://carlystrasser.substack.com/p/revisiting-open-science-in-the-age
3•JohnHammersley•42m ago•0 comments

1,208,577 business ideas. Free

https://idealab.ai/
4•pmdlt•46m ago•3 comments

Cities Across the World Sinking from Groundwater Depletion: It Can Be Reversed

https://cleantechnica.com/2026/10/20/cities-across-the-world-are-sinking-because-of-groundwater-d...
2•gumby•46m ago•0 comments