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

Not a Task Manager

https://columns.app/
1•inloopwetrust•27s ago•1 comments

Why eval startups fail (2025)

https://thomasliao.com/eval-startups
1•jxmorris12•1m ago•0 comments

The PostgreSQL C Dialect

https://wiki.postgresql.org/wiki/The_PostgreSQL_C_Dialect
1•plaur782•4m ago•0 comments

Trump signs executive orders to drive development of quantum computer by 2028

https://finance.yahoo.com/markets/article/trump-signs-executive-orders-to-drive-development-of-co...
1•wslh•5m ago•0 comments

Server Survival

https://github.com/pshenok/server-survival
1•skogstokig•11m ago•0 comments

Ask HN: How do you make AI writing usable?

1•david_shi•11m ago•0 comments

People around the world see a winner on AI – and it's not the US

https://www.politico.com/news/2026/06/15/people-around-the-world-see-a-winner-on-ai-and-its-not-t...
1•yogthos•11m ago•1 comments

The Value of Standards-Compliant Authentication

https://fusionauth.io/articles/oauth/value-standards-compliant-authentication
1•mooreds•14m ago•0 comments

ContextMaestro – Curated Engineering Feed

https://www.contextmaestro.com/
1•jazzboss•18m ago•0 comments

Knowledge Catalog – universal context engine for agents

https://github.com/GoogleCloudPlatform/knowledge-catalog
1•modinfo•20m ago•0 comments

Google Investing in 'Backrooms' Studio A24 in AI research partnership

https://www.wsj.com/tech/ai/google-investing-in-backrooms-studio-a24-e7585ebe
1•jaredwiener•23m ago•0 comments

Citroën Ami Is an Ultra Affordable EV (2020)

https://insideevs.com/news/401218/citroen-ami-deliveries-june/
1•rawgabbit•26m ago•0 comments

AI's PR Problem

https://blog.dshr.org/2026/05/ais-pr-problem.html
4•linsomniac•28m ago•0 comments

Frozen Reformer

https://arunc.dev/essays/frozen-reformer/
1•arunc•28m ago•0 comments

Ask HN: How do you make the LLM generate good code?

1•bjourne•30m ago•0 comments

Why AI Is a Bubble

https://federicozebele.substack.com/p/this-is-why-ai-is-a-bubble-and-what
4•stanislavb•31m ago•1 comments

Europe must choose between AI and climate goals, data center lobby says

https://www.politico.eu/article/europe-choose-ai-climate-goals-data-center-chief-warns/
4•cdrnsf•32m ago•1 comments

AI Is Not a Tool

https://theconvivialsociety.substack.com/p/your-ai-is-not-a-tool
3•longdefeat•33m ago•0 comments

Robots will replace 700k delivery workers 'sooner or later' warns JD.com boss

https://www.ft.com/content/465635e2-633b-4311-afe5-9b3bff8c9240
3•momentmaker•35m ago•1 comments

The AI shift in cyber risk: why leaders must act now

https://www.cyber.gov.au/about-us/view-all-content/news/five-eyes-cyber-security-agencies-statement
2•Khaine•35m ago•0 comments

Kya is hiring an AI/ML Engineer

https://www.kyahq.com/careers/software-engineer-ai-ml
1•Johnall_n•36m ago•1 comments

Bipartite Matching Is in NC

https://scottaaronson.blog/?p=9851
2•amichail•38m ago•0 comments

Q.js: modern front-end framework for 2026. No build scripts unlike React et al.

https://www.npmjs.com/package/@qbix/q.js
1•EGreg•39m ago•1 comments

Hyperbolic Discounting

https://en.wikipedia.org/wiki/Hyperbolic_discounting
2•rzk•39m ago•0 comments

Report: Kennedy Space Center not ready for era of super heavy rockets

https://arstechnica.com/space/2026/06/report-kennedy-space-center-not-ready-for-era-of-super-heav...
1•voxadam•41m ago•0 comments

Show HN: FastAPI Cloud is in public beta, deploy apps with FastAPI deploy

https://fastapicloud.com/
1•tiangolo•41m ago•1 comments

Payoff Progress of an Amortizated Loan

https://push.cx/payoff-progress
1•pavel_lishin•44m ago•0 comments

Daybreak

https://openai.com/daybreak/
1•Recursing•46m ago•0 comments

Mod Logs: Save every change, thank yourself later

https://unstack.io/mod-logs-save-every-change-thank-yourself-later
2•ScottWRobinson•46m ago•0 comments

Knowledge Agents: Beat Frontier Models with Better Structure

https://weightythoughts.com/p/knowledge-agents-beat-frontier-models
1•lklinger•46m ago•0 comments