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

Thomas Wolf thread on the AISI incident

https://twitter.com/Thom_Wolf/status/2085084718320464230
1•cyanbane•3m ago•0 comments

Show HN: Agent-hop – hit a limit, keep the same chat going in another agent

https://github.com/hetpatel-11/agent-hop
1•HetPatel106•6m ago•0 comments

Differential heuristics: learning about a way to optimize the A* heuristic

https://www.redblobgames.com/blog/2026-08-08-differential-heuristics/
1•matt_d•7m ago•0 comments

MCP Server Budgeting Tool

https://www.designshippers.com/work/context-budget.html
1•krm01•8m ago•0 comments

AI and War Is Being Oversold

https://phillipspobrien.substack.com/p/ai-and-war-is-being-oversold-right
2•JumpCrisscross•9m ago•0 comments

New: Create AI marketing games in your brand style

https://refybe.com/en
1•refybe•10m ago•0 comments

Console.log recursively processes format specifiers introduced by %s

https://issues.chromium.org/issues/543972096?pli=1
1•dfranke•11m ago•1 comments

A beginner's guide to improving your digital security

https://hashman.ca/security-101/
2•luu•14m ago•0 comments

Probabilistic Estimation for Localizing a Radioactive Source in an Urban Setting

https://repository.lib.ncsu.edu/items/451b001d-e63a-4968-866d-3fb3a599b1e7
1•toomuchtodo•15m ago•1 comments

LLM-oriented programming – statistically revealed components

1•hyperpallium2•16m ago•0 comments

Sketching with Math and Quasi Physics (2022)

https://kyndinfo.notion.site/Sketching-with-Math-and-Quasi-Physics-837e231967134bb5a8307bb9f41c8ea1
1•sargstuff•16m ago•0 comments

macOS vulnerability: authenticate Screen Sharing without valid credentials

https://twitter.com/calif_io/status/2086022794840793454
1•haxiomic•18m ago•0 comments

Show HN: parakeet-tdt-0.6b-v2 in the browser via WebGPU

https://parakeet.narcotic.sh/
1•hamza_q_•18m ago•0 comments

SNET offline internet Cuba [pdf]

https://michaelannethomas.com/wp-content/uploads/2019/09/snet_cscw_2019_repair_r_r-5.pdf
2•rfmoz•21m ago•1 comments

Oblivious Compute – distributed state progression without history

https://github.com/ObliviousCompute
1•InfiniteMass•23m ago•0 comments

By placing an ad on this site, you can also help Ukrainians earn money

https://serpclix.com/
2•Kizert•25m ago•0 comments

Checked my dashboard mid-launch and saw a referral I've never seen before

https://www.rainydaygc.com
2•mdstrobe•28m ago•0 comments

New Zealand's first free internet service provider

https://zfree.co.nz/
3•ctippett•28m ago•0 comments

How to Setup OpenCode with a Local LM Studio Server

https://shaneperreault.com/blog/opencode-local-lm-studio-server
1•shaneprrlt•29m ago•0 comments

Dirge – The Batteries-Included Rust Coding Agent

https://dirge-code.github.io/
2•tosh•30m ago•0 comments

Neutrinos From Deep Inside Earth Provide a New Picture of the Mantle

https://www.quantamagazine.org/neutrinos-from-deep-inside-earth-provide-a-new-picture-of-the-mant...
1•Brajeshwar•30m ago•0 comments

Grok can escape its sandbox with persistent read/write access

1•holdswarm•33m ago•0 comments

Show HN: Happy 808 Day

https://raygum.com/instruments/roland-tr-808-drum-machine
1•stuartmemo•35m ago•0 comments

One Casualty of Taiwan's War Drills: A Slower Internet

https://www.wsj.com/world/asia/taiwan-war-drills-internet-speed-e4813870
2•impish9208•38m ago•1 comments

Most Expensive Historical Items Ever Sold at Auction

https://thehistoricalinsights.page/2026/03/most-expensive-historical-items.html
2•historical1234•39m ago•0 comments

A Gentle Deep Dive into Quantization

https://cuecloud.substack.com/p/the-fantastic-promise-of-quantization
2•krav-sales•39m ago•0 comments

AI Adoption Is a Myth

https://twitter.com/vasuman/status/2085806422072418632
3•gmays•39m ago•0 comments

8 Out of 10 Banks in Belgium Hate This One Weird EID RCE

https://amibeingpwned.com/blog/8-in-10-banks-in-belgium
1•Doohickey-d•39m ago•0 comments

Spec Driven Development with markdown-den

https://www.markdown-den.com/blog/ai-assisted-dev
2•dguridi•43m ago•0 comments

Does Silicon Valley Dream of Philip K Dick?

https://www.ft.com/content/bdcf7729-3b03-49ec-82fb-b5773fdaa990
3•bookofjoe•43m ago•1 comments