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

Satteri: A Markdown pipeline forged in Rust for the JavaScript world

https://satteri.bruits.org/
1•handfuloflight•4m ago•0 comments

Show HN: Drive your already-logged-in Chrome from any AI agent

https://github.com/leeguooooo/chrome-use
1•leeguoo•4m ago•0 comments

Medical students are using popular research tool to pump out misleading studies

https://www.science.org/content/article/medical-students-are-using-popular-research-tool-pump-out...
2•rndsignals•6m ago•0 comments

Chinese scientists unveil glowing Avatar-like plants that could light cities

https://www.euronews.com/next/2026/04/02/chinese-scientists-unveil-glowing-avatar-like-plants-tha...
2•thunderbong•8m ago•0 comments

Are you better than the screen watchers?

https://sailsandcommas.com/2026/05/30/are-you-better-than-the-screen-watchers/
1•Curiositry•17m ago•0 comments

Cloudflare launched self-managed OAuth for all

https://blog.cloudflare.com/oauth-for-all/
1•terryds•18m ago•1 comments

Libaui – Tk clone in XCB and C

https://github.com/onanaxm/libaui
2•onuelito•20m ago•0 comments

Zombie unicorns are haunting Silicon Valley

https://www.economist.com/business/2026/06/21/zombie-unicorns-are-haunting-silicon-valley
1•andsoitis•20m ago•1 comments

Electronics can now be printed onto living tissues

https://www.economist.com/science-and-technology/2026/06/24/electronics-can-now-be-printed-onto-l...
2•andsoitis•22m ago•0 comments

Scbkr – an owner-signed responsibility-chain workbench for local LLMs

https://github.com/HIJO790401/scbkr-local-responsibility-model
1•look888•23m ago•0 comments

SystemVerilog

https://en.wikipedia.org/wiki/SystemVerilog
1•handfuloflight•29m ago•0 comments

Accidental Anonymity

https://macwright.com/2026/06/24/accidental-anonymity
1•maxutility•31m ago•0 comments

Mr. Big (Police Procedure)

https://en.wikipedia.org/wiki/Mr._Big_(police_procedure)
2•killingtime74•33m ago•0 comments

Duolicious – Open-source dating app

https://github.com/duolicious/duolicious
2•roger_penrose•33m ago•0 comments

TronBrowser is an open-source, privacy-first, AI-native web browser

https://tronbrowser.dev/
1•buffer_overlord•35m ago•1 comments

Remembering the life and artwork of Ron Spears

https://magic.wizards.com/en/news/feature/remembering-the-life-and-artwork-of-ron-spears
1•WalterGR•44m ago•0 comments

Writers and Drugs

https://lithub.com/are-writers-intrinsically-vulnerable-to-alcohol-and-drugs/
3•dang•46m ago•1 comments

The effortless genius of Super Mario 64

https://ravi64.com/messi-effortless-genius-super-mario-64/
1•merlioncity•49m ago•0 comments

Paintings by Adolf Hitler

https://en.wikipedia.org/wiki/Paintings_by_Adolf_Hitler
3•num42•52m ago•0 comments

Bible as RAG Database

https://www.crosscanon.com/
26•jacksonastone•53m ago•12 comments

Bitcoin hits 20-month low as market sentiment sours

https://www.ft.com/content/41d1da8f-e1a8-4953-9d89-a8caa84cd26c
7•1vuio0pswjnm7•54m ago•0 comments

The Microsoft Store on Windows 11 is great now (2025)

https://www.windowscentral.com/microsoft/windows-11/the-microsoft-store-on-windows-11-is-actually...
1•kristianp•55m ago•0 comments

Golden Boot – Club Impact Tracker

https://golden-boot-club-impact.vercel.app/
2•saq7•58m ago•1 comments

Tech companies dealing with data center protests locally fighting losing battle

https://fortune.com/2026/06/22/data-center-opposition-goes-national-despite-only-8-percent-living...
2•1vuio0pswjnm7•58m ago•0 comments

Exploring the internal representations of Pangram 3.3.2

https://www.pangram.com/pangram-space
8•krackers•59m ago•1 comments

The Harvard Data Nerd Defending America's Goal at the World Cup

https://www.wsj.com/sports/soccer/matt-freese-goalkeeper-usa-world-cup-495d3f0a
1•pondsider•59m ago•0 comments

The Carwash Problem: Why Your IT Organization Isn't Ready for AI-Generated Code

https://atkatana.com/blog/hyper-loops-draft.html
1•atkatana•1h ago•0 comments

World-first burn treatment performed at leading Canadian hospital

https://www.hamiltonhealthsciences.ca/share/news-world-first-burn-15june26/
2•BiraIgnacio•1h ago•0 comments

Europe Became the World Champion of Heat Deaths

https://maartenboudry.substack.com/p/how-europe-became-the-world-champion
2•osnium123•1h ago•0 comments

Calling everything AI-generated is lazy

https://00f.net/2026/06/25/stop-calling-everything-ai-generated/
4•anotherevan•1h ago•1 comments