frontpage.
newsnewestaskshowjobs

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

Xi pushes 'Greater BRICS' economic ties to give bloc larger global role

https://www.reuters.com/business/aerospace-defense/xi-pushes-greater-brics-economic-ties-give-blo...
1•_djo_•5m ago•0 comments

Memorable moments in Chromecast's history (2024)

https://blog.google/products-and-platforms/devices/google-nest/chromecast-history/
1•gregsadetsky•7m ago•0 comments

Apple's Dimensional Drawings

https://developer.apple.com/accessories/dimensional-drawings/
2•herbertl•7m ago•0 comments

AI Boom / Bust – Boom Boom Pow

1•wwolfson97•10m ago•0 comments

"Chilling" warning or overreaction? AI bioweapons report divides experts

https://www.science.org/content/article/chilling-warning-or-overreaction-ai-bioweapons-report-div...
2•sbulaev•11m ago•0 comments

Free Domain Monitoring through echelongraph.io

1•akd29121988•16m ago•0 comments

Trump Throws His Support Behind Flock Cameras: 'I Like Them'

https://www.mediaite.com/politics/trump-throws-his-support-behind-flock-cameras-i-like-them/
2•valeg•18m ago•0 comments

The biggest dinosaurs couldn't sit on their eggs

https://www.cbc.ca/news/science/titanosaur-eggs-9.7336841
2•BiraIgnacio•18m ago•0 comments

OpenAI and Anthropic Hit the Brakes

https://www.axios.com/2026/09/13/ai-labs-regulation-safety
2•kooi•20m ago•1 comments

AI Coding Dictionary

https://www.aihero.dev/ai-coding-dictionary
1•dnw•22m ago•0 comments

The Coming War on General Computation (2011)

https://en.wikisource.org/wiki/The_Coming_War_on_General_Computation
7•gregsadetsky•24m ago•0 comments

X.com busts Chinese bot farm, incl accounts making claims about AI data centers

https://www.tomshardware.com/tech-industry/policy/x-busts-200-000-strong-chinese-bot-farm-includi...
1•throwaway2037•24m ago•0 comments

Carterfone

https://en.wikipedia.org/wiki/Carterfone
3•gregsadetsky•26m ago•0 comments

Show HN: Spikeforge

https://spikeforge.net/
1•a0174•29m ago•0 comments

Can an R/C Car Hit 100k Scale Miles? Self Driving Edition

https://www.youtube.com/watch?v=LjQ59b9OKyg
1•jdalgetty•30m ago•0 comments

Robots protest rampant AI in Poland

https://techxplore.com/news/2026-09-robots-protest-rampant-ai-poland.html
1•jareklupinski•32m ago•0 comments

Math in the Movies – Sneakers (1998)

https://theworld.com/~reinhold/math/sneakers.adleman.html
1•walterbell•33m ago•0 comments

How the Eminem Show Made Me a Hip-Hop Fan

https://medium.com/theentertainmentbreakdown/how-the-eminem-show-made-me-a-hip-hop-fan-5e9a7e1838e7
1•raynchad•33m ago•0 comments

Why Society Tears Down Its Heroes

https://medium.com/theentertainmentbreakdown/on-the-demolition-of-heroes-aec8912d8c11
2•raynchad•34m ago•2 comments

Recursive Synthetic Improvement

https://twitter.com/zafstojano/status/2097689256961466486
1•gmays•36m ago•0 comments

Agent security starts before the first prompt

https://fewshotacademy.com/blog/secure-the-tools-around-your-agent
1•mangatgoyal•36m ago•0 comments

Mental time travel and the evolution of the human mind

https://pubmed.ncbi.nlm.nih.gov/9204544/
1•andsoitis•38m ago•0 comments

X nuked my premium account out of nowhere

1•proc0•39m ago•2 comments

Ask HN: How is AI actively a threat to humanity if it's only online?

3•CM30•42m ago•4 comments

Mental Time Travel

https://royalsocietypublishing.org/rstb/article/379/1913/20230406/109563/Measuring-episodic-memor...
1•andsoitis•42m ago•0 comments

Former CIA official found with $40M in gold bars reaches tentative plea deal

https://apnews.com/article/gold-bars-cia-official-virginia-7be1def515c9aa99326eab39cd8ff589
1•Jimmc414•45m ago•1 comments

I think Effect-TS is a strong fit for AI agent development

https://effect.website/
1•anshsingh020404•45m ago•0 comments

Dynamics in Mesoscopic Systems

https://www.ds.mpg.de/meso/en
1•andsoitis•46m ago•0 comments

Ask ChatGPT or Gemini the same "best X" twice, ~1/3 of the answer changes

https://github.com/jjoseph18/ai-recommendation-consistency
1•EpsilonJ•48m ago•1 comments

Show HN: <15MB Local-first Interactive LaTeX Scratchpad in the Browser

https://telox.dev/app/scratchpad/
1•eigenblake•48m ago•0 comments