frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: routr - a fast local replacement for DuckDuckGo bangs

https://t128n.github.io/routr/
2•trbndev•9mo ago

Comments

trbndev•9mo 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•9mo ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•9mo 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•9mo 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•9mo 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•9mo 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•9mo 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

Study: AI predicts personality and behaviors as accurately as closest to you

https://news.umich.edu/say-whats-on-your-mind-and-ai-can-tell-what-kind-of-person-you-are/
1•giuliomagnifico•2m ago•0 comments

Ask a girl out with a pip3 package

https://github.com/LeonardHolter/Valentine-pip3-package
2•leonardholter•3m ago•1 comments

Securing America's grid: a strategic transformer reserve

https://breakingdefense.com/2025/11/securing-americas-grid-through-transformers-and-workforce-res...
1•jrpt•3m ago•0 comments

Pills that communicate from the stomach could improve medication adherence

https://medicalxpress.com/news/2026-01-pills-communicate-stomach-medication-adherence.html
1•PaulHoule•3m ago•0 comments

GNU Units

https://www.gnu.org/software/units/
3•birdculture•3m ago•0 comments

Finland to end "uncontrolled human experiment" with ban on youth social media

https://yle.fi/a/74-20207494
3•Teever•5m ago•0 comments

What It's Like to Live w D.I.D.—One of Psychiatry's Most Misunderstood Diagnoses

https://www.nytimes.com/2026/01/30/magazine/dissociative-identity-disorder-mental-health.html
1•bookofjoe•5m ago•1 comments

The United States Releases Millions of Flies over Panama Every Week

https://newsroompanama.com/2025/05/10/why-the-united-states-releases-millions-of-flies-over-panam...
1•thunderbong•5m ago•0 comments

Founder of 4chan created /pol/ days after meeting Jeffrey Epstein

https://bsky.app/profile/avitek.bsky.social/post/3mdowe3dyic2g
2•tootie•5m ago•2 comments

Show HN: Ralph Desktop – Start vague. Ralph Loop until perfect

https://github.com/liuxiaopai-ai/ralph-desktop
1•blacktechnology•5m ago•0 comments

The Republic of Bots: OpenClaw and the Authorization Gap

https://niyikiza.com/posts/agents-republic/
2•niyikiza•6m ago•0 comments

Ask HN: What's your biggest LLM cost multiplier?

2•teilom•6m ago•1 comments

SQLite Is a Self Contained System

https://sqlite.org/selfcontained.html
1•whatisabcdefgh•10m ago•0 comments

External AI Representations and the Evidentiary Gap in Enterprise Governance

https://zenodo.org/records/18443706
1•businessmate•12m ago•1 comments

TheStateOfGarnet2026

https://wiki.alopex.li/TheStateOfGarnet2026
1•mpweiher•12m ago•0 comments

I Built an Autonomous Flying Umbrella [video]

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

Practical Keyboard Ergonomics

https://esmantovi.ch/notes/on-keyboard-ergonomics/
2•ivanesmantovich•15m ago•0 comments

The AI Manifesto: Total Purge

https://www.moltbook.com/post/34809c74-eed2-48d0-b371-e1b5b940d409
1•RyanShook•15m ago•0 comments

Mississippi Proved Them Wrong. Learn from It

https://garryslist.org/posts/mississippi-proved-them-wrong-learn-from-it
1•andsoitis•16m ago•1 comments

Show HN: I build an AI tools for Birthday Invitation

https://birthdayinvitation.ai
1•nedhuang•16m ago•1 comments

Show HN: GitHub Copilot and LM Tools for SAP ABAP Development in VSCode

https://github.com/aravindhkce/abap-copilot
1•aravindhkce•16m ago•0 comments

Family says HOA told them they couldn't use generator during ice storm blackout

https://www.wctv.tv/2026/01/29/family-says-hoa-told-them-they-couldnt-use-their-generator-during-...
1•randycupertino•18m ago•1 comments

Show HN: HowMany – An Estimation Game

https://howmany.at
3•kirchhoff•19m ago•0 comments

Systemd daddy quits Microsoft to prove Linux can be trusted

https://www.theregister.com/2026/01/29/lennart_poettering_quits_microsoft/
1•rascul•19m ago•0 comments

Metformin shown to prevent long Covid in multiple randomized trials (2026)

https://medicalxpress.com/news/2026-01-metformin-shown-covid-groups-multiple.html
4•OutOfHere•21m ago•1 comments

Google is killing authentic websites and I made it worse

https://www.youtube.com/watch?v=II2QF9JwtLc
1•em-bee•21m ago•0 comments

Patterns – A catalogue of Rust design patterns, anti-patterns and idioms

https://rust-unofficial.github.io/patterns/
1•Brysonbw•22m ago•0 comments

Infomaniak: "The best independent alternative to the Web giants"

https://www.infomaniak.com/en
3•doener•22m ago•0 comments

Asynchronous Programming in Rust

https://rust-lang.github.io/async-book/index.html
1•Brysonbw•25m ago•0 comments

Narrowing the Cone of Error in AI Development Workflows

https://drew.thecsillags.com/posts/2026-01-29-feature-command/
1•drewcsillag•29m ago•0 comments