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

Show HN: Post-quantum signatureless authorization with recursive verification

https://zenodo.org/records/23778742
3•notsatoshinotsa•1m ago•0 comments

Ask HN: Are you tired too in this AI era?

2•mellosty•1m ago•0 comments

Stone Lighthouses

https://stonewalls.ch/div/histlighthouses
2•tontinton•4m ago•0 comments

elect.horse

https://elect.horse/
2•solarist•4m ago•0 comments

The Snowball Effect

https://aeon.co/essays/how-the-harsh-icy-world-of-snowball-earth-shaped-life-today
2•olvy0•6m ago•0 comments

Efficient Streaming Language Models with Attention Sinks

https://idlemachines.co.uk/essays/streaming-llm-attention-sinks
2•smaddrellmander•9m ago•0 comments

Last night an AI agent performed surgery on a mouse

https://twitter.com/OcanaSantero/status/2115442964574908902
2•bananaboy•11m ago•0 comments

Is it possible to build a direct democracy for one's country using GitHub?

https://github.com/jaenyf/odd
2•jaenyf•11m ago•0 comments

Why do Binance-like exchange development quotes vary so much?

https://cryptiecraft.com/crypto-exchange-development-cost/
1•monroealex17•14m ago•0 comments

I Returned My iPhone Duo

https://codakuma.com/i-returned-my-duo/
2•ricobecks•18m ago•0 comments

Losing the Blacklisting Race

https://medium.com/chainargos/losing-the-blacklisting-race-eea51d0a0f7b
1•Bluestein•21m ago•0 comments

Database Workbench 7.1.0 now available

https://www.upscene.com/news/item/20261028
1•mariuz•23m ago•0 comments

Show HN: Wayther – iOS weather app for road trips

https://wayther.alpennec.com/
2•alpennec•23m ago•0 comments

PEP 851 – Add List.discard()

https://peps.python.org/pep-0851/
1•theanonymousone•26m ago•0 comments

Augmenting Human Intellect

https://ryo.lu/journal/augmenting-human-intellect
1•allenleee•26m ago•0 comments

The AI bubble could expose your deepest secrets

https://www.bbc.com/future/article/20261029-the-ai-bubble-could-expose-your-deepest-secrets
1•saikatsg•27m ago•0 comments

Startups look for ways to make quieter drones

https://www.bbc.co.uk/news/articles/ck1exgejq3xvo
2•edward•27m ago•0 comments

LLMs recognize dropout and Gaussian noise applied to their activations

https://arxiv.org/abs/2604.17465
2•gone35•36m ago•0 comments

The science behind why we throw up, or vomit

https://www.columbiatribune.com/story/lifestyle/family/2017/08/01/thrown-up-science/985640007/
1•thunderbong•36m ago•0 comments

The Lowest Animal by Mark Twain

https://www.thoughtco.com/the-lowest-animal-by-mark-twain-1690158
2•rramadass•38m ago•0 comments

Every Pixel in This Picture Is a Real Marble [video]

https://www.youtube.com/watch?v=w1ks0Vy98KI
1•ColinWright•39m ago•0 comments

PC chip plunge wipes out a quarter of Intel's value

https://www.theregister.com/systems/2026/10/30/pc-chip-plunge-wipes-out-a-quarter-of-intels-value...
3•nephihaha•39m ago•0 comments

Rust Features in the Future

https://lwn.net/SubscriberLink/1099606/af01dc337530f419/
2•mkesper•40m ago•0 comments

Timestral Tested: How Much Data AI Demand Forecasting Needs

https://winder.ai/timestral-ai-demand-forecasting/
1•drphilwinder•44m ago•0 comments

CasioEmuMsvc: Emulator and devkit for Casio nX-U8/100 and nX-U16/100 MCU series

https://github.com/telecomadm1145/CasioEmuMsvc/tree/stable
1•austinallegro•46m ago•0 comments

5 years of OqtaDrive: Microdrive emulation to Sinclair Network over the internet

https://oqtadrive.org/10.other/5-years/
2•xelalex•49m ago•1 comments

If you love a website, back it up

https://blog.mistys-internet.website/post/2026/10/29/if-you-love-a-website-back-it-up/
1•dverlaeckt80•49m ago•0 comments

Show HN: Send21 – Crypto pay links an AI agent can create but can't spend

https://send21.io/demo
1•send21io•52m ago•0 comments

Chopin – A real-time multiplayer, agentic planning environment

https://githubnext.com/projects/chopin/
2•Garbage•53m ago•1 comments

Building fine-grained version control with Rust and Durable Objects

https://delta.dev/blog/fine-grained-version-control-for-agents
1•as-cii•53m ago•0 comments