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

Comments

trbndev•12mo 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•12mo ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•12mo 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•12mo 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•12mo 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•12mo 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•12mo 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: State of the Art of Coding Models, According to Hacker News Commenters

https://hnup.date/hn-sota
2•yunusabd•2m ago•0 comments

Mistral Medium 3.5 YaRN bug fix

https://huggingface.co/mistralai/Mistral-Medium-3.5-128B/discussions/18
1•danielhanchen•4m ago•0 comments

Frizbee is a tool you may throw a tag at and it comes back with a checksum

https://github.com/stacklok/frizbee
1•mooreds•4m ago•0 comments

Silicon Valley's Brightest Parents Broke Their Own School

https://www.wsj.com/us-news/education/how-silicon-valleys-brightest-parents-broke-their-own-schoo...
1•sanj•5m ago•0 comments

Problem with Counterfeit People

https://www.theatlantic.com/technology/archive/2023/05/problem-counterfeit-people/674075/
1•tu7001•6m ago•0 comments

The agent harness belongs outside the sandbox

https://www.mendral.com/blog/agent-harness-belongs-outside-sandbox
2•shad42•6m ago•0 comments

Six Years Perfecting Maps on WatchOS

https://www.david-smith.org/blog/2026/04/29/maps-on-watchos/
2•valzevul•13m ago•0 comments

Shigeru Miyamoto: Better Coder Than Most Without Ever Writing Code

https://indiepixel.de/blog/posts/shigeru-miyamoto-has-probably-never-compiled-a-line-of-code-in-h...
2•birdculture•14m ago•0 comments

CISA, NSA & Five Eyes publishes guide on how to safely deploy AI agents

https://cyberscoop.com/cisa-nsa-five-eyes-guidance-secure-deployment-ai-agents/
1•lschueller•16m ago•0 comments

/peek is a new slash command to use subagents to check out your other sessions

https://github.com/sachio222/cc-peek
1•sachio222•17m ago•0 comments

Show HN: Rotato – Node.js proxy that rotates LLM API keys on 429 errors

https://github.com/p32929/rotato
1•heliskyr2•18m ago•0 comments

Show HN: I Built a Museum Exhibit

https://knhash.in/built-an-exhibit/
1•kn81198•20m ago•0 comments

Testing Vue Components in the Browser

https://jvns.ca/blog/2026/05/02/testing-vue-components-in-the-browser/
1•chmaynard•20m ago•0 comments

Lessons from Debugging GLM-5 at Scale

https://z.ai/blog/scaling-pain
1•pbowyer•23m ago•0 comments

Farewell to a Giant of Botany

https://nautil.us/farewell-to-a-giant-of-botany-1280409
3•Brajeshwar•23m ago•0 comments

Apple raises Mac Mini starting price $599 to $799, 256GB storage discontinued

https://www.macrumors.com/2026/05/01/mac-mini-now-starts-at-799/
1•pak•27m ago•0 comments

A GitHub for Maintainers

https://nesbitt.io/2026/05/02/a-github-for-maintainers.html
1•jamietanna•27m ago•0 comments

Disagreeing with Google, Postgres, Future Problems – Mike Stonebraker [video]

https://www.youtube.com/watch?v=YPObBOwIrHk
1•da02•29m ago•0 comments

Debian adds an SPF record to debian.org

https://lists.debian.org/debian-devel-announce/2026/04/msg00010.html
2•susam•33m ago•0 comments

Show HN: A marketplace for LLM-powered webapps earning on token margins

https://codeplusequalsai.com/dashboard
1•cryptoz•33m ago•0 comments

Elephant/Goldfish for Claude Code

https://github.com/vshvedov/elephant-goldfish
1•vladcodes•35m ago•1 comments

History of QR Code

https://www.qrcode.com/en/history/
1•helloworld•37m ago•0 comments

Aurora Systems relaunches, building and investing in ideas for 10%

https://aurorasystems.co.zw/services.html#startup-advisory
1•zayne_komichi•37m ago•1 comments

Hyperscalers are 4500 years old

https://av.codes/blog/hyperscalers-are-4500-years-old/
1•everlier•39m ago•0 comments

States rethink data center incentives amid costs and environmental concerns

https://www.politico.com/news/2026/05/02/data-centers-states-tax-incentives-00891184
1•WaitWaitWha•39m ago•0 comments

Automate Anything with Python and AI

https://codeonix.app/
1•hassananayi•41m ago•0 comments

This Month in Ladybird - April 2026

https://ladybird.org/newsletter/2026-04-30/
11•richardboegli•41m ago•0 comments

Seodata.dev – free search volume data to see search demand for your projects

https://www.seodata.dev/
2•alentodorov•43m ago•0 comments

Executive Order pushes fixed-price contracting but implementation questions loom

https://www.washingtontechnology.com/contracts/2026/05/trump-executive-order-pushes-fixed-price-c...
1•WaitWaitWha•44m ago•0 comments

Neanderthals ran 'fat factories' 125,000 years ago

https://www.universiteitleiden.nl/en/news/2025/07/neanderthals-ran-fat-factories-125000-years-ago
5•andsoitis•45m ago•0 comments