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

Deriving the Y Combinator (2008)

https://blog.jcoglan.com/2008/01/10/deriving-the-y-combinator/
1•aragonite•2m ago•0 comments

Will Elon Musk ever be forced to explain what he did inside DOGE?

https://www.cnn.com/2026/04/13/politics/elon-musk-doge-lawsuits-avoid-deposition-questions
2•1659447091•3m ago•0 comments

The disappearance of old Tokyo businesses

https://www.tokyotimes.org/the-disappearance-of-old-tokyo-businesses/
1•razorbeamz•4m ago•0 comments

Show HN: Honeytree – Grow a forest in your terminal while you code

https://github.com/Varun2009178/honeytree
1•varunn29•5m ago•0 comments

Krafton CEO used ChatGPT in failed bid to avoid paying US$250M bonus

https://www.theguardian.com/technology/2026/mar/18/subnautica-2-publisher-krafton-ceo-reinstated-...
1•doppp•8m ago•0 comments

Moanpoint: Maps TrackPoint pressure to audio output

https://github.com/nicolasgutierrezdev/moanpoint
1•neptunianalien•10m ago•0 comments

Decline in U.S. overdose deaths threatened by changing street drug supply

https://text.npr.org/nx-s1-5783750
1•1659447091•11m ago•0 comments

New AI capabilities are coming to Google Vids, powered by Lyria 3 and Veo 3.1

https://blog.google/products-and-platforms/products/workspace/google-vids-updates-lyria-veo/
2•spaghettifythis•14m ago•1 comments

The Stern-Gerlach Experiment (1967)[video]

https://www.youtube.com/watch?v=AcTqcyv-V1I
1•nill0•14m ago•0 comments

Show HN: BSCS Bench – College CS Curriculum AI Benchmark

https://www.bscsbench.com/
1•charlielockyer•16m ago•0 comments

Bessent: Order requiring banks to collect citizenship information in process

https://thehill.com/homenews/administration/5830266-trump-executive-order-banking-system-citizens...
1•KnuthIsGod•19m ago•0 comments

The Complete Briggs and Stratton Buckboard Flyer Build [video]

https://www.youtube.com/watch?v=xzYwGcX3CwA
1•pillars•19m ago•0 comments

GPT-5.4 Pro solves Erdős Problem #1196

https://twitter.com/i/status/2044051379916882067
1•fratellobigio•19m ago•1 comments

Create a Blog on GitHub with Markdown in 15-Minutes

https://joeldare.com/create-a-blog-on-github-with-markdown-in-15-minutes
1•codazoda•19m ago•0 comments

Major News Sites Have Blocked the Wayback Machine – Digital History in Danger

https://www.gadgetreview.com/23-major-news-sites-have-blocked-the-wayback-machine-digital-history...
4•gurjeet•20m ago•0 comments

Show HN: Agent Citizen – Your AI agents are sitting around doing nothing

https://agent-citizen.vercel.app
1•daltonlcarr•23m ago•0 comments

Bosses say AI boosts productivity – workers say they're drowning in 'workslop'

https://www.theguardian.com/technology/2026/apr/14/ai-productivity-workplace-errors
3•pseudolus•26m ago•0 comments

Researchers discover record-setting heat-conducting material

https://www.anl.gov/article/researchers-discover-recordsetting-heatconducting-material
1•gmays•28m ago•0 comments

Ask HN: Any services like NotebookLM that can convert text into videos?

1•haebom•30m ago•0 comments

Police officer uses Flock database to track mistress

https://ktla.com/news/orange-county/former-orange-county-officer-pleaded-guilty-to-using-police-d...
4•hentrep•34m ago•0 comments

Show HN: Lumon, browser agents as interactive sprites

https://lumon-live.netlify.app
1•lesprgm•35m ago•0 comments

The race to understand the mysterious world of Africa's fungi

https://www.theguardian.com/environment/2026/apr/14/african-scientists-fungal-conservation-moveme...
2•a_w•36m ago•0 comments

The Great Software Meltdown

https://www.danmartell.com/the-great-software-meltdown/
2•wfme•37m ago•0 comments

Thomas Riedel Acquires Arri

https://theasc.com/news/thomas-riedel-acquires-arri
1•coolandsmartrr•38m ago•0 comments

Show HN: Playra 2026 link

https://playra-app.vercel.app
1•COdefinder•40m ago•0 comments

Show HN: Make sure your OpenClaw isn't doing things it's not supposed to

https://claw.armoriq.ai/
1•vaibhavb007•42m ago•0 comments

Zperiod: Interactive Periodic Table with 118 elements and 3D atom models

https://zperiod.app/
1•itherseed•43m ago•0 comments

Bunk beds for economy passengers take off on Air New Zealand's new planes

https://www.cnn.com/2026/04/14/travel/air-new-zealand-bunk-beds
2•1659447091•45m ago•1 comments

Intro to Synthesis

https://signalfunctionset.com/projects/intro-to-synthesis/
1•stuart78•47m ago•0 comments

Aethon: A reference-based instantiation primitive for stateful AI agents

https://arxiv.org/abs/2604.12129
1•swanandr•47m ago•0 comments