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

How to breathe in fewer microplastics in your home

https://www.bbc.com/future/article/20260410-how-to-breathe-in-fewer-microplastics-in-your-home
1•vinni2•1m ago•0 comments

Cirrus Labs to join OpenAI shut down Circus CI on Monday, June 1, 2026

https://cirruslabs.org/
1•seekdeep•1m ago•0 comments

Claude Code: all issues get auto-closed without review?

https://github.com/anthropics/claude-code/issues/30407
1•marcindulak•4m ago•1 comments

Visconti-Sforza Tarot

https://en.wikipedia.org/wiki/Visconti-Sforza_Tarot
1•kakadu•5m ago•0 comments

How the Vision Pro Rollout Inflamed Tensions at Apple

https://www.wired.com/story/book-excerpt-mutiny-noam-scheiber-apple-vision-pro/
1•alsetmusic•6m ago•0 comments

Show HN: I'm organizing a vibe coding game dev competition

https://vibej.am/2026/
3•pieterhg•15m ago•0 comments

Iran war volatility is driving oil trading boom on Hyperliquid, says JPMorgan

https://www.coindesk.com/business/2026/03/20/iran-war-volatility-is-driving-oil-trading-boom-on-h...
1•PaulHoule•18m ago•0 comments

A History of the Early Years of AI at the University of Edinburgh

https://journals.sagepub.com/doi/epdf/10.1177/30504554261417567
1•jeremyscanvic•19m ago•0 comments

Tesla gets FSD Supervised approved in the Netherlands – here's what it means

https://electrek.co/2026/04/10/tesla-fsd-supervised-approved-netherlands-rdw-europe/
1•Someone•22m ago•0 comments

Persistent vs. Stubborn / Genius vs. Intelligent

1•shoman3003•23m ago•0 comments

Show HN: Angel Copilot – open-source tool for assessing startup deals

https://github.com/chouligi/angel-copilot/tree/main
1•chouligi•24m ago•0 comments

Why AI Coding Tools Still Feel Stuck on Localhost

https://kubekattle.github.io/ktl/blog/ai-tools-stuck-on-localhost.html
2•KyleVlaros•24m ago•2 comments

Towards a Science of Scaling Agent Systems

https://arxiv.org/abs/2512.08296
2•gpi•24m ago•0 comments

Is Ireland the worst run country in Europe?

https://www.irishtimes.com/opinion/2026/04/11/david-mcwilliams-ireland-has-too-much-money-and-is-...
4•yawboakye•28m ago•1 comments

Native macOS Multi Agent Development UI

https://super.engineering
3•ksajadi•28m ago•1 comments

Show HN: Bal – a Knights and Knaves logic puzzle game with Glicko rating system

https://bal.sciforge.ai/
1•skaye•31m ago•0 comments

AIs Job Ledger has 2 Columns

https://www.aei.org/economics/ais-job-ledger-has-two-columns/
1•RickJWagner•33m ago•0 comments

Chaoskampf

https://en.wikipedia.org/wiki/Chaoskampf
1•thunderbong•34m ago•0 comments

’Abhorrent’: the inside story of the Polymarket gamblers betting millions on war

https://www.theguardian.com/business/2026/apr/11/polymarket-gamblers-betting-iran-war-ukraine-new...
14•sandebert•34m ago•1 comments

Codex GUI's spinner uses 70% of GPU

https://github.com/openai/codex/issues/16857
1•Einenlum•37m ago•0 comments

Meta is set to pay its top AI executives almost a billion each in bonuses

https://www.msn.com/en-my/news/other/meta-is-set-to-pay-its-top-ai-executives-almost-a-billion-ea...
2•seekdeep•37m ago•0 comments

Škoda Duobell bike bell pierces noise-cancelling headphones

https://www.dezeen.com/2026/04/09/skoda-duobell-bike-bell-noise-cancelling-headphones/
3•trauco•40m ago•0 comments

US intelligence indicates China is preparing weapons shipment to Iran

https://www.cnn.com/2026/04/11/politics/us-intelligence-iran-china-weapons
3•OutOfHere•40m ago•1 comments

Japan's cabinet approved a bill classifying crypto as a financial instrument

https://www.ccn.com/news/crypto/japan-classifies-crypto-financial-instrument-historic-shift/
1•giuliomagnifico•43m ago•0 comments

Show HN: Bunqueue – Saga workflow engine for Bun with embedded SQLite

https://bunqueue.dev/guide/workflow/
1•kernelvoid•43m ago•0 comments

Hungary Is a Laboratory for Illiberal Nationalism. The Results Are In

https://www.cato.org/commentary/hungary-laboratory-illiberal-nationalism-results-are
2•rwmj•45m ago•0 comments

Show HN: I rebuilt a 2000s browser strategy game on Cloudflare's edge

https://kampfinsel.com/
3•parzivalt•45m ago•0 comments

I built a pure WGSL LLM engine to run Llama on my Snapdragon laptop GPU

https://github.com/Beledarian/wgpu-llm
1•Beledarian•46m ago•1 comments

Scaling Managed Agents: Decoupling the brain from the hands

https://www.anthropic.com/engineering/managed-agents
1•jbredeche•51m ago•0 comments

Keyboards

https://mastodon.social/@keyboards
1•doener•51m ago•0 comments