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•11mo ago

Comments

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

The McDonald's CEO Blamed His Tiny Bite Fiasco on His Mother

https://sporked.com/article/mcdonalds-ceo-blames-small-bite-mother/
1•randycupertino•1m ago•1 comments

How uv Solves Dependencies So Fast

https://pydevtools.com/blog/how-uv-solves-dependencies-so-fast/
1•tanelpoder•1m ago•0 comments

Responsive images in Hugo using Render Hooks

https://mijndertstuij.nl/posts/hugo-responsive-images-using-render-hooks/
1•mijndert•2m ago•0 comments

Who Contributed to DataFusion 53

https://theconsensus.dev/p/2026/04/03/who-contributed-to-datafusion-53.html
1•eatonphil•3m ago•0 comments

Show HN: Our Next Decade – A curated forecast of the next ten years

https://ournextdecade.com/
1•sp3000•4m ago•1 comments

Mpump: A browser groovebox you can share as a link

https://mpump.live/app.html
1•gidam•5m ago•1 comments

Logic of Self vs. Logic of Role (and Why Confusing the Two Is a Trap)

https://www.leadingsapiens.com/logic-of-self-vs-logic-of-role/
1•sherilm•5m ago•0 comments

Show HN: 81% on LongMemEval with Pgvector and BM25 – Memory for Claude Code

https://github.com/m4cd4r4/claude-echoes
1•m4cd4r4•6m ago•0 comments

Show HN: TinyCard – The TinyLetter of Greeting Cards

https://tinycard.app/
1•szemy2•6m ago•1 comments

Show HN: BillSpike – Root cause analysis for cloud cost spikes

1•Bangaroojack•7m ago•1 comments

Book Review: Capitalist Realism

https://www.stephendiehl.com/posts/capitalist_realism/
1•ibobev•7m ago•0 comments

Show HN: Forze – A platoform that turns a startup idea into a product in mins

1•Arham-Begani•7m ago•0 comments

Book Review: The Crisis of Democratic Capitalism

https://www.stephendiehl.com/posts/crisis_democratic_capitalism/
1•ibobev•7m ago•0 comments

AI Assistance Reduces Persistence

https://ai-project-website.github.io/AI-assistance-reduces-persistence/
1•sebg•7m ago•0 comments

Book Review: Tomorrow, and Tomorrow, and Tomorrow

https://www.stephendiehl.com/posts/tomorrow_tomorrow_tomorrow/
1•ibobev•7m ago•0 comments

Clean code in the age of coding agents

https://www.yanist.com/clean-code-in-the-age-of-coding-agents/
2•yanis_t•8m ago•0 comments

A wave of low-cost electric trucks is heading for Australia

https://www.abc.net.au/news/science/2026-04-09/record-sales-of-electric-trucks-price-parity/10652...
2•rustoo•8m ago•0 comments

Artemis II's return to Earth will test Orion's biggest flaw: the heat shield

https://www.cnn.com/2026/01/23/science/artemis-2-orion-capsule-heat-shield
1•rawgabbit•9m ago•0 comments

The Japanese Fifth Generation Project

https://en.wikipedia.org/wiki/Fifth_Generation_Computer_Systems
2•jurjo•10m ago•0 comments

Show HN: Zoneless – Open-source Stripe Connect clone with $0.002 fees using USDC

https://github.com/zonelessdev/zoneless
1•tinyprojects•10m ago•0 comments

Show HN: Guruka.com – free guided mediations. No signup, private, works offline

https://guruka.com/
1•eummm•10m ago•0 comments

Show HN: Browsable index of every lecture and talk from the CMU Database Group

https://github.com/tamnd/cmu-database-group-videos-index
1•tamnd•10m ago•0 comments

Vibe coding is akin to gaming. So why is there no social layer?

https://metedata.substack.com/p/metedata-digest-005-vibe-coding-wants
1•young_mete•13m ago•0 comments

With Claude Managed Agents, Anthropic wants to run your AI agents for you

https://thenewstack.io/with-claude-managed-agents-anthropic-wants-to-run-your-ai-agents-for-you/
1•Brajeshwar•14m ago•0 comments

Harshita Arora Joins YC as General Partner

https://www.ycombinator.com/blog/welcome-harshita
1•wslh•15m ago•0 comments

Plasma Toroid Generator – Make

https://makezine.com/projects/plasma-toroid-generator/
1•evo_9•15m ago•0 comments

Amazon to stock Lilly's new weight-loss pill at kiosks, offer same-day delivery

https://www.reuters.com/business/healthcare-pharmaceuticals/amazon-stock-lillys-new-weight-loss-p...
1•randycupertino•16m ago•1 comments

Ask HN: Actions to take after session hijack?

2•ramon156•16m ago•0 comments

Show HN: HushScribe – Self-contained local meeting transcription for macOS

https://github.com/drcursor/HushScribe
2•drcursor•19m ago•0 comments

OpenAI pulls out of landmark £31B UK investment package

https://www.theguardian.com/technology/2026/apr/09/openai-pulls-out-of-landmark-31bn-uk-investment
2•mellosouls•19m ago•0 comments