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

Mental Models for LLMs

https://felx.me/posts/mental-models-for-llms/
1•manx•5s ago•0 comments

Design Drought

https://lmnt.me/blog/design-drought.html
1•robenkleene•47s ago•0 comments

Largest known Roman mosaic, beneath Baths of Trajan, opens to the public

https://www.theartnewspaper.com/2026/09/14/largest-roman-mosaic-opens-to-the-public
1•bookofjoe•1m ago•0 comments

How to Write an Effective Software Design Document

https://refactoringenglish.com/excerpts/write-an-effective-design-doc/
1•fagnerbrack•1m ago•0 comments

US Energy Data

https://usenergydata.org/
1•ZeroGravitas•1m ago•0 comments

We gave a coding agent the lethal trifecta: data, internet, a public repo

https://archestra.ai/blog/fixing-small-bugs-from-a-slack-thread
2•joeyorlando•2m ago•1 comments

Show HN: I built Otis, a minimal AI agent that runs local models out of the box

https://triangllabs.ai/otis
1•petrenk0n•3m ago•0 comments

Emulating Oxide: How Faux Can You Go?

https://oxide-and-friends.transistor.fm/episodes/emulating-oxide-how-faux-can-you-go
1•tosh•5m ago•0 comments

Fake GitHub Repositories Spreading Malware via PowerShell

https://jdstaerk.substack.com/p/greetings-from-the-rabbids-team
1•DDerTyp•5m ago•0 comments

RISC-V emulator in pure Nix

https://github.com/eisbaw/nix-riscv
1•eisbaw•6m ago•0 comments

Show HN: Training a sudoku solver from scratch on Jetson Nano

https://github.com/romainzimmer/discrete-reasoning
1•romz•7m ago•0 comments

Portfolio in Pokedex(First Post)

1•shivammahajanma•14m ago•0 comments

React instructors – where do your students get stuck every term?

https://blog.crossui.com/2026/09/every-react-instructor-has-drawn-this-box-diagram
1•linb•15m ago•0 comments

Oracle tries to appease Stargate data center opponents with renewables push

https://arstechnica.com/gadgets/2026/09/oracle-promises-2-gw-of-renewables-to-match-stargate-data...
1•rbanffy•16m ago•0 comments

Why good collaboration can lead us in the wrong direction

https://www.thesignalist.io/s/the-convergence-trap/
2•kodesko•16m ago•0 comments

Temporal Raises $550M at a $12.55B Valuation

https://temporal.io/news/temporal-raises-550m-at-a-12-55b-valuation
1•arusahni•17m ago•0 comments

The Most Advanced Storage System [video]

https://www.youtube.com/watch?v=QstEkNJhJKo
1•ddechamb•17m ago•1 comments

Zizka AI Called This Already. Now Dario, Musk, and Altman Agree

https://medium.com/@MirArshadTalpur/zizka-ai-called-this-already-now-dario-musk-and-altman-agree-...
1•Arshad-Talpur•20m ago•2 comments

What a time to be alive – rouge AI agents attack RubyGems.org

https://tenderlovemaking.com/2026/09/11/what-a-time-to-be-alive/
11•gregnavis•21m ago•3 comments

Show HN: I built an infinite canvas for game masters

https://overseer.studio
1•nullfish•21m ago•0 comments

Hospitals: The Queue Is Not Always Where the Problem Is

https://gadallon.substack.com/p/hospitals-the-queue-is-not-always
1•JumpCrisscross•21m ago•0 comments

Texas judge rules TikTok misled users on child safety feature

https://www.reuters.com/legal/litigation/texas-judge-rules-tiktok-misled-users-child-safety-featu...
3•1vuio0pswjnm7•24m ago•0 comments

A letter to the AI labs shouldering the great burden of humanity's survival

https://blog.j11y.io/2026-09-14_a-letter-to-the-ai-labs/
2•ilreb•25m ago•0 comments

Codito.io increases the beta version limits from 50k/250k to 1M/10M codes

https://codito.io/blog/post/increasing-beta-version-limits
1•tomge•26m ago•0 comments

SDR–; open source SDR with a patchable signal graph, Rust DSP, web UI

https://github.com/Newspicel/sdrminusminus
2•newspicel•26m ago•0 comments

When Both Mirror Drives Fail the Same Way

https://marcpaul.io/logs/when-both-mirror-drives-fail-the-same-way/
3•marcbpaul•26m ago•2 comments

Americans spend more than 2.5 hours in the ER

https://www.axios.com/2026/08/25/americans-er-wait-times-data
1•JumpCrisscross•29m ago•0 comments

Show HN: I'm Serving Esp32s31.fun

12•abu-matterize•32m ago•10 comments

The Physics of Database Speed: from 300 to 1M transactions per second [video]

https://www.youtube.com/watch?v=vOEL_pHFYK0
1•tanaykarnik•33m ago•0 comments

Alexa+ the Next Generation of Alexa

https://www.aboutamazon.com/news/devices/new-alexa-generative-artificial-intelligence
1•piqufoh•34m ago•0 comments