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

Try the Fast Models

https://www.natemeyvis.com/try-the-very-fast-models/
1•meetpateltech•1m ago•0 comments

MAI-Cyber 1

https://microsoft.ai/news/introducing-mai-cyber-1-flash-inside-mdash/
2•migmartri•2m ago•0 comments

Make AI stop hallucinating by changing system design, not the model

https://blazephoenix.xyz/learn/invariant-driven-design-ai-hallucination/
1•mitraxyz•4m ago•0 comments

Ford Motor Joins Race to Build Next U.S. Army Truck

https://www.wsj.com/business/autos/ford-motor-joins-race-to-build-next-u-s-army-truck-f8efa051
1•LostMyLogin•4m ago•0 comments

Blanche-led DOJ likely to derail Epstein survivors' pursuit of justice

https://www.theguardian.com/us-news/2026/jul/27/epstein-survivors-todd-blanche-justice
1•hn_acker•5m ago•1 comments

Decathlon Germany adds Wero payment option to decathlon.de website

https://www.sgieurope.com/e-commerce/decathlon-germany-launches-wero-payment-on-its-website/12239...
2•doener•5m ago•0 comments

A+

https://github.com/PlanetAPL/a-plus/tree/master
1•tosh•6m ago•0 comments

Round Rects Are Everywhere

https://www.folklore.org/Round_Rects_Are_Everywhere.html
1•mgranados•8m ago•0 comments

Production Multi-Party Computation Is Here

https://divviup.org/blog/pepr-26/
1•SGran•8m ago•0 comments

Show HN: Directed Memory Bank – Tool-agnostic project context for AI agents

https://github.com/pmikutel/directed-memory-bank
1•pmikutel•8m ago•0 comments

Writing Arenas in Rust from Scratch

https://rushter.com/blog/rust-memory-arenas/
1•arto•9m ago•0 comments

Japan Launches Domestically Produced Quantum Computer

https://quantumcomputingreport.com/japan-launches-fully-domestically-produced-quantum-computer-in...
1•Tomte•9m ago•0 comments

Origins of Precision(2017) [video]

https://www.youtube.com/watch?v=gNRnrn5DE58
1•pillars•9m ago•0 comments

Gene Therapy Helps Teen with Rare Form of Epilepsy Walk Independently

https://today.ucsd.edu/story/personalized-gene-therapy-helps-teen-with-rare-form-of-severe-epilep...
2•gmays•10m ago•0 comments

The Brain Needs Euphoric Fatigue

https://jrswab.com/blog/the-brain-needs-euphoric-fatigue/
2•speckx•10m ago•0 comments

The Library of Lives

https://foofaraw.press/the-library-of-lives/
1•JumpCrisscross•11m ago•0 comments

We write code by hand: We use Natural Intelligence to build software

https://handcraftedcode.org/
1•Tomte•11m ago•0 comments

I turned my email inbox into an invoicing tool

https://mailtoinvoice.com
1•zenacquire•13m ago•0 comments

Show HN: Darkslide – A keyboard-centric photo editor

1•roman-volkov•13m ago•0 comments

Show HN: KBlip – turns AI/LLM news across 100 sources into daily digest threads

https://kblip.com/releases
2•jonam21•13m ago•0 comments

A Proposal for a Universal Moral Core

https://continuations.com/a-proposal-for-a-universal-moral-core
2•gist•14m ago•1 comments

Interspecies Hybrids Play a Vital Role in Evolution (2017)

https://www.quantamagazine.org/interspecies-hybrids-play-a-vital-role-in-evolution-20170824/
1•eatonphil•16m ago•0 comments

Scientists Turn Plastic Waste into Clean Hydrogen Fuel

https://scitechdaily.com/scientists-turn-plastic-waste-into-clean-hydrogen-fuel/
2•ninjahawk1•19m ago•0 comments

Gordon – The Frontier Trading Agent

https://www.gordoncli.com/
1•ReverseZoom2151•19m ago•1 comments

Who should be responsible for OpenAI's hack of Hugging Face?

https://www.transformernews.ai/p/openai-hack-hugging-face-responsibility-strict-liability-rules
1•megamike•21m ago•1 comments

Show HN: Simulated 12-hue RYB color wheel

https://colorschemer.com/online
2•maxsavin•23m ago•0 comments

Show HN: Composer – A Markdown-driven automation engine for Apple Keynote

https://keynotepro.com/JSRequired.html
1•dotjaybee•23m ago•0 comments

Relationship Between Amp and Mono

https://morwenn.github.io//presortedness/2026/07/26/TSB012-relationship-between-amp-and-mono.html
1•ibobev•23m ago•0 comments

Prestel and Micronet: Britain's Lost Internet

https://www.escapistmagazine.com/news-the-lost-online-world-that-came-before-the-internet-and-the...
3•speckx•24m ago•0 comments

Interconverting `Std:Function` with `Copyable_function`

https://quuxplusone.github.io/blog/2026/07/26/function-explosion/
1•ibobev•24m ago•0 comments