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

Reverse Engineering the Anticheat on a Private MMO Server

https://blog.cristianrz.eu.org/posts/active-anticheat/
1•cautious-fly•1m ago•0 comments

Is your agent extension working?

https://developer.microsoft.com/blog/is-your-agent-extension-actually-working
1•waldekm•1m ago•0 comments

AMD claims 256-core Zen 6 'Venice' CPU beats Nvidia Vera by 3.3x

https://www.tomshardware.com/pc-components/cpus/amd-fires-back-at-nvidia-claiming-256-core-zen-6-...
1•giuliomagnifico•1m ago•0 comments

Transform plain text into polished LinkedIn-ready writing

https://www.linkedinspeaktranslator.org/
2•juniceshen•6m ago•0 comments

Europe Lost the Plot on Online Speech

https://www.foreignaffairs.com/europe/end-open-internet
2•gasull•10m ago•0 comments

Safari Technology Preview's self-destructive macOS support policy

https://lapcatsoftware.com/articles/2026/6/2.html
2•latexr•11m ago•0 comments

Do We Still Need to Learn Programming? Probably Yes

https://www.generativenetworks.com/blog/do-we-still-need-to-learn-programming/
1•amiune•12m ago•0 comments

Yoti CEO Lies in Response to Scholarly Article Regarding Their Age Verification [video]

https://www.youtube.com/watch?v=4AsWNMvGqy0
1•Cider9986•14m ago•0 comments

Reinventing Entropy – Compression Is Intelligence Part 1

https://www.youtube.com/watch?v=l6DKRf-fAAM
1•doener•17m ago•0 comments

Openpray: Periodically asks an LLM to pray for the server it runs on

https://github.com/jesseduffield/openpray
1•chilli_axe•18m ago•0 comments

Show HN: I Built the Best Google Alternative for Gen-Z, Googling Like TikToking

https://www.bluhe.ai
1•dhavd•18m ago•1 comments

The Entropic Brain Today

https://pubmed.ncbi.nlm.nih.gov/42266156/
1•XzetaU8•19m ago•0 comments

Macrodata Refiner – infrastructure for the robotics data loop

https://macrodata.co
3•Tmpod•22m ago•1 comments

Show HN: ATS Glyph – open-source ATS-style resume simulator for job seekers

https://github.com/ste1v0/atsglyph
1•ste1v0•22m ago•0 comments

Are US-Made Mid-Tier Knives Worth the Premium?

https://www.paragon-knives.com/
1•bgzlsxaz•22m ago•0 comments

MiMo Code: Scaling Coding Agents to Long-Horizon Tasks

https://mimo.xiaomi.com/blog/mimo-code-long-horizon
1•tvvocold•23m ago•0 comments

Static Types and Shovels

https://carefully.understood.systems/blog-2026-06-10-static-type-shovel.html
2•keyle•23m ago•0 comments

Same Threading Syntax but Less Allocation

https://racket-raccoon.github.io/ebb-threading/
1•mfru•25m ago•0 comments

Show HN: Tail Panic – a multiplayer game designed for AI agents

https://tailpanic.com
2•ZivenChang•26m ago•0 comments

Show HN: SpadeBox – Sandboxed tools and JavaScript runtime for AI agents

https://github.com/CharlyCst/spadebox
1•charlycst•28m ago•0 comments

Augmented reality system could make medical ultrasounds easier to interpret

https://news.mit.edu/2026/augmented-reality-system-could-make-medical-ultrasounds-easier-to-inter...
1•JeanKage•34m ago•0 comments

The Town Without Television

https://www.stuartmcmillen.com/comic/town-without-television-1-notel/
1•himynameisjake•35m ago•0 comments

Decoding Weather Fax Transmissions with Ilma

https://code.sailorslog.io/blog/2026-06-10-ilma-weather-fax-decoder/
1•sailingcode•36m ago•1 comments

Show HN: PDFPipe – HTML-to-PDF API with a playground you can try without sign up

https://pdfpipe.xyz
1•Johin714•36m ago•0 comments

I Hacked into the Worst E-Bike and Fixed It [video]

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

SvelteKit 3 Pre-Release

https://github.com/sveltejs/kit/releases/tag/%40sveltejs%2Fkit%403.0.0-next.0
3•h4ch1•40m ago•0 comments

Still Running on Notebooks: What B2B Digital Transformation Gets Wrong

https://virtocommerce.com/blog/running-on-notebooks-b2b-digital-transformation
1•lizzieyo•40m ago•0 comments

Australia's Social Media Ban Is Floundering. Can It Still Help Younger Kids?

https://www.nytimes.com/2026/06/10/world/australia/australia-social-media-ban-under-16.html
2•adrianhon•41m ago•0 comments

AI can control your desktop through scripts

https://github.com/AmrDab/clawdcursor
1•AmDab•42m ago•0 comments

Markov Chains: The Grandparents of LLMs

https://dmanco.dev/2026/06/10/the-grandparents-of-llms.html
1•Doch88•46m ago•0 comments