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

Ask HN: Do you used a cloud based dev environment?

1•asdev•50s ago•0 comments

Instagram Chief Says Social Media Is Not 'Clinically Addictive'

https://www.nytimes.com/2026/02/11/technology/adam-mosseri-instagram-addiction-trial.html
1•greenburger•1m ago•0 comments

New AI Sensor 'Sniffs' Out Spectral Targets

https://newscenter.lbl.gov/2026/02/11/new-ai-sensor-sniffs-out-spectral-targets/
1•gnabgib•2m ago•0 comments

We Forked Supabase to Fix Self-Hosted Postgres Experience

https://twitter.com/noctarius2k/status/2020754351396946284
1•panrobo•2m ago•1 comments

The box the AI can't think about

https://www.researchgate.net/publication/400670258_Self-Referential_Quantum_Barriers_for_AGI_Cont...
1•JakubCwi•4m ago•1 comments

Frequent Diet Soda Intake Linked to Fourfold Increased Dementia Risk

https://www.medscape.com/viewarticle/frequent-diet-soda-intake-linked-fourfold-increased-dementia...
3•wjb3•10m ago•1 comments

GPT-5 outperforms federal judges 100% to 52% in legal reasoning experiment

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6155012
2•droidjj•10m ago•0 comments

LLM "reasoning" continues to be deeply flawed

https://garymarcus.substack.com/p/breaking-llm-reasoning-continues
3•petethomas•10m ago•0 comments

Show HN: Undertale Text Box Generator

https://undertaletextboxgenerator.online
1•ethanYIAI•11m ago•0 comments

Rare, dangerous side effects of some Covid-19 vaccines explained

https://www.science.org/content/article/rare-dangerous-side-effects-some-covid-19-vaccines-explained
4•epistasis•13m ago•0 comments

But What to Do About It?

https://andys.blog/what-to-do/
1•andytratt•14m ago•0 comments

One with the Environment

https://andys.blog/environment/
1•andytratt•14m ago•0 comments

7 Days in the NICU

https://www.sonyasupposedly.com/nicu-diary/
1•exolymph•15m ago•0 comments

Claude Code Skill That Shares Noteworthy Moments to Slack

https://quickchat.ai/post/claude-code-skill-watches-coding-sessions-shares-to-slack
1•piotrgrudzien•15m ago•0 comments

Few people inevitably rise to the top

https://andytrattner.com/
1•andytratt•15m ago•0 comments

Memory Layer for AI Agent

https://github.com/obicho/mem
1•obicho•17m ago•1 comments

Algorithmic Liability: How Social Media Platforms Disclaim Responsibility

https://tostracker.app/analysis/algorithmic-liability
1•tldrthelaw•18m ago•0 comments

How The New York Times uses a custom AI tool to track the "manosphere"

https://www.niemanlab.org/2026/02/how-the-new-york-times-uses-a-custom-ai-tool-to-track-the-manos...
3•thetrustworthy•20m ago•0 comments

We built Vortex to fix team activation in PLG products

https://www.vortexsoftware.com/
1•santiaparicio•20m ago•1 comments

Death of Software. Nah

https://hardcoresoftware.learningbyshipping.com/p/238-death-of-software-nah
2•whobre•21m ago•0 comments

Show HN: Ignlnk, Hide the content to agents, not the files

https://github.com/No3371/ignlnk
1•3371•23m ago•0 comments

How the hardware/software interface works (Linux Kernel)

https://offlinemark.com/how-the-hardware-software-interface-works/
2•medbar•26m ago•0 comments

Most Americans don’t pay for news and don’t think they need to

https://www.niemanlab.org/2026/02/most-americans-dont-pay-for-news-and-dont-think-they-need-to/
2•jaredwiener•27m ago•0 comments

Leo thought Guthrie's smart cam was disconnected, Google still had the tape

https://fortune.com/2026/02/11/privacy-concerns-nancy-guthrie-google-nest-camera-footage-kidnapping/
1•c420•29m ago•1 comments

The curious case of binfmt for x86 emulation for ARM Docker

https://gergely.imreh.net/blog/2025/04/the-curious-case-of-binfmt-for-x86-emulation-for-arm-docker/
1•pvtmert•37m ago•0 comments

A "QuitGPT" campaign is urging people to cancel their ChatGPT subscriptions

https://www.technologyreview.com/2026/02/10/1132577/a-quitgpt-campaign-is-urging-people-to-cancel...
2•amai•38m ago•1 comments

With Boran, First AI Agent Protagonist in Next-Generation Video Games

https://store.steampowered.com/app/2451190/Kebabstar/
1•akbr•38m ago•1 comments

Prime Intellect Lab: a full-stack platform for training your own models

https://www.primeintellect.ai/blog/lab
1•anacleto•39m ago•0 comments

Self-contained RTL to GDS flow for simple chip designs

https://github.com/htfab/microlane
2•ua709•39m ago•0 comments

Language a Wood for Thought: Susan Howe's Work

https://www.poetryfoundation.org/articles/1769037/language-a-wood-for-thought
1•apollinaire•40m ago•0 comments