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

Show HN: Lookas – Terminal audio visualizer that's aligned for human perception

https://github.com/rccyx/lookas
1•rccyx•4m ago•0 comments

Node.js bindings for Nvidia cuVS > GPU-accelerated vector search

https://github.com/638Labs/cuvs-node
1•gmatt•4m ago•1 comments

A Survey of Workflow Optimization for LLM Agents

https://arxiv.org/abs/2603.22386
1•PaulHoule•4m ago•0 comments

Intel Desk – a live geopolitical and market desk with replayable source chains

https://www.inteldesk.app/
1•wudwerd01•5m ago•0 comments

Taxpayers to spend $477B on tax season

https://www.thecentersquare.com/national/article_27a78f27-ea2a-4adc-809a-aa77befdb3ff.html
1•speckx•7m ago•0 comments

Allbirds shares jump over 400% on plans to pivot to AI from sneakers

https://www.reuters.com/business/allbirds-shares-jump-over-400-plans-pivot-ai-sneakers-2026-04-15/
1•sph•7m ago•0 comments

Escaping the Fork: How Meta Modernized WebRTC Across 50 Use Cases

https://engineering.fb.com/2026/04/09/developer-tools/escaping-the-fork-how-meta-modernized-webrt...
1•ashvardanian•8m ago•0 comments

Empedocles fragments found in Egypt

https://metro.co.uk/2026/04/14/work-lost-philosopher-inspired-plato-aristotle-uncovered-egypt-279...
1•Iuz•11m ago•0 comments

Tesla 'Full Self-Driving' crashed through railroad gate seconds before train

https://electrek.co/2026/04/15/tesla-fsd-railroad-gate-oncoming-train-texas-owner/
2•Bender•11m ago•0 comments

Thomson Reuters Fired Worker for Speaking Out About ICE, Former Employee Says

https://www.404media.co/thomson-reuters-fired-worker-for-speaking-out-about-ice-former-employee-s...
11•Brajeshwar•12m ago•1 comments

Simdutf Can Now Be Used Without Libc++ or Libc++ABI

https://mitchellh.com/writing/simdutf-no-libcxx
2•cdrnsf•13m ago•0 comments

Show HN: Playbach.io, browser rhythm game (desktop)

https://playbach.io/
1•tsterin•13m ago•0 comments

Arm comes to the Framework 13 [video]

https://www.youtube.com/watch?v=CIb87SJ4xwo
3•znpy•15m ago•0 comments

Comparing Compression Tools

https://www.arp242.net/cmp-compress.html
1•ingve•16m ago•0 comments

Startups Are Context Arbitrages

https://www.alessiofanelli.com/posts/startups-are-context-arbitrages
1•FanaHOVA•17m ago•0 comments

Coq theorem prover is now called Rocq

https://rocq-prover.org/about
3•rwmj•17m ago•0 comments

Printing real headline news on the Commodore 64 with The Newsroom's Wire Service

http://oldvcr.blogspot.com/2023/03/printing-real-headline-news-on.html
1•superultra•17m ago•1 comments

Space Force looks at moving "significant number" of launches from ULA to SpaceX

https://arstechnica.com/space/2026/04/space-force-looks-at-moving-significant-number-of-launches-...
3•Bender•18m ago•0 comments

Opting out of cookies no guarantee

https://globalprivacyaudit.org/2026/california
1•HelloUsername•19m ago•0 comments

How Accurate Are Google's A.I. Overviews?

https://www.nytimes.com/2026/04/07/technology/google-ai-overviews-accuracy.html
1•bookofjoe•19m ago•2 comments

Lowdefy v5: The Config Webstack

https://lowdefy.com/articles/lowdefy-5-whats-new/
1•gervwyk•20m ago•0 comments

I made Agentation for vanilla JavaScript

https://github.com/mearnest-dev/agentation-vanilla
1•mearnest•20m ago•1 comments

Project Glasswing Has a Blind Spot. It's You

https://quodeq.ai/blog/glasswing-blind-spot/
3•vikDPG•20m ago•0 comments

Users lose $9.5M to fake Ledger wallet app on the Apple App Store

https://www.web3isgoinggreat.com/?id=fake-ledger-app
5•CharlesW•21m ago•1 comments

Jane Street Signs $6B AI Cloud Agreement with CoreWeave

https://www.coreweave.com/news/jane-street-signs-6-billion-ai-cloud-agreement-with-coreweave
1•moelf•22m ago•0 comments

Linux 7.1 Is a Big Win for Intel Panther Lake with Fred Now Enabled by Default

https://www.phoronix.com/news/Linux-7.1-Enabled-Intel-FRED
2•mikece•23m ago•0 comments

Keyword Scout

https://keywordscout.app
1•DailyGeo•23m ago•0 comments

ChatGPT, Is This Real?

https://arxiv.org/abs/2604.09316
2•runningmike•26m ago•0 comments

Show HN: EmbedIQ – Claude Code Compliance Config for HIPAA/PCI-DSS/SOC2

https://github.com/asq-sheriff/embediq
1•asqpl•26m ago•0 comments

We Built Hanker in 14 Days with Claude

https://hanker.app/blog/we-built-hanker-in-14-days-with-claude-heres-the-slightly-unhinged-techni...
1•whatsupdog•27m ago•0 comments