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

The FBI Wants 'Near Real-Time' Access to US License Plate Readers

https://www.wired.com/story/security-news-this-week-fbi-license-plate-reader-real-time-access/
1•Brajeshwar•27s ago•0 comments

Show HN: I build a tool to encourage before reviewing code, review intents

https://github.com/mainline-org/mainline
1•crs0910•2m ago•0 comments

Is Logistic Regression Regression?

https://datascienceconfidential.github.io/r/predictive-models/2026/05/14/is-logistic-regression-r...
1•jprs•7m ago•0 comments

Dune Imperium Is an Everything Sandwich

https://12gramsofcarbon.com/p/boardgame-review-dune-imperium-is
1•theahura•7m ago•0 comments

Centaur – Multiplayer, self-hosted, secure agents

https://centaur.run/
1•magelinskaas•8m ago•0 comments

Emerging Patterns in Building GenAI Products

https://martinfowler.com/articles/gen-ai-patterns/
1•cebert•8m ago•0 comments

The Mysterious XF86AudioPlay Issue

https://michael-prokop.at/blog/2026/05/20/the-mysterious-xf86audioplay-issue/
2•birdculture•9m ago•0 comments

Tiny piece of math prevents perfect coding agents

https://hisohan.substack.com/p/this-tiny-piece-of-math-prevents
1•ronniebasak•9m ago•0 comments

Turn Phone to Speacker for PC

https://sonno.live
1•kinle•13m ago•0 comments

OpenAI Codex: Increase in users hitting Codex rate limits

https://status.openai.com/incidents/01KS88SRADTWQW27NYRAXMBAQN
1•embedding-shape•15m ago•1 comments

Sir John Soane and the red telephone box

https://www.soane.org/features/sir-john-soane-and-red-telephone-box-0
1•curio_Pol_curio•16m ago•0 comments

VPN [First VPN] used by ransomware actors dismantled in global crackdown

https://www.europol.europa.eu/media-press/newsroom/news/cybercriminal-vpn-used-ransomware-actors-...
2•sorenjan•17m ago•1 comments

Extensy

https://extensy.dev
2•amirlannk•17m ago•3 comments

How Metrics Drift: Goodhart's Law, Metric Gaming, and Reality Drift [pdf]

https://github.com/therealitydrift/reality-drift-library/blob/main/Reality%20Drift%20Project/03_R...
1•realitydrift•19m ago•0 comments

Why Did South Africa Relinquish Its Nuclear Weapons?

https://www.thecollector.com/south-africa-nuclear-weapons/
2•Tomte•19m ago•0 comments

Frontier Risk Report (February to March 2026) – METR

https://metr.org/blog/2026-05-19-frontier-risk-report/#incidents-hero
1•paraschopra•20m ago•0 comments

Maldives tragedy shines light on dangers of cave diving

https://www.theguardian.com/world/2026/may/23/maldives-diving-tragedy-cave-experts-warn-danger-sa...
1•YeGoblynQueenne•21m ago•0 comments

Building Complex Functions Out of Real Parts

https://www.johndcook.com/blog/2026/05/22/complex-functions-real-parts/
1•tzury•21m ago•0 comments

Why AI writes software but doesn't build a good product

https://www.f-rello.com/blog/1
1•karstenb•22m ago•1 comments

Show HN: CostHawk Tracks AI Adoption Across Teams, Repos, and Projects

https://costhawk.ai
1•tech-pulse•23m ago•0 comments

Show HN: Calculator Music – play songs with number keys in the browser

2•zice0503•23m ago•0 comments

Yuri Ushakov

https://grokipedia.com/page/Yuri_Ushakov
1•__patchbit__•24m ago•0 comments

PSA Crypto: The P is for Portability

https://danielmangum.com/posts/psa-crypto-portability/
1•hasheddan•27m ago•0 comments

AI assistants can be hijacked and manipulated by inaudible sounds

https://arxiv.org/abs/2604.14604
2•chbint•29m ago•0 comments

AI is changing the internet forever

https://www.cnn.com/2026/05/23/tech/ai-internet-search
1•reconnecting•35m ago•0 comments

Show HN: First MCP server for Guesty property mgmt – 43 tools, open source

https://www.npmjs.com/package/guesty-mcp-server
1•dlj_realty•36m ago•0 comments

How Was This Allowed to Happen? – 2025 Washington National Crash [video]

https://www.youtube.com/watch?v=41UYPeTr96s
2•susam•37m ago•0 comments

Claude Code Documentation Map

https://code.claude.com/docs/en/claude_code_docs_map
1•geox•37m ago•0 comments

Runway started by helping filmmakers – now it wants to beat Google at AI

https://techcrunch.com/2026/05/15/runway-started-by-helping-filmmakers-now-it-wants-to-beat-googl...
1•gmays•38m ago•0 comments

I let an AI agent loose on my network – it owned my supply chain in 12 minutes

https://dennysentinel.com/blog/deepseek-owned-supply-chain-12-minutes/
2•makerdiety•38m ago•0 comments