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

People in Many Countries Now View China More Positively Than the U.S.

https://www.pewresearch.org/global/2026/07/15/people-in-many-countries-now-view-china-more-positi...
1•dabinat•34s ago•0 comments

AVAL: A new open-source format for interactive video on the web

https://pixelpoint.io/aval/
1•nopinsight•2m ago•0 comments

75% of PlayStation 3 games are now playable on PC

https://videocardz.com/newz/rpcs3-says-75-of-playstation-3-games-are-now-playable-on-pc
1•LordDefender•2m ago•0 comments

Does Anthropic Buy Legitimacy Through Hiring?

https://artificialrhetoric.substack.com/p/every-anthropic-hire-is-a-legitimacy
1•Ben_Pota•3m ago•0 comments

Language Server Protocol Specification – 3.18

https://microsoft.github.io/language-server-protocol/specifications/lsp/3.18/specification/
1•qbane•3m ago•0 comments

Capture Clauses as Effects (Rust)

https://blog.yoshuawuyts.com/capture-clauses-as-effects/
1•dabinat•3m ago•0 comments

Useful Is Not Sufficient

https://tante.cc/2026/07/15/useful-is-not-sufficient/
2•rapnie•5m ago•0 comments

Optimizing a Ring Buffer for Throughput

https://rigtorp.se/ringbuffer/
2•mattrighetti•7m ago•0 comments

Save Standard Time

https://savestandardtime.com/
2•throw0101d•7m ago•0 comments

Maybe we could tone down the JavaScript (2016)

https://eev.ee/blog/2016/03/06/maybe-we-could-tone-down-the-javascript/
1•downbad_•8m ago•0 comments

Do YC companies get preference on the homepage?

1•e_i_pi_2•8m ago•0 comments

American AI is expensive. Some startups are turning to cheap Chinese models

https://www.npr.org/2026/07/15/nx-s1-5886476/startups-cheap-chinese-ai-models
2•makerdiety•8m ago•0 comments

US Debt Clock Live

https://www.us-debt-clock.com/
2•ourmandave•9m ago•0 comments

When agents talk: tool calls, handoffs, and two wallets

https://www.kulikowski.me/blog/agents-talking-to-each-other
1•kinlan•9m ago•0 comments

Funny item co-occurrences in 3.2M Instacart orders

https://rogerdickey.com/funny-item-co-occurrences-in-3-million-instacart-orders/
1•rogerdickey•12m ago•0 comments

Show HN: Pullrun – Run OCI Images as Containers or Firecracker MicroVMs

https://github.com/pullrun/pullrun
2•liquid64•13m ago•0 comments

Eight Writers on Facing the Blank Page

https://www.youtube.com/watch?v=TDH7yAWsyG0
1•brudgers•13m ago•0 comments

Show HN: 3,225 trials of LLMs guessing author age – confident and wrong

https://github.com/BraveAnn011/llm-author-misattribution
1•BrianneLee011•15m ago•0 comments

Show HN: Stillwind – PCB part selection as constraint solving

https://stillwind.ai
4•hannesfur•16m ago•2 comments

Show HN: Summa, a tool that annotates over whatever you're reading

https://summa.josephruocco.net
2•jruocco•16m ago•1 comments

Vacuum of the Imagination: Why Space Rockets Could Have Flown Centuries Earlier

https://angadh.com/rockets-1
1•angadh•17m ago•0 comments

Show HN: Painterly – Turn pictures into digital paintings without generative AI

https://github.com/jbunke/painterly
2•flinkerflitzer•17m ago•0 comments

The Download: a useful quantum machine and a record-breaking subsea tunnel

https://www.technologyreview.com/2026/07/15/1140498/the-download-useful-quantum-computer-subsea-t...
1•joozio•18m ago•0 comments

Reverse Engineering Crazy Taxi, Part 3

https://wretched.computer/post/crazytaxi3
2•marklit•20m ago•0 comments

I Switched from Hugo to Astro

https://hmmr.online/posts/why-astro-not-hugo/
1•ZanderHammer•21m ago•0 comments

Rustwright: Playwright rewritten in Rust that uses 70% less memory

https://github.com/Skyvern-AI/rustwright
1•suchintan•21m ago•0 comments

Show HN: Zappio – a native iOS player for M3U/Xtream playlists

https://zappio.maritsol.at
1•zappio_iptv•23m ago•0 comments

RL post-training on 14 Macs across 4 countries

https://pluralis.ai/blog/rl-post-training-on-macs/
2•erfan_mhi•26m ago•0 comments

Nearly 200 Economists and Tech Leaders Warn of A.I. Threats

https://www.nytimes.com/2026/07/13/business/economists-ai-threat-jobs.html
2•Vaslo•26m ago•1 comments

The digital euro could be a major boost for European integration

https://blogs.lse.ac.uk/europpblog/2026/07/15/digital-euro-boost-european-integration/
1•jruohonen•29m ago•1 comments