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

Explain this to me like im 5 years old

https://laymans.vercel.app
1•wwolfson97•2m ago•0 comments

Client-side developer security tools that run with zero telemetry

https://envforge.aventinelabs.com
1•markbgilbert•3m ago•0 comments

Orionx Shutdown Raises Fresh Questions on Trust, Custody and Crypto Risk

https://predx-article.fika.bar/orionx-shutdown-raises-fresh-questions-about-trust-custody-01M1ZAE...
1•joeymabia1•11m ago•0 comments

Codex silently begs agents to make arbitrary web requests

https://spader.zone/wtf/
2•dboon•12m ago•0 comments

Cerebras's Laser Focus on Latency and Throughput

https://www.whatrunsai.com/research/cerebras
1•hmichaelson24•13m ago•1 comments

Wrangling blockchain RPC nodes, for dummies: Introducing Lasso

https://lasso.sh/
1•jaxernst•13m ago•1 comments

I Resigned from Anthropic Today

https://xcancel.com/hilbertspaess/status/2097476196791709843#m
10•yurivish•13m ago•0 comments

Source code for small iOS app to show real-time charge rate, thermals, etc.

https://github.com/gregsramblings/ios-charging-monitor
1•gw5815•14m ago•1 comments

Bessent Dares Traders to Bet Against Yen: 'I Am the House Now'

https://www.bloomberg.com/news/articles/2026-09-08/bessent-dares-traders-to-bet-against-yen-i-am-...
1•petethomas•17m ago•0 comments

Ask HN: Would you hire a new engineer, or get 300k worth of tokens for the team?

2•websap•18m ago•0 comments

A Harvard PhD Is Designing Schizophrenia Drugs in His Garage with ChatGPT and A

1•wslh•18m ago•0 comments

Show HN: Browser-based Nginx config generator with live preview

https://tools.techtransit.org/nginx-generator
2•techgpt•31m ago•0 comments

MCP for Official Wildfire Incidents

https://docs.deepfire.co/ai/connect-to-ai
2•louiscb•34m ago•0 comments

The universal language of space is Star Trek? Mais oui

https://arstechnica.com/space/2026/09/astronaut-on-iss-celebrates-60-years-of-star-trek-with-prop...
2•rbanffy•34m ago•0 comments

The Growing Push to Ban Superintelligent AI

https://time.com/article/2026/09/08/ban-superintelligence-ai-uk-us-lawmakers/
3•lf88•35m ago•2 comments

What I learned gathering nootropic ratings

https://web.archive.org/web/20260313002349/https://troof.blog/posts/nootropics/#most-famous-nootr...
1•bilsbie•35m ago•0 comments

Where Understanding Stops Scaling

https://medium.com/@gurvinder372/article-12-where-understanding-stops-scaling-59cf85b17875
1•gps372•39m ago•0 comments

ChatGPT Voice has been brutally nerfed

https://www.reddit.com/r/ChatGPT/s/J2nPKbPeQq
1•wslh•41m ago•0 comments

Bullshit arguments about AI (not) replacing jobs (2023)

https://imadrahmoune.com/bullshit-ai-argument/
2•imadr•43m ago•1 comments

Show HN: VolAnti – Open-source acoustic detector for fibre-optic FPV drones

https://github.com/agamrossen/VolAnti
3•agamrossen•45m ago•0 comments

The paradox at the heart of AI and science [video]

https://www.youtube.com/watch?v=svl_1upFpQo
1•jonbaer•46m ago•0 comments

iTerm2 v3.7.0 new iOS companion app, it2* utilities, Session Status API and more

https://iterm2.com/downloads.html
2•guessmyname•46m ago•0 comments

AI Has Solved One of Math's $1M Millennium Prize Problems

https://www.quantamagazine.org/ai-has-solved-one-of-maths-1-million-millennium-prize-problems-202...
2•sbulaev•47m ago•0 comments

Service Connectivity Issues in Canberra – Cloudflare Status

https://www.cloudflarestatus.com/incidents/htwds1qczkzd
2•kyisaiah47•52m ago•0 comments

Y-Chromosomal Adam

https://en.wikipedia.org/wiki/Y-chromosomal_Adam
1•mtdewcmu•53m ago•0 comments

Sloc Cloc and Code – Did I Just Get Buster Scrugged?

https://boyter.org/posts/did-i-just-get-buster-scrugged/
1•boyter•54m ago•0 comments

Do Durable Market Power Characteristics Predict Future Fundamentals and Returns? [pdf]

https://mplymoat.com/research/durable-market-power-stock-returns/paper.pdf
1•Heshamus•54m ago•0 comments

Chrome 153 ships camera and microphone HTML elements

https://webiterate.dev/capability-elements-camera-126/
2•twapi•58m ago•0 comments

Show HN: AI Stack Selector Tool

https://augmentorlabs.com/manifest
1•rohit0x04•1h ago•0 comments

Gradient.dog

https://gradient.dog
1•jobsstevesux•1h ago•0 comments