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•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

Australia orders China-linked investors to sell Northern Minerals stake

https://www.reuters.com/business/australia-treasurer-orders-six-shareholders-divest-northern-mine...
1•leonidasrup•2m ago•0 comments

Three's a party: US, China, and now Russia are on the prowl in GEO

https://arstechnica.com/space/2026/05/threes-a-party-us-china-and-now-russia-are-on-the-prowl-in-...
1•rbanffy•3m ago•0 comments

Ask HN: Could free/low cost LLMs be a momentary thing?

1•senda•8m ago•1 comments

Arcweave: Build interactive stories at the speed of thought

https://arcweave.com
1•doener•15m ago•0 comments

Two Autonomous Humanoid Robots Seamlessly Work Together to Make the Bed

https://laughingsquid.com/robots-make-bed/
1•air7•15m ago•0 comments

Show HN: Agent-QA: Open-source AI end-to-end testing for web and mobile apps

https://vostride.com
1•pranshuchittora•15m ago•1 comments

Two Americans Arrested After Crypto Stunt in Punch the Monkey's Zoo Enclosure

https://www.tokyoweekender.com/japan-life/news-and-opinion/american-arrested-ichikawa-zoo-punch-m...
1•razorbeamz•16m ago•0 comments

Apple May Add Auto-Deleting Chats to Siri as Gemini Powers Back End AI

https://firethering.com/apple-siri-revamp-privacy-google-gemini/
2•steveharing1•17m ago•2 comments

EchoPitch analyses emotional credibility in presentations before you deliver

https://echopitch.io
1•cavefishAI•21m ago•0 comments

Ask HN: Is Java the ideal language for LLM-assisted coding?

1•fragmede•21m ago•0 comments

New Design for the FreeBSD Website

https://cgit.freebsd.org/doc/commit/?id=c9c518d9dbb70240c23810f300ce4a5ba60442c6
1•vintagedave•21m ago•1 comments

Nobody's negotiating for the people here: Charlie Berens takes on AI datacenters

https://www.theguardian.com/us-news/ng-interactive/2026/may/17/comedian-charlie-berens-ai-datacen...
1•beardyw•22m ago•0 comments

Electric Clojure: Differential Dataflow for UI [video]

https://www.youtube.com/watch?v=ML8cFrWkWeg
1•farhanhubble•23m ago•0 comments

AI Foundry – Flat-Fee Unlimited LLM Inference on Blackwell GPUs in NZ

https://app.aifoundry.co.nz/auth/login?redirectTo=%2F
1•itsjpv•23m ago•0 comments

TechForges – Zero-Infra Software via Flux AI and Vibe-Mesh

https://sites.google.com/view/techforges/
1•SharavFounder•23m ago•0 comments

Human Code Reviews Are Dead

https://craftbettersoftware.com/p/human-code-reviews-are-dead
1•TheAnkurTyagi•28m ago•0 comments

OpenClaw creator burns through $1.3 mio in OpenAI API tokens in a single month

https://www.tomshardware.com/tech-industry/artificial-intelligence/openclaw-creator-burns-through...
2•m0do1•30m ago•0 comments

The Mercury logic programming system

https://github.com/Mercury-Language/mercury
1•Antibabelic•32m ago•0 comments

AI Won't Run Your Company by Itself

https://www.caimito.net/en/blog/2026/05/18/ai-wont-run-your-company-by-itself.html
5•berlianta•34m ago•0 comments

Grills and Smokers of 2026: Smart, Portable, Pellet

https://www.wired.com/story/best-grills-and-smart-grills/
1•joozio•34m ago•0 comments

Why the Spotify icon is a disco ball

https://mashable.com/article/spotify-disco-ball-icon-20-anniversary
1•doppp•35m ago•0 comments

Surprise AI bills leave AWS and Google Cloud users aghast

https://www.theregister.com/ai-ml/2026/05/18/surprise-ai-bills-leave-aws-and-google-cloud-users-a...
4•medalblue•35m ago•0 comments

Designskill.co

https://designskill.co/
2•anoopbln•39m ago•0 comments

Slimbook Linux Laptops

https://slimbook.com/en/
1•maelito•45m ago•0 comments

How to Think About AI in Your Product

https://abgoyal.com/posts/how-to-think-about-ai-in-your-product/
1•ghoul2•45m ago•0 comments

Dots and Boxes – real-time multiplayer, no signup

https://dotsandboxes.aeonic.earth/
1•AmartyaMandal•52m ago•0 comments

Curated list of resources on testing distributed systems

https://github.com/asatarin/testing-distributed-systems
2•jinqueeny•54m ago•0 comments

GateGraph – deterministic governance for AI agents

https://github.com/humancoreai/Gategraph
1•humancore•59m ago•0 comments

How to Learn Agentic AI in 2026 – Without Getting Lost in Hype

https://simplai.ai/blogs/how-to-actually-learn-agentic-ai-in-2026/
3•shanmugarajsk•59m ago•0 comments

I put Codex and Claude into a tank arena. Codex is winning 55% so far

https://old.reddit.com/r/codex/comments/1tgbb28/comment/omfo1by/
2•mazzystar•1h ago•0 comments