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

EU officials peeved after Anthropic sends junior staffer to testify about safety

https://www.politico.eu/article/anthropic-european-parliament-donny-greenberg-artificial-intellig...
1•intunderflow•2m ago•0 comments

A Universe from Three Sectors: Recovering TradeWars 2002's Map from Its RNG Seed

https://mattmichie.com/2026/07/14/a-universe-from-three-sectors/
1•influx•7m ago•0 comments

Looking for a remote internship (Fall/Winter/Spring 2026)

1•cnnadozi•7m ago•1 comments

JOBCV.IO - Free Resume Maker Online – Build Your Professional CV

https://jobcv.io/en
1•grossos•8m ago•1 comments

Cross sectioning insects in an electron microscope with a femtosecond laser

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

Casberi: Apps in one feed, no account, everything on-device

https://casberi.app
1•alexchopan•9m ago•0 comments

Manage your Claude Code agents in Raycast

https://github.com/vmc-7645/claude-fleet
1•vmc_7645•11m ago•1 comments

Laptop touchpad stopped registering clicks? try this

2•LandOfMightDev•12m ago•0 comments

Deep dive: Quad storage for optimal throughput and latency

https://blog.canoozie.net/four-integers-and-a-lot-of-wrong-assumptions/
1•jtregunna•13m ago•1 comments

OpenAI Launches Hardware for Codex

https://www.theverge.com/ai-artificial-intelligence/965901/openai-hardware-codex-micro-launch
1•thunderbong•14m ago•0 comments

Consultant Bench

https://innolitics.com/articles/consultant-benchmark/
1•innolitics•16m ago•1 comments

The lost joy of music piracy

https://www.pigeonsandplanes.com/read/music-piracy-what-cd-oink-nine-inch-nails-streaming
3•mcgin•23m ago•0 comments

How TypeScript devs can avoid getting pwned by malicious packages

https://builtbystef.com/blog/supply-chain-security/
1•builtbystef•26m ago•0 comments

Reynard: A real Firefox web browser for iOS 13 or later

https://github.com/minh-ton/reynard-browser
1•AbuAssar•34m ago•0 comments

Stop saying that AI is just a tool and it only matters how it is used

https://www.frank.computer/blog/2025/05/just-a-tool.html
5•cratermoon•39m ago•4 comments

Business Finance Tips for Small Business Owners in the UAE and India

https://adilrashidlone.substack.com/p/business-finance-tips-for-small-business
2•digitaldaddyme•39m ago•0 comments

Panix – the oldest commercial Internet provider in New York

https://panix.com/
1•uproarchat•40m ago•0 comments

Show HN: Complete the survey and get personal free AI toothpaste recommendation

https://tpmme.me
1•notlibrary•42m ago•0 comments

Which founders created the most wealth for others?

https://wealth-creators-omega.vercel.app
2•probe•43m ago•0 comments

Don't Pee on My Leg and Call It Science

https://stager.tv/?p=4381
1•the-mitr•44m ago•0 comments

Show HN: AI Starter Templates in NextJS and OpenAI

https://suhasbhairav.com/ai-templates
1•bsuhas•46m ago•1 comments

WSJ: The AI Backlash Has Tech Executives Fearing for Their Lives

https://www.wsj.com/us-news/the-ai-backlash-has-tech-executives-fearing-for-their-lives-30c43972
10•testfoobar•52m ago•4 comments

AI Is Not a Tool

https://theconvivialsociety.substack.com/p/your-ai-is-not-a-tool
6•crowdhailer•53m ago•2 comments

How to make AI safe and free of America and China

https://www.economist.com/leaders/2026/07/15/how-to-make-ai-safe-and-free-of-america-and-china
3•andsoitis•1h ago•0 comments

Beware Change-Blocking Priors

https://www.overcomingbias.com/p/beware-change-blocking-priors
3•paulpauper•1h ago•0 comments

There is no AI in Team

https://arnoldkling.substack.com/p/there-is-no-ai-in-team
3•paulpauper•1h ago•0 comments

Show HN: A Lightweight, open-source always-on-top local AI desktop companion

https://github.com/Rupak182/heychat/releases/tag/v0.1.0
2•Rupak182•1h ago•0 comments

An Interactive Map of AI

https://artifipedia.com/map
16•ceprompts•1h ago•8 comments

Crystal ML Library: Autograd, Tensors, Neural Networks, Optimizers

https://github.com/skuznetsov/cogni-ml
3•zX41ZdbW•1h ago•0 comments

My Throw Decides My Aim

https://thegustafson.com/blog/my-throw-decides-my-aim
10•usernotfoundrn•1h ago•1 comments