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

Show HN: Desktop OSD that reads Claude Code's rate limit headers

https://github.com/bozdemir/claude-usage-widget
1•bozdemir•13s ago•0 comments

A robot is beating human pros at table tennis

https://apnews.com/article/ai-table-tennis-robot-ping-pong-sony-995b239945e0dc8d7bea918a850969dc
1•greggoB•56s ago•1 comments

Anthropic is A/B testing removing Claude Code from Pro plans

https://twitter.com/TheAmolAvasare/status/2046724659039932830
1•gagdiez•1m ago•0 comments

TalentRecruit

1•TalentRecruit•2m ago•0 comments

Corral: Measuring how LLM-based AI scientists reason, not just what they produce

https://lamalab-org.github.io/corral/
2•kjappelbaum•4m ago•0 comments

FreeBSD Status Report First Quarter 2026

https://www.freebsd.org/status/report-2026-01-2026-03/
2•ptx•5m ago•0 comments

Texas launches $750M plant, targets growing New World screwworm threat

https://www.chron.com/texas/article/south-texas-plant-screwworm-threat-usda-22214580.php
3•littlexsparkee•6m ago•0 comments

Ask HN: Is the ongoing AI research driving LLM models to be better?

2•thiago_fm•9m ago•0 comments

The Prevention of Literature (George Orwell, 1946)

https://www.orwellfoundation.com/the-orwell-foundation/orwell/essays-and-other-works/the-preventi...
2•awanderingmind•9m ago•0 comments

Microsoft issues emergency update for macOS and Linux ASP.NET threat

https://arstechnica.com/security/2026/04/microsoft-issues-emergency-update-for-macos-and-linux-as...
3•joozio•10m ago•0 comments

I blind A/B tested 40 Claude prompt codes, only 7 shift reasoning

https://gist.github.com/Samarth0211/0abecbbfc340c80de5bd21049115f9e2
2•samarth0211•11m ago•0 comments

Stop Hardcoding Your Timeouts

https://alfy.blog/2026/04/23/stop-hardcoding-your-timeouts.html
3•ahmadalfy•11m ago•0 comments

Retractions of scientific papers by Nobel Prize Winners

https://retractionwatch.com/retractions-by-nobel-prize-winners/
3•patel011393•12m ago•1 comments

Notes on writing a voxel game in Dyalog APL

https://homewithinnowhere.com/blog/voxel_game/
3•tosh•14m ago•0 comments

Signaling Is the Intelligence

https://eversoleken.substack.com/p/signaling-is-the-intelligence
2•gpi•17m ago•0 comments

The Log Is the Database

https://blog.canoozie.net/the-log-is-the-database/
4•LAC-Tech•24m ago•1 comments

Ask HN: Linguistics/Computing Overview for the Layperson

2•Pamar•25m ago•0 comments

Production MCP Patterns, Part 2: The Agent Stack Grew Up

https://medium.com/@nitishagar/production-mcp-patterns-part-2-the-agent-stack-grew-up-194d807fde9d
2•nitishagar•25m ago•1 comments

Light Pollution and Wildlife Interactive Ecology Simulation

https://naturnacht-fulda-rhoen.de/light-pollution-wildlife/
2•ptrsrtp•27m ago•1 comments

Reverse-Engineering a North-Korean-Style Supply Chain Attack

https://www.reymom.xyz/blog/security/2026-04-15-supply-chain-attack
2•gsky•29m ago•0 comments

I was reported by ChatGPT officials

https://pbs.twimg.com/media/HGkgo8KacAAqU3J?format=jpg&name=medium
2•mrzhangbo•29m ago•0 comments

Augmenting Human Intellect (1962)

https://www.dougengelbart.org/pubs/augment-3906.html
2•downbad_•30m ago•1 comments

US health officials Nix publication of a study on Covid vaccine effectiveness

https://apnews.com/article/cdc-covid19-vaccine-study-ea3a8e56d0dcdb7428f060b395b5ff23
5•petethomas•34m ago•1 comments

Show HN: Vibeyard – An open-source IDE for managing AI coding agents

https://github.com/elirantutia/vibeyard
2•vibeyard•39m ago•0 comments

Honey, I Shrunk the Coding Agent

https://itayinbarr.substack.com/p/honey-i-shrunk-the-coding-agent
5•oldfuture•42m ago•0 comments

Software Eats Its Own

https://om.co/2026/04/22/software-eats-its-own/
2•taubek•44m ago•0 comments

Hey I made a AI Native personal workspace for the desktop worker

1•devrimco•45m ago•2 comments

Benchmarking glibc vs. jemalloc vs. mimalloc vs. tcmalloc in MariaDB TPC-C

https://tidesdb.com/articles/tpcc-analysis-jemalloc-mimalloc-tcmalloc-tidesql-and-innodb-in-maria...
2•alexpadula•58m ago•1 comments

R

https://blog.cloudflare.com/post-quantum-warp/
3•kefekefe•1h ago•0 comments

A neural network for lossy audio codec reconstruction

https://github.com/aston89/UNlossifier-lossy-audio-reconstructor-and-sound-signature-simulator/tr...
1•Aston89•1h ago•0 comments