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

Comments

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

Chronoo – a web-based journaling app where data is stored locally in the browser

https://github.com/altilunium/chronoo
1•altilunium•3m ago•0 comments

Show HN: Walkie-Talkie – Access your terminal from any browser with one command

https://www.walkie-talkie.dev/
1•vochsel•4m ago•0 comments

Noelia Castillo Euthanasia Case

https://en.wikipedia.org/wiki/Noelia_Castillo_euthanasia_case
1•stared•5m ago•0 comments

See what your AI agents are doing (multi-agent observability tool)

https://github.com/hit1001/multiagent-visibility-tool
1•denhit10•6m ago•0 comments

Show HN: Writevoid.com – stop writing, and the void takes it

https://writevoid.com
1•user_timo•7m ago•1 comments

Data centre to be built near planned Polish nuclear power plant

https://world-nuclear-news.org/articles/data-centre-to-be-built-near-planned-polish-nuclear-power...
1•mpweiher•10m ago•0 comments

Ipxlat: a stateless IPv4/IPv6 translation device

https://lore.kernel.org/netdev/20260319151230.655687-1-ralf@mandelbit.com/T/#m6b6603d690f9bd7f85c...
1•argulane•11m ago•0 comments

I built Amazon dynamo in elixir

https://jitesh117.github.io/blog/implementing-amazon-dynamo-in-elixir/
1•Jitesh117•12m ago•0 comments

A discrete-logic solution to the Three-Body Problem (99% compute saving)

https://github.com/alikamp/Parks-Node-Ejection-Protocol
1•kauai1•13m ago•0 comments

Splitflap.org: open-source split-flap display for any screen

https://splitflap.org/
1•mohdmahmodi•14m ago•0 comments

You shall know them by their scams

https://terminaldrift.substack.com/p/you-shall-know-them-by-their-scams
1•limbicsystem•17m ago•0 comments

Show HN: 10 Lines of Python to fix mangled copy-paste from Claude Code

1•collectedparts•18m ago•0 comments

Ronda Rousey Fights Like an Outlier (2015)

https://fivethirtyeight.com/features/ronda-rousey-fights-like-an-outlier/
1•chistev•18m ago•1 comments

Understanding the Go Runtime: The Garbage Collector

https://internals-for-interns.com/posts/go-garbage-collector/
1•valyala•18m ago•0 comments

Proxybase IP Whois Aggregator

https://proxybase.xyz/ip
1•m00dy•19m ago•0 comments

Final analysis of 2025 Iberian blackout: electrical grid operating policies left

https://arstechnica.com/science/2026/03/final-analysis-of-2025-iberian-blackout-policies-left-spa...
1•fanf2•22m ago•0 comments

Rustlings - Small exercises to get you used to reading and writing Rust code

https://rustlings.rust-lang.org/
3•tilt•22m ago•0 comments

I Built My Personal Site with AI in 4 Days

https://www.dhawalshah.net/article/building-personal-site-with-ai
2•djshah•23m ago•0 comments

Open Source Gave Me Everything Until I Had Nothing Left to Give

https://kennethreitz.org/essays/2026-03-18-open_source_gave_me_everything_until_i_had_nothing_lef...
2•rglullis•26m ago•0 comments

Study: Sycophantic AI can undermine human judgment

https://arstechnica.com/science/2026/03/study-sycophantic-ai-can-undermine-human-judgment/
1•Liriel•26m ago•0 comments

Show HN: Web service for writing a log (history) of your company

https://sharedlog.app/
1•keyhell•27m ago•0 comments

Building Kenya's Money Rail with .NET SQL Server and SMS in 2005

https://jkitsao.substack.com/p/inside-the-first-m-pesa-backend-20052013
1•kitsao•33m ago•0 comments

Show HN: Agent Forge, an agent framework, heuristic routing and graph execution

https://github.com/Minns-ai/agent-forge-sdk
1•gooseyGander•34m ago•0 comments

Porting Go's io package to C

https://antonz.org/porting-go-io/
1•valyala•35m ago•0 comments

Switch preferences and chat history from other LLM apps to Gemini

https://blog.google/innovation-and-ai/products/gemini-app/switch-to-gemini-app/
1•Yizahi•38m ago•1 comments

OpenAI "indefinitely" shelves plans for erotic ChatGPT

https://arstechnica.com/tech-policy/2026/03/chatgpt-wont-talk-dirty-any-time-soon-as-sexy-mode-tu...
1•isaacfrond•40m ago•0 comments

Show HN: Nudge – Free, open-source Mac window manager

https://nudge.run/
1•mikusnuz•42m ago•0 comments

UK Car Bingo – Trainspotting for Cars

https://chrispattle.com/uk-car-bingo
1•pattle•46m ago•0 comments

The Guinndex – Pint Prices Across Ireland

https://guinndex.ai
1•futurecat•47m ago•0 comments

Israeli Air Force major charged [..] classified info to place bets on Polymarket

https://www.timesofisrael.com/israeli-air-force-major-charged-with-using-classified-info-to-place...
2•defly•50m ago•0 comments