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

The seafloor is dark. It doesn't have to be

https://gergltd.com/aperturelab/
1•ipunchghosts•5s ago•0 comments

Why would someone want to learn code when AI does it better and faster?

1•manimonji•2m ago•0 comments

The unreasonable effectiveness of simple HTML

https://shkspr.mobi/blog/2021/01/the-unreasonable-effectiveness-of-simple-html/
1•gurjeet•2m ago•0 comments

Riemann-Bench

https://surgehq.ai/leaderboards/riemann-bench
1•Topfi•2m ago•0 comments

What Investment Data Implies about the AI Transition

https://www.nber.org/papers/w35290
1•paulpauper•2m ago•0 comments

AI is eating the AI Engineering Loop

https://twitter.com/lotte_verheyden/status/2064415370761646410
1•gmays•2m ago•0 comments

Thrindex – memory OS for AI agents (ranks, compresses and evolves agents memory)

https://www.thrindex.com/
1•teo-nomikos•3m ago•0 comments

Search Results Are Getting Sloptimized

https://www.theatlantic.com/technology/2026/06/google-search-ai-optimization/687495/
2•paulpauper•4m ago•0 comments

Context Is Built, Not Calculated

https://blog.bridgexapi.io/context-is-built-not-calculated
1•Bridgexapi•4m ago•0 comments

Validation Enhancer – Progressive web-form enhancer

https://www.npmjs.com/package/validation-enhancer
1•gurjeet•4m ago•0 comments

We are in the era of Science Slop

https://superposer.substack.com/p/we-are-in-the-era-of-science-slop
1•paulpauper•6m ago•0 comments

Supermicro Stock Falls on Plans to Raise $7B in Capital

https://catenaa.com/markets/equities/supermicro-stock-falls-on-plans-to-raise-7bn-in-capital/
1•NewsCatenaa•7m ago•1 comments

The Jqwik Anti-AI Affair

https://blog.johanneslink.net/2026/06/09/the-jqwik-anti-ai-affair/
1•_____k•9m ago•0 comments

A line-by-line translation of the OCaml runtime from C to Rust

https://discuss.ocaml.org/t/a-line-by-line-translation-of-the-ocaml-runtime-from-c-to-rust/18247
2•bwuno•11m ago•0 comments

Making Semgrep rip: How Ripgrep inspired us to shave hours off (some) scans

https://semgrep.dev/blog/2026/making-semgrep-rip-how-ripgrep-inspired-us-to-shave-hours-off-some-...
4•bkettle•12m ago•0 comments

I'm a product manager. My code merges without an engineer reading the diff

https://nextwaveoftech.com/posts/code-merges-without-reading-the-diff
1•theanonymousone•13m ago•0 comments

Steve Jobs responds to question about artificial intelligence, IDCA, 1983 [video]

https://www.youtube.com/watch?v=tkzGtGzXIEc
1•evo_9•13m ago•0 comments

The unwritten laws of software engineering

https://newsletter.manager.dev/p/the-unwritten-laws-of-software-engineering
3•birdculture•18m ago•2 comments

A Twist in Ukraine's Drone Campaign Is 'Hurting the Russians'

https://www.nytimes.com/2026/06/10/world/europe/ukraine-midrange-logistics-strikes.html
3•JumpCrisscross•18m ago•0 comments

Apple Made a Sports App That Does Almost Nothing. It's Incredible

https://slate.com/technology/2026/06/fifa-world-cup-apple-app-sports.html
6•ForHackernews•19m ago•0 comments

The Analog Thing – Analog Computing for the Future

https://the-analog-thing.org
3•jensgk•21m ago•0 comments

Life on the edge of Musk's Starbase brings fortunes and fractures

https://www.reuters.com/business/aerospace-defense/musks-starbase-rise-spacex-brings-fortunes-fra...
1•JumpCrisscross•22m ago•0 comments

A whale necropolis has been found

https://www.nature.com/articles/d41586-026-01581-x
1•tigerlily•22m ago•0 comments

Should we care any more about Googlebot crawling our sites?

https://utcc.utoronto.ca/~cks/space/blog/web/DoYouNeedGooglebotCrawling
1•speckx•22m ago•0 comments

Splunk Enterprise PostgreSQL sidecar has no auth (CVE-2026-20253, CVSS 9.8)

https://hellorecon.com/blog/cve-2026-20253
2•slvnx•23m ago•0 comments

The Abundance Illusion

https://www.carlyle.com/carlyle-compass/the-abundance-illusion
2•cwal37•24m ago•0 comments

A strong, reversible, and conformal adhesive gel for diverse plants

https://www.science.org/doi/10.1126/sciadv.adz6379
1•PaulHoule•24m ago•0 comments

Quick: An internal hosting platform for the AI era

https://shopify.engineering/quick
1•okneil•24m ago•0 comments

Dao Heart v3.14

https://github.com/Mankirat47/Dao-Heart-v3.14
1•Mankirat47•25m ago•0 comments

Microsoft.UI.Reactor: A declarative, component-based C# framework for WinUI apps

https://github.com/microsoft/microsoft-ui-reactor
2•therloux•26m ago•0 comments