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

How Podcasts Ruined America

https://www.compactmag.com/article/how-podcasts-ruined-america/
1•ChrisArchitect•42s ago•0 comments

Pip 26.2: –only-deps solves 16 years of app deployment hacks – James O'Claire

https://jamesoclaire.com/2026/07/23/pip-26-2-only-deps-solves-16-years-of-app-deployment-hacks/
1•rbanffy•3m ago•0 comments

Demoscene inspired interactive promo (WebGL)

https://why.zero.university/
1•larodi•3m ago•1 comments

How OpenAI Kills Oracle

https://www.wheresyoured.at/how-openai-kills-oracle/
1•chasil•4m ago•0 comments

Planned Updates to the PyPI User Interface – The Python Package Index Blog

https://blog.pypi.org/posts/2026-07-22-ui-updates/
2•rbanffy•4m ago•0 comments

Security: Line goes up · Hugo van Kemenade

https://hugovk.dev/blog/2026/security-line-goes-up/
1•rbanffy•4m ago•0 comments

Ask HN: Looking for testers for my RAM-based Linux distribution

1•sumtas•4m ago•0 comments

Ask HN: Which Jabber clients support SCRAM+ and XEP-0474?

1•Bender•5m ago•0 comments

Tame Dependabot: Group your updates, slow the cadence, keep security fast

https://github.blog/security/supply-chain-security/tame-dependabot-group-your-updates-slow-the-ca...
1•smokeeaasd•8m ago•0 comments

A fast path for decoding fixed-length lists in Parquet

https://www.morling.dev/blog/fast-path-for-fixed-length-lists-in-parquet/
1•fanf2•10m ago•0 comments

Computer History of Yugoslavia

https://www.oblakodermagazin.rs/it-istorija-jugoslavije/
1•vlad__81•10m ago•0 comments

The Miasma Theory of Education

https://hollisrobbinsanecdotal.substack.com/p/the-miasma-theory-of-education
1•HR01•11m ago•0 comments

Vibe Rot

https://olliegreen.info/posts/13/vibe-rot/
1•Oarch•12m ago•0 comments

The coolest use for the Vision Pro

https://christianselig.com/2026/07/vision-pro-house/
5•robbiet480•13m ago•0 comments

Passkeys are single factor, and why that's (mostly) okay

https://fy.blackhats.net.au/blog/2026-07-23-passkeys-are-single-factor/
1•speckx•16m ago•0 comments

Ada v4: Validating 35.6M URLs per second

https://www.yagiz.co/release-of-ada-v4
1•ingve•16m ago•1 comments

Senior Dev Imposter Syndrome

2•daltonlcarr•19m ago•0 comments

A digital ID that proves a real person is on the other side

https://fravash.ai/
1•RevanDaldaban•19m ago•0 comments

Claude users' shared conversations were showing up in Google searches

https://www.fastcompany.com/91580420/claude-users-shared-conversations-were-showing-up-in-google-...
1•1vuio0pswjnm7•20m ago•1 comments

Darwin Among the Machines(1863)[pdf]

https://publish.fid-media.de/server/api/core/bitstreams/e0da505d-200c-43ab-be4b-6604a4df816f/content
1•kelseyfrog•21m ago•0 comments

Procore to Acquire DroneDeploy for $845M

https://www.dronedeploy.com/blog/procore-to-acquire-dronedeploy-creating-next-generation-platform...
1•datadrivenangel•21m ago•1 comments

Show HN: MindFlock – Parallel AI coding agents, each in its own Git worktree

https://github.com/MindFlock/MindFlock
3•emandel2630•23m ago•1 comments

Transfer context from one agent to another agent mid task

2•iamalizaidi•23m ago•0 comments

URL Design

https://www.jstools.space/blog/url-design-routing-query-parameters-fragments/
2•pentagrama•24m ago•0 comments

The Last Conjecture

https://the-last-conjecture.netlify.app/story.html
1•dawdler-purge•24m ago•0 comments

AGI has arrived. We just call it backpropagation

1•thomastill•24m ago•2 comments

Show HN: Interactive Python Projects in the Browser – Trading Card Builder

https://www.codembark.com/projects/k3m9x2v4pd/trading-card-builder
1•camdenreslink•26m ago•0 comments

Garry Tan is a Rubyist and speaking at a RoR conference?

https://evilmartians.com/events/sf-ruby-startup-conference-2026
2•camimirabal•28m ago•1 comments

Anonymity Is Fun

https://tadaima.bearblog.dev/anonymity-is-fun/
1•theorchid•30m ago•0 comments

Theo Conjecture solves 35-year-old math problem, finds a term no one predicted

https://firstprinciples.com/blog-article/ai-system-theo-conjecture-solves-35-year-old-math-conjec...
6•otalp•30m ago•0 comments