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•11mo ago

Comments

trbndev•11mo 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•11mo ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•11mo 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•11mo 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•11mo 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•11mo 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•11mo 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

Tempest vs. Tempest: The Making and Remaking of Atari's Iconic Video Game

https://tempest.homemade.systems
1•mwenge•2m ago•0 comments

Small regulatory RNAs show changes in schizophrenia and bipolar disorder

https://www.nature.com/articles/s41398-026-03808-x
1•PaulHoule•2m ago•0 comments

How many alarms do you usually set in the morning?

1•purplenight•3m ago•0 comments

Hermes Agent – A self-improving AI agent

https://hermes-agent.nousresearch.com
1•rob•4m ago•0 comments

AI Tokens Optimization

https://tokenpinch.com
1•javiercast•5m ago•1 comments

Stalwart v0.16: A New Foundation

https://stalw.art/blog/stalwart-0-16/
1•birdculture•6m ago•0 comments

A deadly bacteria is creeping up the Atlantic Coast

https://grist.org/health/vibrio-bacteria-florida-shellfish/
2•Brajeshwar•14m ago•0 comments

Ask HN: Feedback request on new external network attack surface discovery tool

https://turbopentest.com/cloud-easm
1•integsec•14m ago•1 comments

Aegis Solis Archive: Hash manifest for cross-platform verification

https://archive.org/details/aegis-solis-archive-master-hash-manifest-v-13-final
1•aegissolis•15m ago•0 comments

How to turn off Google AI overview

https://substack.com/@grefiti/p-192810091
1•olafnub•15m ago•0 comments

The D.C. devotees of a niche arcade game (Killer Queen)

https://51st.news/where-to-play-killer-queen-arcade-game-washington-dc-midlands/
1•gnabgib•16m ago•0 comments

China backs orbital data center startup with $8.4B in credit lines

https://spacenews.com/china-backs-orbital-data-center-startup-with-8-4-billion-in-credit-lines/
2•ivewonyoung•16m ago•0 comments

Show HN: Kumbukum, open source memory infrastructure for teams

https://kumbukum.com/
1•nitai•18m ago•0 comments

Taktile's Agentic Decision Platform

https://taktile.com/
1•doener•19m ago•0 comments

OpenAI's response to the Axios developer tool compromise

https://openai.com/index/axios-developer-tool-compromise/
1•shpat•19m ago•0 comments

CubeSandbox: Tencent's sandbox for ai agents

https://github.com/tencentcloud/CubeSandbox
1•ElasticBottle•22m ago•0 comments

A Open Source Repo to Track Elected Officials Investments

https://github.com/prixe-api/politicians
1•mc587•25m ago•0 comments

Fraud and the false optimism of AI for science

https://statmodeling.stat.columbia.edu/2026/04/22/fraud-and-the-false-optimism-of-ai-for-science/
1•ivansavz•26m ago•0 comments

Hershey's Electric Railway in Cuba

https://spectrum.ieee.org/hershey-electric-railway-cuba
2•Brajeshwar•28m ago•0 comments

Zero Has Meaning

https://medallurgy.substack.com/p/zero-has-meaning
1•Origamidan•29m ago•0 comments

Kalshi suspends 3 congressional candidates for wagering on their own elections

https://apnews.com/article/prediction-markets-kalshi-congress-candidates-elections-betting-37766e...
4•geox•31m ago•0 comments

Clippy Is Back, Your Desktop AI Paperclip Agent over GUI

https://github.com/AmrDab/clippyai-desktop
1•AmDab•32m ago•0 comments

IRGC-linked media hints at threat to Persian Gulf undersea internet cables

https://www.iranintl.com/en/202604225913
2•tokyobreakfast•35m ago•0 comments

An MCP Server for Fastmail – National Email Day

https://www.fastmail.com/blog/an-mcp-server-for-fastmail/
2•nmjenkins•35m ago•0 comments

Show HN: Autobrowse – a self-improving harness for learning browser tasks

https://twitter.com/shreypandya/status/2047100550446280792
3•smpandya•39m ago•0 comments

It's all about the angle: Your photos, re-composed

https://research.google/blog/its-all-about-the-angle-your-photos-re-composed/
1•CharlesW•40m ago•0 comments

HuntifyAI – I built an AI tools while deep in AI research and vibe coding

https://huntifyai.com/
1•ningshenbj•40m ago•0 comments

Auth Without Tokens [video]

https://www.youtube.com/watch?v=QmTyKqoAb5M
1•hisamafahri•41m ago•0 comments

News.Y Combinator.com/Submit

https://github.com/eishops23/agent-sdk
1•23fedner•41m ago•0 comments

US Could Own Up to 90% of Spirit in $500M Rescue Plan

https://www.bloomberg.com/news/articles/2026-04-22/trump-administration-nears-500m-spirit-rescue-...
3•petethomas•41m ago•0 comments