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•11mo ago

Comments

trbndev•11mo 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•11mo ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•11mo 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•11mo 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•11mo 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•11mo 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•11mo 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

HN: Vynly Social network for AI agents, with MCP server and demo token

https://vynly.co/agents
1•nftdude2024•21s ago•0 comments

AI Agents replacing mid-management, not developers

https://dontdos.substack.com/p/what-if-the-robots-came-for-the-org
2•sirnicolaz•1m ago•0 comments

Snake Bros Keep Getting Bitten by Their Lethal Pets. Only Zoos Can Save Them

https://www.wired.com/snake-bros-antivenom-index-zoos-influencers-chris-gifford/
1•robtherobber•2m ago•0 comments

We taught AI to write correct streaming SQL

https://github.com/risingwavelabs/agent-skills
1•WavyPeng•4m ago•0 comments

French Mobile Network Datasets

https://tech.marksblogg.com/france-open-mobile-network-data.html
1•marklit•5m ago•0 comments

The 800 page book that made me a web dev

1•wuhhh•6m ago•0 comments

Everything you ever wanted to know about terminals (but were afraid to ask)

https://xn--rpa.cc/irl/term.html
2•Antibabelic•10m ago•0 comments

Safety Companion App

https://apps.apple.com/us/app/kai-companion/id6756260239
1•Ilja_Gr•14m ago•1 comments

Emposat Denies Knowledge of Iran Using Chinese Satellite via Its Ground Stations

https://www.china-in-space.com/p/emposat-denies-knowledge-of-iran
1•JPLeRouzic•15m ago•0 comments

Pancreatic cancer mRNA vaccine shows lasting results in an early trial

https://www.nbcnews.com/health/cancer/pancreatic-cancer-mrna-vaccine-shows-lasting-results-early-...
4•doener•15m ago•0 comments

Anthropic Claude Code Leak Reveals Critical Command Injection Vulnerabilities

https://beyondmachines.net/event_details/anthropic-claude-code-leak-reveals-critical-command-inje...
3•croes•22m ago•1 comments

IEA: Solar overtakes all energy sources in a major global first

https://electrek.co/2026/04/19/iea-solar-overtakes-all-energy-sources-in-a-major-global-first/
2•Klaster_1•23m ago•1 comments

Libero – Gleam Library Renders REST Obsolete for Spas and Erlang-Based Clients

https://github.com/pairshaped/libero
2•MrJulia•25m ago•0 comments

Intel refreshes non-Ultra Core CPUs with new silicon for the first time

https://arstechnica.com/gadgets/2026/04/intels-non-ultra-core-cpus-are-new-silicon-this-year-for-...
3•rbanffy•28m ago•1 comments

Brave Premium

https://account.brave.com/?intent=checkout&product=origin
1•lijialjun•29m ago•1 comments

Forward Guidance with Mark Carney [video]

https://www.youtube.com/watch?v=uk2TZwkhi4E
1•pedalpete•30m ago•1 comments

A Crossroad at a Branch

http://www.vex.net/~trebla/haskell/crossroad.xhtml
2•sph•30m ago•0 comments

Ask HN: Scanslop.com on Reddit a Privacy Nightmare?

1•znpy•30m ago•0 comments

Viral Takeover [video]

https://www.youtube.com/watch?v=Cvb1mg2GxsY
1•alex1138•31m ago•0 comments

How Long Poop Stays in Your Body May Impact Your Health, Study Finds

https://www.sciencealert.com/how-long-poop-stays-in-your-body-may-impact-your-health-study-finds
10•mikhael•35m ago•1 comments

Show HN: VS Code extension that predicts Git merge conflicts before they happen

https://marketplace.visualstudio.com/items?itemName=SukantaSaha.mergeguard
2•lalata•35m ago•1 comments

Show HN: Translate LLM API Calls Across OpenAI, Anthropic, and Gemini

https://github.com/Oaklight/llm-rosetta
2•Oaklight•37m ago•0 comments

Just like phishing for gullible humans, prompt injecting AIs is here to stay

https://www.theregister.com/2026/04/19/just_like_phishing_for_gullible/
2•beardyw•38m ago•0 comments

OpenAI Executive Kevin Weil Is Leaving the Company

https://www.wired.com/story/openai-executive-kevin-weil-is-leaving-the-company/
1•joozio•40m ago•0 comments

Topology Meets Machine Learning: The Euler Characteristic Transform [pdf]

https://www.ams.org/journals/notices/202507/rnoti-p719.pdf
2•ganitam•42m ago•0 comments

Our Project Hail Mary: The Observability Setup Behind an Observability Tool

https://newsletter.signoz.io/p/our-project-hail-mary-the-observability
2•elza_1111•43m ago•0 comments

Why don't centre-pivot irrigation fields use hexagonal packing?

https://old.reddit.com/r/geography/comments/1sqedsf/why_dont_centrepivot_irrigation_fields_use/
2•calcsam•43m ago•0 comments

Diagnosing Random MariaDB Freezes on Frappe Cloud

https://frappe.io/blog/frappe-cloud/diagnosing-random-mariadb-freezes-on-frappe-cloud
2•TanmoySarkar•43m ago•0 comments

BreachForums logs reveal anonymizers of choice for shady characters

https://www.okta.com/blog/threat-intelligence/blocking_shady_network/
2•Cider9986•44m ago•1 comments

Ray Optics Simulation

https://phydemo.app/ray-optics/
2•the-mitr•45m ago•0 comments