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•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

Managing metadata is essential in LLM world

https://www.itbrew.com/stories/managing-metadata-is-essential-in-llm-world
1•mooreds•1m ago•0 comments

Are coding interview still relevant?

1•manidharv•1m ago•0 comments

Visual Studio Code for Education roadmap update

https://vscodeedu.com/whats-new/2645
1•acbart•2m ago•1 comments

Alignment pretraining: AI discourse creates self-fulfilling (mis)alignment

https://arxiv.org/abs/2601.10160
2•anigbrowl•4m ago•0 comments

Keeping the Cultural Uplands Alive

https://jaymollica.com/blog/keeping-the-cultural-uplands-alive/
1•thebigship•4m ago•0 comments

How to Start an AI Business as a Teenager in 2026 [video]

https://www.youtube.com/watch?v=X_lxuGsFu4M
1•botang1•4m ago•0 comments

Secret History of Silicon Valley [video]

https://www.youtube.com/watch?v=ZTC_RxWN_xo
2•gmays•5m ago•0 comments

The Jacobian, the Damping Term, and the Geometry of Reach

https://atomsfrontier.substack.com/p/the-jacobian-the-damping-term-and
2•jpatel3•7m ago•0 comments

The Melancholy of Slaying Monsters

https://thereader.mitpress.mit.edu/the-strange-melancholy-of-slaying-monsters/
1•foliveira•8m ago•0 comments

Show HN: Onionfutures.com: transferable contracts for future delivery of onions

https://onionfutures.com/
2•a11ce•8m ago•0 comments

Show HN: Tracecast – open-source generative data apps built on top of Marimo

https://github.com/tracecast/open_data_apps
1•malachyd•11m ago•0 comments

Running PyTorch Models on Apple Silicon GPUs with the ExecuTorch MLX Delegate

https://pytorch.org/blog/running-pytorch-models-on-apple-silicon-gpus-with-the-executorch-mlx-del...
1•0bytematt•13m ago•0 comments

Petition Against Meta's Model Capability Initiative

https://mcipetition.com/
1•zeroonetwothree•14m ago•0 comments

Who will buy your services if you fire us all?

https://carette.xyz/posts/who_will_buy_your_services/
3•LucidLynx•14m ago•0 comments

US bill proposes new national EV tax, while some push to slash gas tax to zero

https://electrek.co/2026/05/18/us-bill-would-overcharge-evs-to-pay-for-road-damage-they-arent-doing/
2•dogscatstrees•15m ago•0 comments

Return on Intelligence: The Preface to an Eight-Part Series on the AI Bubble

https://rebecca-powell.com/posts/return-on-intelligence-the-preface/
1•simonpure•17m ago•0 comments

The quiet grief of adult friendship

https://timesofindia.indiatimes.com/blogs/civil-irony/the-quiet-grief-of-adult-friendship/
2•jger15•20m ago•0 comments

Three Things about Data

https://www.undermanager.com/three-things-about-data/
1•altacc•23m ago•0 comments

Leaving the Sea of Nodes in the V8 JIT

https://v8.dev/blog/leaving-the-sea-of-nodes
1•obl•26m ago•0 comments

AI separates knowledge from identity, writing separates knowledge from memory

https://www.nvegater.com/blog/ai-separator-hn
1•nvegater•27m ago•0 comments

.at TLD is top on CF Radar

https://radar.cloudflare.com/tlds?dateRange=1d
3•labithiotis•27m ago•0 comments

Peter G. Neumann, Who Warned of Computer Security Risks, Dies at 93

https://www.nytimes.com/2026/05/17/technology/peter-g-neumann-dead.html
2•jgrahamc•31m ago•0 comments

Slop-Mop: Harm Reduction for Addicted Agents

https://scienceisneato.substack.com/p/slop-mop-harm-reduction-for-addicted
2•ji_reilly•35m ago•1 comments

I built an agent to organize 500 GB of family home videos from the 90s

https://www.mux.com/blog/using-mux-robots-to-organize-my-archive-of-90s-era-vhs-home-videos
1•dylanjha•36m ago•0 comments

Show HN: Feature flags on Redis you use – a low cost solution

https://github.com/sgs-97/redis-feature-flags
1•sgs-97•37m ago•3 comments

Holecard – CLI password manager with TOTP support

https://github.com/shabaraba/holecard
1•28304283409234•39m ago•0 comments

Mixxx: FOSS DJ Mixing Software

https://github.com/mixxxdj/mixxx
1•yacin•40m ago•0 comments

Design CLI – Automate design workflows

https://github.com/shuffle-dev/cli
1•dym3k•45m ago•1 comments

NX VS Code extension compromised again

https://github.com/nrwl/nx-console/issues/3139
3•varunsharma07•46m ago•0 comments

Actions-cool/issues-helper GitHub Action Compromised

https://github.com/actions-cool/issues-helper/issues/230
2•varunsharma07•47m ago•0 comments