frontpage.
newsnewestaskshowjobs

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

A Simulated Attack Story on React Server Components to Exploit React2Shell

https://mate.security/blog/a-simulated-attack-story-on-react-server-components-to-exploit-react2s...
1•noisysoc•31s ago•0 comments

Aerial Photographs (2017)

https://www.toronto.ca/city-government/accountability-operations-customer-service/access-city-inf...
1•surprisetalk•39s ago•0 comments

Samsung, SK Hynix, Micron Sued in US over Memory Price Fixing

https://en.sedaily.com/international/2026/06/29/samsung-sk-hynix-micron-sued-in-us-over-memory-pr...
3•donohoe•3m ago•0 comments

Weathering the Storm of AI

https://www.bencodezen.io/blog/weathering-the-storm-of-ai/
2•mooreds•3m ago•0 comments

The Shape of Rome (2013)

https://www.exurbe.com/the-shape-of-rome/
3•downbad_•4m ago•0 comments

Astro 7 Is Here

https://astro.build/blog/astro-7/
2•mooreds•4m ago•0 comments

Bouvet Island: The Most Remote Island Is Norwegian

https://www.lifeinnorway.net/bouvet-island/
2•mooreds•6m ago•0 comments

Five Forecasts for the Future of Work

https://www.wealthsystems.ai/p/five-forecasts-for-the-future-of
2•mattmcdonagh•7m ago•0 comments

I made memory from scratch – polymatt [video]

https://www.youtube.com/watch?v=IOtf85sHRlg
2•seanbrodie•7m ago•0 comments

Comcast to Spin Off NBCUniversal

https://www.cnn.com/2026/06/29/media/comcast-spinoff-nbc-universal
3•sylens•8m ago•1 comments

Show HN: Reference MCP – let your AI agents search each other's past sessions

https://github.com/kuberwastaken/reference
2•kuberwastaken•9m ago•0 comments

WASM on the JVM Ships Under the Bytecode Alliance

https://foojay.io/today/endive-1-0-wasm/
3•dustingetz•11m ago•0 comments

US seizes hundreds of FIFA World Cup illegal streaming domains

https://www.bleepingcomputer.com/news/security/us-seizes-hundreds-of-fifa-world-cup-illegal-strea...
2•thm•12m ago•0 comments

AiCompiler – a language where the LLM is the CPU

https://aicompiler.dev
2•srobbani•12m ago•0 comments

How Polymarket Traders Revolted over One Silly Syllable

https://www.nytimes.com/2026/06/28/business/donk-polymarket-prediction-markets.html
2•thm•12m ago•0 comments

Show HN: Encode arbitrary data into a WOFF2 color font, decode via canvas

https://github.com/EtherDream/brpack
2•etherdream•12m ago•0 comments

Claude suspension has been frustrating

https://support.claude.com/en/articles/8241253-safeguards-warnings-and-appeals
3•Jasonmils910•16m ago•1 comments

OpenAI, Anthropic new AI spending reality as users shift to efficiency

https://www.cnbc.com/2026/06/26/openai-anthropic-new-ai-spending-reality-as-users-shift-to-effici...
2•pkaeding•18m ago•0 comments

Engineering Friction Series

https://yusufaytas.com/series/engineering-friction
5•yusufaytas•20m ago•1 comments

Wine-NX – Experimental Wine Runtime for Nintendo Switch

https://github.com/dantiicu/wine-nx
2•retro_guy•21m ago•0 comments

Joys of cancelling a TBB task group

https://aras-p.info/blog/2026/06/28/Joys-of-cancelling-a-TBB-task-group/
2•ingve•23m ago•0 comments

Why Britain deliberately destroyed its manufacturing industry [video]

https://www.youtube.com/watch?v=A4UCFVBsBeU
2•teleforce•24m ago•0 comments

MaralGPT "Mythos" 9B just released, and this is why I'm proud of my project

https://haghiri75.com/en/maralgpt-mythos-9b-just-released-and-this-is-why-im-proud-of-my-project/
8•haghiri75•26m ago•5 comments

Rebuilding the Computer Room

https://alexwlchan.net/2026/computer-room/
2•ingve•27m ago•0 comments

New nuclear reactors for America 250 come with safety concerns

https://www.npr.org/2026/06/29/nx-s1-5847944/new-nuclear-reactors-america-250-safety-concerns
2•rbanffy•30m ago•0 comments

How to pick the AI agents worth building

https://www.theaithinker.com/p/how-to-pick-the-ai-agents-worth-building
2•adamfaik•31m ago•0 comments

DeepSeek V4 Peak Valley Pricing Change

https://www.kucoin.com/news/flash/deepseek-v4-launches-in-mid-july-with-peak-valley-pricing
2•lmartineng•32m ago•0 comments

Frontier Code (AI coding benchmark)

https://cognition.com/blog/frontier-code
2•nicoburns•35m ago•0 comments

Is the Age of Anthropic and OpenAI Over

https://aifuture.org/news/china-s-z-ai-claims-it-can-match-mythos-on-cybersecurity-2165
1•humanvsmachine•36m ago•1 comments

Show HN: bbl – a command line Bible to read and search, 26 langauges, offline

https://github.com/nehemiaharchives/bbl
1•hokuto-joel-ide•37m ago•0 comments