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

Comments

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

Sampling at Negative Temperature

https://cavendishlabs.org/blog/negative-temperature/
3•ag8•1m ago•0 comments

Show HN: Sunshine Optimist: Optimistic takes on daylight and sunset times

https://sunshineoptimist.com
1•willj•1m ago•0 comments

Worldview – persistent strategic context for Claude Code

https://www.extremeclarity.ai/worldview
1•faizanbhat•2m ago•1 comments

The Machinery of Terror

https://chrishedges.substack.com/p/the-machinery-of-terror
1•chmaynard•2m ago•0 comments

QR Spaces – One QR and custom domain to share all your links

1•iamgaazi•2m ago•1 comments

The Subtle Injury – Being pretty good

https://tevonsb.com/thoughts/subtle-injury/
2•tevon•3m ago•1 comments

From fragmented code to consistent output with AI rules

https://www.stromcapital.fi/blog/cursor-rules
1•ronistrom•4m ago•0 comments

Why (We Don't Need To?) Care About Debt-to-GDP?

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=5271557
1•neehao•4m ago•0 comments

Show HN: A MCP for controlling terminal UI apps built with bubbletea and ratatui

https://github.com/michaellee8/mcp-tui-server
1•michaellee8•7m ago•0 comments

Green Waste: Inefficient Allocation of Green Subsidies

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6048714
1•neehao•7m ago•0 comments

Mississippi Transformed Its Schools from Worst to Best

https://www.nytimes.com/2026/01/11/us/mississippi-schools-transformation.html
1•ghaff•9m ago•1 comments

Exponential growth continued – cargo-semver-checks 2025 Year in Review

https://predr.ag/blog/cargo-semver-checks-2025-year-in-review/
1•todsacerdoti•10m ago•0 comments

LLMs – Part 2: Order Matters – Positional Encoding

https://vasupasupuleti.substack.com/p/llms-part-2-order-matters-positional
1•vpasupuleti10•16m ago•1 comments

LLMs – Part 1: Tokenization and Embeddings

https://vasupasupuleti.substack.com/p/llms-part-1-tokenization-and-embeddings
1•vpasupuleti10•16m ago•1 comments

AI's Bottleneck Isn't Models or Tools, It's Security

https://zkorman.com/posts/ai-bottleneck-is-security/12
1•chillax•18m ago•1 comments

Keeping 20,000 GPUs Healthy

https://modal.com/blog/gpu-health
1•susam•19m ago•0 comments

Canada's Scaling Problem Isn't Compute, It's Coastlines

https://zeitgeistml.substack.com/p/canadas-scaling-problem-isnt-compute
4•eh_tk•19m ago•0 comments

The Curious Case of Stack Pivot Detection

https://seclists.org/oss-sec/2026/q1/48
1•todsacerdoti•20m ago•0 comments

Pigeon's Nuclear Dogshit Vaporiser

http://pigeonsnest.co.uk/stuff/nuclear-dogshit-vaporiser.html
1•joebig•28m ago•1 comments

An Ice-Covered Russian Ghost Town

https://www.theatlantic.com/photo/2021/03/photos-ice-covered-russian-ghost-town/618188/
3•samgilb•30m ago•1 comments

gRPC Streaming: Real-Time Communication That Works

https://skoredin.pro/blog/golang/grpc-streaming-golang
1•ibobev•33m ago•0 comments

Effectiveness vs. Collateral Damage in Italy's Piracy Shield

https://labs.ripe.net/author/antonio-prado/live-event-blocking-at-scale-effectiveness-vs-collater...
1•alberto-m•34m ago•0 comments

"Scholars Will Call It Nonsense" the Structure of Erich von Däniken's Argument

https://www.penn.museum/sites/expedition/scholars-will-call-it-nonsense/
5•Kaibeezy•36m ago•0 comments

Show HN: Isolated benchmarks to avoid optimization pollution (Node.js)

https://github.com/Llorx/iso-bench
1•Llorx•36m ago•0 comments

Stop Slop

https://github.com/hardikpandya/stop-slop
1•handfuloflight•37m ago•1 comments

Cuckoo Hashing

https://en.wikipedia.org/wiki/Cuckoo_hashing
1•tosh•38m ago•0 comments

Open-source iCloud Photos Downloader (AKA escape from iCloud)

https://github.com/icloud-photos-downloader/icloud_photos_downloader
22•reconnecting•38m ago•5 comments

Scientists map the human genome in 4D

https://news.northwestern.edu/stories/2025/12/scientists-map-the-human-genome-in-4d
2•airstrike•38m ago•0 comments

$RALPH – The cryptocoin promoted by creator of the "Ralph Wiggum" AI methodology

https://ralphcoin.org/
1•da_grift_shift•40m ago•1 comments

David Long's 751-point Adventure has been found

https://quuxplusone.github.io/blog/2025/12/29/long0751/
5•homarp•40m ago•1 comments