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•1y ago

Comments

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

Students Create a Self-Balancing, Self-Driving Bicycle

https://www.core77.com/posts/144138/Students-Create-a-Self-Balancing-Self-Driving-Bicycle
2•sizzle•7m ago•0 comments

Context windows are the wrong solution to AI memory

https://www.thesecondbrain.dev
1•rahilpirani•7m ago•0 comments

Pynear 2.3 Is Out

1•pcael•9m ago•0 comments

GitHub Actions Is a Trap

https://tylercipriani.com/blog/2026/04/24/on-the-software-supply-chain-doom-spiral/
1•thcipriani•12m ago•0 comments

Robustness Principle

https://en.wikipedia.org/wiki/Robustness_principle
1•bookofjoe•12m ago•0 comments

When Code Is Cheap, Does Quality Still Matter?

https://yusufaytas.com/does-code-quality-still-matter
1•thunderbong•15m ago•0 comments

The Culture of Childhood: We've Almost Destroyed It

https://petergray.substack.com/p/the-culture-of-childhood-weve-almost
1•rendx•15m ago•0 comments

Cards and Stars – Where the Cards Meet the Cosmos

https://cardsandstars.org/
1•Anon84•18m ago•0 comments

TikTok disproportionately served anti-Democratic videos during the 2024 election

https://www.psypost.org/tiktok-disproportionately-served-anti-democratic-videos-during-the-2024-e...
2•CharlesW•20m ago•1 comments

The Lottery – Shirley Jackson (1948)

https://www.newyorker.com/magazine/1948/06/26/the-lottery
1•jxmorris12•22m ago•0 comments

Gaza flotilla activists allege sexual assault and rape in Israeli detention

https://www.theguardian.com/world/2026/may/22/gaza-flotilla-activists-allege-sexual-assault-and-i...
3•0x54MUR41•24m ago•0 comments

Community response to Wikimedia layoffs and labor concerns

https://lists.wikimedia.org/hyperkitty/list/wikitech-l@lists.wikimedia.org/thread/NEZZ25FAX3VMBER...
5•rendx•25m ago•0 comments

California Evacuation Map as Chemical Tank Will Fail or Explode: 'Bad'

https://www.newsweek.com/garden-grove-california-evacuation-map-chemical-tank-fail-explode-orange...
3•SilverElfin•25m ago•1 comments

CVE-2026-9256: Nginx 1.31.1 and 1.30.1

https://www.cve.org/CVERecord?id=CVE-2026-9256
2•petecooper•29m ago•0 comments

Show HN: AI Guided 3D atomic orbital simulation

https://atom.plumocracy.com
1•plumocracy•30m ago•0 comments

SpaceX launches Starship v3 rocket

https://www.nbcnews.com/now/video/spacex-successfully-launches-prototype-of-starship-rocket-26383...
23•busymom0•30m ago•3 comments

Tobacco plant can produce five psychedelics, including psilocybin and DMT

https://phys.org/news/2026-04-tobacco-psychedelics-psilocybin-dmt.html
3•hyrix•31m ago•0 comments

I was bored so I turned my dev tools into an alien planet ruled by my dog

https://github.com/bkawa-bot/planet-maiko
7•bkawa-bot•32m ago•1 comments

Cheap AI Could Derail OpenAI and Anthropic's IPOs

https://www.cnbc.com/2026/05/20/cheap-ai-could-derail-openai-and-anthropics-ipos.html
1•gmays•35m ago•1 comments

Switchkraft

https://switchkraft.zone/
1•skogstokig•38m ago•0 comments

Panorama – Review Code, Faster

https://panorama.stagas.deno.net/
1•stagas•38m ago•0 comments

SendIt – browser-based file/text transfer tool

https://trysendit.app/
1•GrandpaCereal•39m ago•1 comments

Future of AI-Facilitated Medicine

https://www.amacad.org/publication/daedalus/future-ai-facilitated-medicine
2•dnw•43m ago•0 comments

Luminous: Rust Based Image Viewer

https://github.com/jaroslavszkandera/luminous
1•unk_•45m ago•0 comments

Capital and the Debt Trap

https://en.wikipedia.org/wiki/Capital_and_the_Debt_Trap
2•teleforce•45m ago•0 comments

Gas prices drive Georgia man to create a "mini car" costing $3 to fill up [video]

https://www.youtube.com/watch?v=c-QNFxkWktY
2•nxobject•51m ago•0 comments

Four Russian satellites are now within striking distance of an ICEYE radarsat

https://arstechnica.com/space/2026/05/a-satellite-company-supporting-ukraine-appears-to-be-in-rus...
10•fghorow•55m ago•0 comments

The Silent Merge Queue Corruption That Hit 658 GitHub Repos

https://failure-modes.dev/library/fm-029
2•birdculture•56m ago•1 comments

Are we overthinking post-quantum cryptography? (2025)

https://neilmadden.blog/2025/06/20/are-we-overthinking-post-quantum-cryptography/
1•mooreds•59m ago•0 comments

Chip design from the bottom up – Reiner Pope [video]

https://www.youtube.com/watch?v=oIk3R-sMX5o
1•matt_d•1h ago•0 comments