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

Becoming an Air Traffic Controller

https://vatsim.net/docs/basics/becoming-a-controller/
1•mooreds•58s ago•0 comments

Agentic Context Is King

https://writeaheadblog.com/p/agentic-context-is-king
1•mooreds•1m ago•0 comments

The Hybrid Gen 5 Experiment: High-Speed Linux Storage Without the Gen 5 Heat

https://corelab.tech/samsung-990-evo-plus-linux-ssd-heat-test/
1•corelabjoe•3m ago•1 comments

Minimax M2.7 Weights Released

https://huggingface.co/MiniMaxAI/MiniMax-M2.7
1•anonym29•6m ago•2 comments

Mythos Just Proved the Alignment Field Is Building the Wrong Thing

https://substack.com/home/post/p-193928243
1•ajspizz•7m ago•0 comments

Ask HN: Do you remux WebM to MP4 without re-encoding?

1•vanta_tool•10m ago•0 comments

Show HN: Depsly – a CLI to see the dependency impact of NPM packages

https://github.com/sshiraz/depsly
1•cyborg933•11m ago•0 comments

Smartpress

https://smartpress.netlify.app
1•nickfosterna•18m ago•2 comments

Parity of permutations, impossible puzzles and the magical determinant [video]

https://www.youtube.com/watch?v=rUiulWItECQ
1•vismit2000•22m ago•0 comments

Oxygen made from Moon dust for first time

https://www.telegraph.co.uk/news/2026/04/09/oxygen-made-from-moon-dust-for-the-first-time/
2•jonbaer•29m ago•0 comments

cmakefmt: A lightning-fast CMake file formatter

https://github.com/cmakefmt/cmakefmt
1•rmast•29m ago•0 comments

Monsters in the Archives by Caroline Bicks – The Writing Secrets of Stephen King

https://www.theguardian.com/books/2026/mar/30/monsters-in-the-archives-by-caroline-bicks-review-t...
2•lermontov•30m ago•0 comments

Save Walter White

https://save-walt.onrender.com/
1•flykespice•32m ago•1 comments

Artemisia Gentileschi Masterpiece Goes to Auction–Without Its Face

https://news.artnet.com/market/gentileschi-mary-magdalene-fragment-dorotheum-auction-2763142
1•bookofjoe•35m ago•0 comments

Trick Might Stop Gulls from Nabbing Your Lunch

https://gizmodo.com/this-ridiculously-simple-trick-might-stop-gulls-from-nabbing-your-lunch-20007...
2•gnabgib•36m ago•0 comments

Linktree for Professionals

https://airlinkee.com/en/
1•wonsukchoi97•37m ago•0 comments

FullScope-MCP – Cut agent token usage by 60% without lossy summarization

https://github.com/justguy/FullScope-MCP/
1•justguyB•40m ago•0 comments

OpenOats – A meeting note-taker that talks back

https://github.com/yazinsai/OpenOats
3•rahimnathwani•44m ago•3 comments

After the Attack on Sam Altman's Home, Will AI CEOs Go on the Offensive?

https://www.motherjones.com/politics/2026/04/after-the-attack-on-sam-altmans-home-will-ai-ceos-go...
1•cdrnsf•47m ago•0 comments

The oldest known evidence of stitched clothing

https://refractor.io/history/oldest-evidence-stitched-clothing-fabric-prehistoric-oregon/
1•breve•49m ago•0 comments

Optimization of 32-bit Unsigned Division by Constants on 64-bit Targets

https://arxiv.org/abs/2604.07902
1•simjnd•50m ago•0 comments

B2alpha

https://b2alpha.io/
1•21J3phy•52m ago•0 comments

Elastic Tabstops (2006)

https://nick-gravgaard.com/elastic-tabstops/
1•birdculture•54m ago•1 comments

AI Job Loss Tracker

https://jobloss.ai/
21•gnabgib•54m ago•18 comments

We Are All Constantly Mutating – and That's a Good Thing

https://www.newyorker.com/magazine/2026/04/13/beyond-inheritance-roxanne-khamsi-book-review
1•mitchbob•1h ago•1 comments

More than 12 tons of KitKat's 'new chocolate range' stolen in Italy

https://www.theguardian.com/world/2026/mar/28/kitkat-stolen-italy-f1-bar
1•wslh•1h ago•0 comments

Artemis II Astronauts Back in Houston, Reunite with Families

https://www.nasa.gov/blogs/missions/2026/04/11/artemis-ii-astronauts-back-in-houston-reunite-with...
1•salkahfi•1h ago•0 comments

Curated Costa Rica: The Best Tailor-Made Experiences for Every Type of Traveller

https://johnquam.substack.com/p/curated-costa-rica-the-best-tailor
1•headmonkey•1h ago•1 comments

Unified Perception Engine: never render more than humans can see (public domain)

https://github.com/warofwar2011-dev/unified-perception-engine
1•Mars2011•1h ago•0 comments

The Enigma of Gertrude Stein

https://www.thenation.com/article/culture/gertrude-stein-afterlife-wade-review/
2•samclemens•1h ago•0 comments