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

Discourse Is Not Going Closed Source

https://blog.discourse.org/2026/04/discourse-is-not-going-closed-source/
4•sams99•4m ago•0 comments

Taiwan Market Cap Tops $4T on AI Boom, Overtaking UK

https://www.bloomberg.com/news/articles/2026-04-16/ai-driven-demand-pushes-taiwan-s-market-cap-ah...
2•ipnon•5m ago•0 comments

You Are What You Consume

https://www.noahpinion.blog/p/you-are-what-you-consume
1•krustyburger•7m ago•0 comments

Show HN: Ask your AI to start a business for you, resolved.sh

https://resolved.sh/
1•RancheroBeans•10m ago•0 comments

Solving Physics Olympiad via reinforcement learning on physics simulators

https://sim2reason.github.io/
1•ivansavz•11m ago•0 comments

Aurora

https://www.together.ai/blog/aurora
1•gmays•11m ago•0 comments

Observational constraints project a ~50% AMOC weakening by the end of century

https://www.science.org/doi/10.1126/sciadv.adx4298
2•ianrahman•13m ago•0 comments

Axol: Cheerful desktop companion that surfaces alerts from JSON payloads

https://roach.github.io/axol/
2•markchristian•14m ago•0 comments

How are you handling silent failures in multi-step agent workflows?

https://www.agentsentinelai.com/
1•skhatter•15m ago•1 comments

Anthropic in talks to give US Government access to its Mythos model

https://www.ft.com/content/c9f5b690-a10e-4c66-9245-017f8bfbc7b4
1•Cider9986•16m ago•1 comments

Software Is About to Get Cheap

https://www.bhusalmanish.com.np/blog/posts/ai-cheap-software-saas-future.html
1•okchildhood•22m ago•0 comments

The CTO of Barad-DûR: A Revisionist History of Mordor

https://heyslick.substack.com/p/the-cto-of-barad-dur-revisionist-history-mordor
2•wolfcola•22m ago•0 comments

Researchers Induce Smells with Ultrasound

https://www.uploadvr.com/researchers-induce-smells-with-ultrasound/
1•LorenDB•22m ago•0 comments

AST and LLM Navigation Tool

https://analect.dev/
1•ascent817•24m ago•0 comments

Realistic AI Avatars

https://percify.io
1•drepheus•25m ago•0 comments

Drive Without Gasoline – V8 Wood Gas Chevrolet Fleetside [video]

https://www.youtube.com/watch?v=bWnhtqDJwIU
1•johnnyApplePRNG•25m ago•0 comments

Stop Destroying Video Games

https://www.youtube.com/watch?v=xSla5vfGi3A
1•doppp•26m ago•0 comments

EU Parliament Hearing: Are Publishers Allowed to Disable Games You Bought? [video]

https://www.youtube.com/watch?v=oXcogLmxnJw
1•throwawayk7h•32m ago•0 comments

LLM inference infrastructure for a systems audience

https://blog.mihirnanavati.com
1•PaulHoule•34m ago•0 comments

Show HN: Valuepulse – search docs, query data, and build dashboards in one place

https://valuepulse.ai
1•ygudeta•37m ago•0 comments

Basic Intrusion Detection System with Mtree (FreeBSD)

https://henryleach.com/2026/03/basic-intrusion-detection-system-with-mtree/
1•DASD•45m ago•0 comments

Show HN: Hailuo 3.0 AI – AI Video Generator

https://hailuo30.net
1•danielmateo773•48m ago•0 comments

US Bill Mandates On-Device Age Verification

https://reclaimthenet.org/us-bill-mandates-on-device-age-verification
5•ronsor•51m ago•0 comments

Software Bonkers

https://craigmod.com/essays/software_bonkers/
1•mooreds•52m ago•0 comments

How AI changed your daily work at office?

1•XDataY•52m ago•0 comments

Opus 4.7 is horrible at writing

3•limalabs•54m ago•1 comments

Component "archive.ubuntu.com" and a few other components are Down

https://status.canonical.com/
1•SoftTalker•56m ago•2 comments

The first signed, drift-monitored W3C WebMCP manifest

https://getspeakable.ai/blog/webmcp-launch/
2•quickersilver•56m ago•0 comments

Has anyone used Claude Opus 4.7 API on Qubrid or another platform? Use case?

https://platform.qubrid.com/
1•tech_curator•1h ago•0 comments

Show HN: A collection of GPT-IMAGE-2 prompts from X(Twitter)

https://gptimage2.one/awesome-gpt-image-2-prompts
2•kevinhacker•1h ago•0 comments