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

Counterstrike 1969 TV Series

https://archive.org/details/counterstrike-1969-tv-series
2•petethomas•3m ago•0 comments

Trump orders aircraft carrier redesign to use steam catapults to launch jets

https://www.theguardian.com/us-news/2026/aug/13/trump-aircraft-carriers-steam-catapults
2•decimalenough•3m ago•0 comments

Users of psychedelics narratively turn bad trips into valuable experiences

https://www.sciencedirect.com/science/article/pii/S0955395920303352#bib0056
1•MrJagil•6m ago•0 comments

The Making of Cursor's Icons

https://www.minoradventures.co/blog/the-making-of-cursors-icons
1•duck•7m ago•0 comments

Definium says LSD-based pill reduces anxiety in late-stage study

https://www.reuters.com/business/healthcare-pharmaceuticals/definium-says-lsd-based-pill-reduces-...
1•oliverulerich•8m ago•0 comments

Cicada.os, Graphene.os for Your Laptop

https://kpres12.github.io/Cicada.OS/
1•kpres62•13m ago•1 comments

How Claude's watermarking (probably) works

https://johnjwang.com/post/2026/08/12/how-claude-watermarking-probably-works/
1•882542F3884314B•17m ago•0 comments

Infodump about Monkey Island

https://pants.fishing
1•dmarinus•18m ago•0 comments

User reports show problems with LinkedIn

https://downdetector.com.au/status/linkedin/
1•hahahaa•19m ago•0 comments

Border blaster

https://en.wikipedia.org/wiki/Border_blaster
4•petethomas•28m ago•0 comments

Programing language faster than Python for ML (Jaithon 3.1)

https://github.com/abhiramasonny/jaithon
1•AbhiramaVS•28m ago•2 comments

Elon Musk is suing California over an AI law. Here's why transparency matters

https://www.sfchronicle.com/opinion/openforum/article/ai-data-law-california-22382698.php
1•newsomix9xl•30m ago•0 comments

Portable Doom (Shareware) in a Single 6MB HTML File via WASM

https://wasi-doom.netlify.app/
1•badfox•30m ago•1 comments

Show HN: A 3-page information-theoretic lower bound on random TSP

https://zenodo.org/records/21911759
1•Dori_Lee•30m ago•0 comments

Show HN: Liferay Stylebook token generator CLI (NPM)

https://www.npmjs.com/package/stylebook-token-generator
1•jay__proto•33m ago•0 comments

The Future of Libraries in BPF

https://lwn.net/Articles/1084869/
1•pykello•34m ago•0 comments

Aluminum Frame PC Fan Corsi-Rosenthal Build (2023)

https://itsairborne.com/aluminum-frame-pc-fan-corsi-rosenthal-build-c28aa7ca8927
1•walterbell•38m ago•0 comments

Anthropic Is not worth much at all

https://s-1.vercel.app/posts/why-openrouter-can-be-the-next-great/
1•Taikhoom10•39m ago•5 comments

Executable SOAR playbook dataset – AI agents pay per record via HTTP 402

https://lateos.ai/soar/
1•leochong•42m ago•0 comments

The Infinite Policeman – A Crookery

https://medium.com/luminasticity/the-infinite-policeman-chapter-3-d3e8e30a6969
1•bryanrasmussen•44m ago•0 comments

Show HN: Curl Stock Research

https://stockchat.sh/cli
1•netless•45m ago•0 comments

Flock puts new 'guardrails' on license-plate cameras. Critics skeptical

https://www.sfchronicle.com/crime/article/flock-cameras-ceo-surveillance-policy-22384139.php
4•newsomix9xl•48m ago•1 comments

Openleaf: Overleaf's workflow. Obsidian's interface. None of the cloud

https://github.com/vicky157/openleaf
1•vikashjohn2505•49m ago•0 comments

The Jobless Boom Has Arrived

https://www.wsj.com/economy/jobs/the-jobless-boom-has-arrived-41361a06
5•petethomas•52m ago•0 comments

Daily driving PostmarketOS (Summer 2026)

https://blog.senderolinux.com/daily-driving-postmarketos-summer-2026/
2•WhyNotHugo•52m ago•1 comments

Air Purifiers as White Noise Machines

https://www.jefftk.com/p/air-purifiers-as-white-noise-machines
1•luu•52m ago•2 comments

End-to-end encrypted .env sharing

https://github.com/p-arndt/shenv
1•kermatt•53m ago•0 comments

How AI engines cite brands?

https://www.leapd.ai/blog/ai-visibility/how-chatgpt-google-ai-overviews-and-perplexity-source-inf...
2•Angelbirth1369•56m ago•1 comments

Ask HN: How are you preventing brainrot?

4•flyingcoder•56m ago•4 comments

Ask HN: What is something produced by GenAI that you use regularly?

1•razorbeamz•58m ago•0 comments