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•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

InvizCrypt – Secure Cloud Documents

https://invizcrypt.com/
1•htewari•1m ago•0 comments

WebGPU support in llama.cpp

https://reeselevine.github.io/llamas-on-the-web/
1•relivin•5m ago•0 comments

Fraud Indicators Skyrocket in Minnesota Presidential Elections from 2016 Onwards

https://electiontruthalliance.substack.com/p/fraud-indicators-skyrocket-in-minnesota
2•filoeleven•5m ago•0 comments

Protégé Short Course 2026

https://protege.stanford.edu/shortcourse/
2•marcosmr•9m ago•1 comments

Lecture Notes on Statistical Physics and Neural Networks

https://arxiv.org/abs/2605.06394
1•Anon84•9m ago•0 comments

Client approvals via magic link, no more lost feedback

https://puxeline.com
1•pleedchan•9m ago•0 comments

The Pkg.go.dev API

https://go.dev/blog/pkgsite-api
2•yogorenapan•11m ago•0 comments

web-ai-sdk: experimenting with browser-native AI APIs and WebMCP

https://web-ai-sdk.dev/
1•obetomuniz•14m ago•0 comments

Where is the best place to build a bridge in Chicago?

https://thomasdhughes.com/ccac/
1•thomasdhughes2•15m ago•0 comments

One bitmask in task_struct fixes 15 years of Linux signal conflicts

https://gkoreli.com/linux-signal-stack-conflict
1•gogakoreli•16m ago•0 comments

Machine Learning with Dynamics

https://unconv.ai/blog/machine-learning-with-dynamics/
1•trextrex•21m ago•0 comments

OpenClaw leads official ARC-AGI-3 community leaderboard

https://arcprize.org/leaderboard/community
1•falcor84•22m ago•0 comments

Initial release of GrapheneOS Speech Services for text-to-speech

https://discuss.grapheneos.org/d/35722-initial-release-of-grapheneos-speech-services-for-text-to-...
2•Cider9986•25m ago•0 comments

Will agents like Git any more than we do?

https://www.amplifypartners.com/blog-posts/will-agents-like-git-any-more-than-we-do
5•itunpredictable•29m ago•0 comments

Self-hosted wikis shouldn't need an ops team

https://leafwiki.com/blog/self-hosted-wikis-shouldnt-need-an-ops-team/
1•perber•31m ago•0 comments

Debatable but likely not insane: there MAY be an issue with SpaceX' hiring

2•adinhitlore•32m ago•0 comments

Takeaways from Democrats' autopsy of Harris's 2024 loss

https://www.nytimes.com/2026/05/21/us/politics/dnc-election-autopsy-report-takeaways.html
2•brandonb•34m ago•0 comments

New Talk: From LLM Wikis to LLM Artifacts

https://academy.dair.ai/events/cmovobp97000904l5h0n9a2yz
1•omarsar•35m ago•0 comments

Meta settles social media case brought by rural Kentucky school district

https://apnews.com/article/meta-school-lawsuit-settlement-tiktok-snap-b20cdfe88dbcb55fb14808fe7f9...
4•1vuio0pswjnm7•40m ago•0 comments

Some code I played around with for reprocessing user and post positions

https://submatrix.net/article/MatrixDev/EiSRAXJDJC
1•x0x7•40m ago•0 comments

Improving my self-hosted actions runner setup

https://excipio.tech/blog/improving-my-self-hosted-actions-runner-setup/
1•lvales•40m ago•0 comments

Dakota Dust Storms Expose a $150B Economic Nightmare

https://www.bloomberg.com/opinion/articles/2026-05-21/dakota-dust-storms-expose-a-150-billion-eco...
3•littlexsparkee•41m ago•0 comments

What are the biggest challenges of building solo in the AI era?

https://partiful.com/e/SvBNyriEGJkIT0Wgzc9v
1•patrickliu007•43m ago•1 comments

When Dawkins met Claude. Could this AI be conscious?

https://unherd.com/2026/05/is-ai-the-next-phase-of-evolution/
1•tzury•43m ago•0 comments

The Maintainer's Dilemma

https://spf13.com/p/the-maintainers-dilemma/
1•nickcw•43m ago•0 comments

Jen Can Never Leave

https://www.darthealth.com/blog/jen-can-never-leave
2•mooreds•43m ago•0 comments

Agent CRM: Headless CRM for Claude and Codex

https://github.com/cluster-software/agent-crm
2•enrique_goudet•44m ago•0 comments

OpenAI and 1Password Bring Agentic Security to Codex

https://www.forbes.com/sites/timkeary/2026/05/19/openai-and-1password-bring-password-security-to-...
1•mooreds•45m ago•0 comments

Uv is fantastic, but its package management UX is a mess

https://www.loopwerk.io/articles/2026/uv-ux-mess/
2•nchagnet•45m ago•0 comments

Open Access to Standards Documents

https://discourse.llvm.org/t/rfc-open-access-to-standards-documents/90856
2•vitaut•46m ago•0 comments