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

Skills vs. MCP tools for AI agents: When to use which

https://blog.logrocket.com/skills-vs-mcp-tools-agent-guide/
1•qikouki•4m ago•0 comments

Community, Censorship, and Why Hope Still Matters: Naomi Kritzer Interview

https://forceandfable.com/2026/04/06/whyhopestillmatters_naomikritzerinterview/
2•bryanrasmussen•4m ago•0 comments

Dyson CameraJet: The only toothbrush with a camera and a jet

https://www.dyson.com/discover/news/latest/introducing-camerajet
1•samaysharma•8m ago•0 comments

Pelliamonds

https://achromath.substack.com/p/pelliamonds
1•vismit2000•12m ago•0 comments

AI safety is designed in the West, and failing users everywhere

https://restofworld.org/2026/ai-safety-bias/
1•thm•16m ago•0 comments

Fungible Memories for Automated Technology Mapping and Retargeting: PLDI'26 Talk [video]

https://www.youtube.com/watch?v=TgqyyV7GqC4
1•matt_d•17m ago•0 comments

Just Bury Your Trash

https://worksinprogress.co/issue/just-bury-your-trash/
3•barry-cotter•23m ago•0 comments

Amazon, Synopsys to cut more than 275 Bay Area tech jobs

https://www.sfchronicle.com/tech/article/amazon-synopsys-tech-layoffs-22413103.php
3•vismit2000•24m ago•0 comments

VRML Virtual Reality Modeling Language (1995)

https://www.w3.org/MarkUp/VRML/
1•sssilver•27m ago•0 comments

New Jersey eases restrictions on residential solar panels

https://gothamist.com/news/a-whole-new-world-new-jersey-eases-restrictions-on-residential-solar-p...
3•geox•32m ago•0 comments

Back to Focus: a macOS app that nudges you when you drift

https://apps.apple.com/us/app/back-to-focus/id6802041602?mt=12
1•suyogedth•32m ago•0 comments

The Emergent Symbolic Structure of Artificial Neural Networks

https://arxiv.org/abs/2608.29530
13•schmuhblaster•37m ago•0 comments

A one-second timer in a closed modem binary was capping my ISP at 14.4k

https://dialup.litenet.tel/research/v34-modem/
1•szeremeta•38m ago•0 comments

"Enshittification" Isn't Real

https://www.a16z.news/p/enshittification-isnt-real
3•kwar13•41m ago•0 comments

M-DISC – DVD/Blu-ray compatible discs that may last up to 1000 years

https://en.wikipedia.org/wiki/M-DISC
2•gurjeet•43m ago•0 comments

Shingles vaccine linked to lower risk of heart attack and stroke, study finds

https://www.theguardian.com/science/2026/aug/26/shingles-vaccine-lower-risk-heart-attack-stroke-s...
3•croes•45m ago•0 comments

Serious Confession to Make

https://substack.com/profile/546269798-taha/note/c-327816410
2•nomoreklueless•48m ago•0 comments

GeoJSON Map Viewer

https://tools.simonwillison.net/geojson
1•vismit2000•51m ago•0 comments

The first signs of dark matter particles may have been spotted

https://www.newscientist.com/article/2587086-the-first-signs-of-dark-matter-particles-may-finally...
2•acjohnson55•51m ago•0 comments

WebFPGA

https://webfpga.io/
18•gurjeet•58m ago•5 comments

Games look real now. We're in the future

https://twitter.com/r00t404t/status/2094871766304751799
4•razodactyl•58m ago•1 comments

Yume – A game launcher for PC and emulators

https://komorebidesigns.dev/
3•DevRen•58m ago•2 comments

FixMonorepo – Fix a monorepo by splitting it into single-file repos

https://github.com/twigg-vc/fixmonorepo
2•andrebianchessi•1h ago•2 comments

mst3k-anything

https://github.com/jgbrwn/mst3k-anything
1•indigodaddy•1h ago•0 comments

How is AWS console so broken?

1•anuptalwalkar•1h ago•1 comments

Testing Grok 4.6's Enhanced Biology Safeguards

https://blog.latch.bio/p/analyzing-grok46-safeguards
2•fourfire•1h ago•0 comments

Shopify's agent-commerce category filter didn't filter on any of 190 stores

https://shelfglance.com/research/ucp-category-filter
1•BruceM2007•1h ago•0 comments

Conduct react interviews with a shared coding workspace

https://www.reactpair.com/
1•vijayst•1h ago•0 comments

Huawei Became China's Nvidia [video]

https://www.youtube.com/watch?v=Jbq4wrZn-DI
1•deterministic•1h ago•0 comments

B.C. boaters warned to avoid mysterious floating island

https://cheknews.ca/b-c-boaters-warned-to-avoid-mysterious-floating-island-1345202/
3•ehxor•1h ago•1 comments