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 Builder PM Trap

https://clementboutignon.com/posts/builder-pm-trap
1•clement_b•32s ago•0 comments

Clickup mocks employees over AI 8 days before layoff

https://twitter.com/RhysSullivan/status/2057731867361902967
1•tnolet•2m ago•0 comments

Unplug technofascism – Belgian activists are planning to occupy a datacenter

https://code-rouge.be/en/about-us/cr4-narrative/
1•pietervdvn•3m ago•1 comments

New York State passes bill requiring disclosure of food additives

https://foodpackagingforum.org/news/new-york-state-passes-bill-requiring-disclosure-of-food-addit...
1•geox•3m ago•0 comments

Free MongoDB GUI Tool to Browse Data, Run Queries, and Create Indexes

https://visualeaf.com/blog/free-mongodb-gui-tool/
1•roxana_haidiner•3m ago•0 comments

The case against boolean logic

https://abuseofnotation.github.io/boolean-thinking/
2•boris_m•5m ago•0 comments

Nyx Wave: an AI agent that extracted expert knowledge via email

https://splabs.io/nyx-wave-knowledge-extraction
1•k-thimmaraju•7m ago•0 comments

Most EVM monitoring breaks after the first swap

https://blog.bridgexapi.io/most-evm-monitoring-breaks-after-the-first-swap
1•Bridgexapi•7m ago•0 comments

Ban for Authors Submitting AI Content 'Welcome but Unenforceable'

https://www.insidehighered.com/news/faculty/books-publishing/2026/05/22/ban-authors-who-submit-ai...
1•50kIters•8m ago•0 comments

A Comma and a Question Mark

https://www.thetypicalset.com/blog/a-comma-and-a-question-mark
1•eigenBasis•11m ago•0 comments

Antigravity 2.0 Tops the OpenSCAD Architectural 3D LLM Benchmark

https://modelrift.com/blog/openscad-llm-benchmark/
1•jetter•11m ago•0 comments

Thermo-Nuclear Code Quality Review (Cursor Team Kit skill)

https://github.com/cursor/plugins/blob/3347cbab5b54136f6fba0994c3a01a56f7fb7fca/cursor-team-kit/s...
1•pramodbiligiri•14m ago•0 comments

What Google, Yahoo, Microsoft, and Apple are doing to your email

https://www.jacquescorbytuech.com/writing/what-google-yahoo-microsoft-and-apple-are-doing-your-email
2•iamacyborg•15m ago•0 comments

Camp: Static Site Generation for Racket

https://joeldueck.com/what-about/camp/
2•amai•19m ago•0 comments

Free Proxy List 2026

https://momoproxy.com/free-proxy-list
1•xbjamilnz•19m ago•0 comments

Show HN: I made an open-source memory layer for agents

https://agentrecall.cloud
2•MarsB•20m ago•0 comments

Megalodon: Mass GitHub Repo Backdooring via CI Workflows

https://safedep.io/megalodon-mass-github-repo-backdooring-ci-workflows/
2•LaSombra•21m ago•0 comments

Custom Domains for Your SaaS with Caddy On-Demand TLS and Asp.net Core

https://dotnethow.net/articles/custom-domains-with-caddy-on-demand-tls/
1•ervistrupja•22m ago•0 comments

Show HN: HR – a 30-line script that prints a colored bar across your terminal

https://github.com/ankurokok/hr
1•discordance•22m ago•0 comments

Hollywood in the 60s and the Good AI Future

https://opcraft.co/writing/2026/04/getting-the-good-ai-future/
1•amai•22m ago•0 comments

Centralisation, Reversibility, and Restarting

https://mpadge.eu/blog/centralisation-reversibility.html
1•mpadge•24m ago•0 comments

Linkano – Link objects on your Mac

https://www.mjanssen.nl/linkano/index.html
1•marc0janssen•25m ago•0 comments

Proton Pass for AI Agents

https://proton.me/blog/pass-access-tokens
1•h4kunamata•29m ago•1 comments

Live 204-node MoE visualization reveals emergent cognitive stratification

https://github.com/eriirfos-eng/ternary-intelligence-stack
1•rfi-irfos•30m ago•0 comments

Storing sunlight in DNA-inspired molecules, released later as heat

https://www.science.org/doi/10.1126/science.aec6413
2•sailingcode•31m ago•2 comments

Webmcp

https://webmcp.dev/
1•saikatsg•34m ago•0 comments

I put Claude Code in a browser terminal I built in Go

https://anupshinde.medium.com/i-put-claude-code-in-a-browser-terminal-i-built-in-go-a95206681085
1•anupshinde•35m ago•0 comments

Baby Magic – AI baby images, videos, and family memories

https://www.babymagic.app
1•Follow_Cloud•36m ago•0 comments

Cruise ships are sailing to a phantom destination that doesn't appear on any map

https://www.cnn.com/travel/visiting-null-island-cruises
1•cpeterso•36m ago•0 comments

How security teams can report cyber risk to boards

https://www.databricks.com/blog/how-security-teams-can-report-cyber-risk-boards
1•mc-serious•36m ago•0 comments