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

Show HN: A 6.9B Moe LLM in Rust, Go, and Python

https://github.com/fumi-engineer/machine_learning
1•fumi2026•4m ago•1 comments

The Stirling Engine: A Wave of the Future Ago [video]

https://www.youtube.com/watch?v=KbnGlcQiL1c
1•akshatjiwan•5m ago•0 comments

Show HN: AI Tryon Product to Video Generator

https://aitryon.art/ai-product-to-video/
1•AITryon•9m ago•0 comments

Watch Cursor build a 3M+ line browser in a week

https://twitter.com/mntruell/status/2012825801381580880
2•hentrep•12m ago•0 comments

The Convolutional Neural Network

https://cocakoala.substack.com/p/the-convolutional-neural-network
1•imranmk•14m ago•0 comments

Writing Your First Compiler

https://popovicu.com/posts/writing-your-first-compiler/
2•thunderbong•16m ago•0 comments

Meta has discontinued its metaverse for work, too

https://www.theverge.com/tech/863209/meta-has-discontinued-its-metaverse-for-work-too
2•prawn•21m ago•0 comments

The Computational Web and the Old AI Switcharoo

https://www.fromjason.xyz/p/notebook/the-computational-web-and-the-old-ai-switcharoo/
1•jayveeone•26m ago•0 comments

Greenland Crisis

https://en.wikipedia.org/wiki/Greenland_crisis
1•handfuloflight•27m ago•0 comments

MH370 operational search reports

https://www.atsb.gov.au/mh370-pages/updates/reports
2•teleforce•33m ago•0 comments

Nushell 0.110.0

https://www.nushell.sh/blog/2026-01-17-nushell_v0_110_0.html
1•Fervicus•37m ago•0 comments

The AI revolution is here. Will the economy survive the transition?

https://post.substack.com/p/the-ai-revolution-is-here-will-the
3•mooreds•45m ago•0 comments

Show HN: 2FA2FA – 2FA Live Auth (Real-Time TOTP Authentication)

https://2fa2fa.com
1•SongDeYu•46m ago•1 comments

Show HN: Ops-Tools – a Rust-Based DevOps CLI Swiss Army Knife

https://github.com/DennySORA/Ops-Tools
1•dennysora•46m ago•0 comments

A fast Rust port of Steve Yegge's beads

https://github.com/Dicklesworthstone/beads_rust
1•sorenbs•50m ago•0 comments

CD Projekt issue DMCA takedown notice against popular Cyberpunk VR mod

https://www.patreon.com/posts/another-one-dust-148437771
6•wjdp•52m ago•0 comments

Air traffic control: the IBM 9020

https://computer.rip/2026-01-17-air-traffic-control-9020.html
2•pinewurst•56m ago•0 comments

Show HN: Anti-Detect.com – Browser Fingerprint Scanner

https://anti-detect.com/
1•SongDeYu•1h ago•0 comments

In Defense of Data Centers

https://www.deeplearning.ai/the-batch/issue-336/
1•nl•1h ago•1 comments

Why the Best AI Systems Are Still So Bad at Pokémon

https://time.com/7345903/ai-chatgpt-claude-gemini-pokemon/
1•26d0•1h ago•0 comments

Ask HN: How to find a sponsor?

1•TySchultz•1h ago•0 comments

San Francisco coyote swims to Alcatraz

https://www.sfgate.com/local/article/san-francisco-coyote-alcatraz-21302218.php
4•kaycebasques•1h ago•0 comments

People cannot "just pay attention" to (boring, routine) things

https://utcc.utoronto.ca/~cks/space/blog/tech/PeopleCannotPayAttention
3•todsacerdoti•1h ago•0 comments

All your OpenCodes belong to us

https://johncodes.com/archive/2026/01-18-all-your-opencodes/
3•jpmcb•1h ago•0 comments

The Code-Only Agent

https://rijnard.com/blog/the-code-only-agent
9•emersonmacro•1h ago•0 comments

Bring Back Ops Pride

https://charitydotwtf.substack.com/p/bring-back-ops-pride
3•mooreds•1h ago•2 comments

Show HN: Knowhere – Rust-Based SQL Engine with TUI and GUI (Built on DataFusion)

https://saivarunk.github.io/knowhere/
1•waxsum8•1h ago•0 comments

With this tool, you can enjoy NAS functionality even without a NAS

https://quicksend.chat/
1•foodhome•1h ago•0 comments

HN should be dark mode by default

4•busters4•1h ago•4 comments

Show HN: All Paul Graham essays as a single ePub for e-readers

https://tomyanz.com/pgessaysepub/
2•tomyanlol123•1h ago•0 comments