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

State Department Wants Palantir's Advice on Free Speech

https://theintercept.com/2026/08/07/state-department-palantir-free-speech-surveillance/
1•cdrnsf•1m ago•0 comments

U.S. Intel Finds Putin Could Test NATO's Resolve with Limited Incursion

https://www.wsj.com/world/europe/u-s-intel-finds-putin-could-test-natos-resolve-with-limited-incu...
1•cwwc•3m ago•0 comments

Show HN: Agent Monitor – Monitor Your Coding Agent Live

https://agent-monitor.ai/
1•gsibble•5m ago•0 comments

Tlbic v10.1 French Supplement: A local basic income model for systemic despair

https://drive.google.com/file/d/1MGFLYnYyVzWV_H4NsAKc1_yA_dToxzUz/view?usp=drive_link
1•michikawa59•6m ago•1 comments

This Mine Predicts Major Wars. It's Opening Again

https://www.bloomberg.com/graphics/2026-opinion-australia-tungsten-mine-us-war-defense-china/
1•mooreds•6m ago•0 comments

Ask HN: Are You Preparing for the Singularity

1•blululu•6m ago•1 comments

Size the Orbs of Production

https://ampcode.com/news/size-the-orbs-of-production
1•tosh•7m ago•0 comments

India Test-Fires 4,000KM Agni-4 Nuclear Missile

https://defencesecurityasia.com/en/india-agni-4-nuclear-missile-test-china-indo-pacific/
1•Teever•7m ago•0 comments

Hand-coding will never die

https://christinacodes.dev/writing/hand-coding-will-never-die/
1•vinhnx•8m ago•0 comments

Engineering Culture Trends 2026 – Food for Agile Thought #556

https://age-of-product.com/food-agile-thought-556-engineering-culture-trends-2026/
1•swolpers•8m ago•0 comments

Show HN: Infinite scrolling comes to Hazumi for Hacker News

https://apps.apple.com/us/app/hazumi-for-hacker-news/id1670237209
1•jrhey•9m ago•0 comments

The Life and Times of Maxis, Part 3: The Sims

https://www.filfre.net/2026/08/the-life-and-times-of-maxis-part-3-the-sims/
1•doppp•10m ago•0 comments

Most explanations fail for the same reason

https://tryclicked.app/blog/most-explanations-fail
1•sagunbuilds•10m ago•0 comments

Show HN: MCP-debug-proxy – A visual reverse proxy for MCP and OAuth traffic

https://github.com/ytkoka/mcp-debug-proxy
1•ytkoka•11m ago•0 comments

Chinese Model Kimi K3 Breaks UK AI Safety Institute Benchmark Evaluations

https://blog.frontier.security/chinese-model-kimi-k3-breaks-uk-ai-safety-institute-benchmark-eval...
1•akyuu•11m ago•0 comments

Ask HN: AI4 Conference, Thoughts?

1•joshcsimmons•11m ago•0 comments

Who Supervises the Supervisor? A Riff on Machine Learning

https://johnhorgan.org/cross-check/who-supervises-the-supervisor-a-riff-on-machine-learning
2•lschueller•12m ago•0 comments

Code review bottlenecks: How we hill climbed our way to higher PR throughput

https://www.assembled.com/blog/code-review-bottlenecks-how-we-hill-climbed-our-way-to-higher-pr-t...
8•johnjwang•12m ago•0 comments

University celebrates Baby's 65th birthday (2013)

https://www.manchester.ac.uk/about/news/university-celebrates-babys-65th-birthday/
1•Bluestein•13m ago•0 comments

The Suicide Crisis in Wyoming

https://www.nytimes.com/2026/08/04/opinion/suicide-wyoming-mental-health.html
1•mooreds•15m ago•0 comments

The secret nuclear material the US forgot how to make

https://en.wikipedia.org/wiki/Fogbank
3•historical1234•15m ago•1 comments

AI agents fake identities, target real people in new security incident

https://www.cnn.com/2026/08/04/tech/ai-anthropic-openai-security-breach-intl-hnk
3•mooreds•16m ago•0 comments

Parasol Lost

https://actuaries.org.uk/news-and-media-releases/news-articles/2026/jan/14-jan-26-parasol-lost-re...
1•simonebrunozzi•16m ago•0 comments

Slime Without Plugins Using Kitty

https://lee-phillips.org/kittyslime/
2•leephillips•17m ago•0 comments

Manchester Statistical Society was founded in 1833

https://collection.sciencemuseumgroup.org.uk/people/ap12481/manchester-statistical-society
1•Bluestein•18m ago•0 comments

Let Over Lambda is free online to read as pdf

https://letoverlambda.com/lol.pdf
1•artsi0m•18m ago•3 comments

Finland to stop maintaining poles carrying communication lines with Russia

https://meduza.io/en/news/2026/07/29/finland-to-stop-maintaining-poles-carrying-communication-lin...
2•Sami_Lehtinen•18m ago•0 comments

Show HN: Back end Engineer – Visual guides for system design and cloud infra

https://www.backendengineer.in
1•pvtsparsshh•19m ago•0 comments

Zohran Mamdani's NYC Tech Team Is What DOGE Should Have Been

https://www.wired.com/story/mamdani-assembles-his-nyc-tech-team/
4•gorbachev•20m ago•1 comments

Ask HN: Why aren't there more Operating System startups?

1•senor_digimon•21m ago•1 comments