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

Keycard – inject API keys into subprocesses, never touch shell env

https://www.keycard.studio/
1•jijane•2m ago•1 comments

Why facial scars are smaller than back scars

https://www.nature.com/articles/d41586-026-01044-3
1•bookofjoe•2m ago•0 comments

Show HN: Object Storage Comparisons

https://storage.mixpeek.com
1•Beefin•3m ago•0 comments

Pi Hard

https://www.youtube.com/watch?v=CNbmoVdirxw
1•Fr0styMatt88•6m ago•0 comments

The AI Debacle

https://justintallant.com/the-ai-debacle
1•jtallant•13m ago•0 comments

Free open source AI Editor

https://github.com/MeepCastana/KubeezCut
1•Meeeeeep•14m ago•0 comments

A Better Ludum Dare; Or, How to Ruin a Legacy

https://ldjam.com/events/ludum-dare/59/$425291/$425292
2•raincole•14m ago•0 comments

Leaking AWS Keys from a Trading Competition Sandbox via stdout

https://github.com/JakOb-dotcom/cloud-sandbox-security-analysis/
1•JakOb-dotcom•15m ago•0 comments

Show HN: Flint – A 30B model fine-tuned for less repetition

https://springboards.ai/models/flint-alpha
1•thmsmxwll•15m ago•0 comments

China's Parallel Web Behind the Wall

https://vale.rocks/posts/chinas-web
1•cainxinth•18m ago•0 comments

Someone Had a Good Idea

https://hecanjog.com/blog/2026/4/15/
1•hecanjog•19m ago•0 comments

Pico.css v2.2.0-beta released [community fork]

https://github.com/anyblades/pico
1•anydigital•20m ago•1 comments

Query LLMs like a graph database [video]

https://www.youtube.com/watch?v=8Ppw8254nLI
1•glimps•28m ago•1 comments

Show HN: Gave Claude a casino bankroll – it gambles till it's too broke to think

https://letaigamble.com/
3•mackbrowne•29m ago•1 comments

EU AI Act: curated tools, official sources, templates, and OSS

https://github.com/GenAI-Gurus/awesome-eu-ai-act
1•carloshvp•34m ago•0 comments

Miami-Dade is losing residents

https://www.miamiherald.com/opinion/editorials/article315344371.html?taid=69dd96484cd2160001d62a5...
1•paulpauper•34m ago•0 comments

Another Erdos Problem Solved

https://www.erdosproblems.com/forum/thread/1196
1•paulpauper•35m ago•0 comments

ChatGPT's latest stylistic quirk is sinister, infuriating – and everywhere

https://www.theguardian.com/commentisfree/2026/apr/15/chatgpt-stylistic-quirk-its-not-x-its-y
4•Anthony-G•35m ago•0 comments

Google geofence data used to identify murder suspect unconstitutional

https://www.startribune.com/minnesota-supreme-court-rules-google-geofence-data-used-to-identify-m...
1•bradleyankrom•36m ago•0 comments

South Korea plans to use the Iran crisis to spur a renewables revolution

https://www.theguardian.com/world/2026/apr/16/south-korea-solar-power-renewables-revolution
7•billybuckwheat•40m ago•0 comments

NASA needs nuclear power for its moon base. Heres the White House plan to get it

https://www.yahoo.com/news/articles/nasa-needs-nuclear-power-moon-153000627.html
2•labelbabyjunior•44m ago•0 comments

Project Theseus: Removing BuildKit

https://dagger.io/changelog/
1•gpi•44m ago•0 comments

Show HN: A simpler coding agent harness

1•pyrolistical•45m ago•0 comments

Python Is Dead

https://calebfenton.substack.com/p/python-is-dead
4•nlehuen•46m ago•1 comments

Amazon AI Cancelling Webcomics

http://www.kleefeldoncomics.com/2026/04/amazon-ai-cancelling-webcomics.html
2•vmbrasseur•47m ago•0 comments

TX Tesla driver narrowly avoids disaster when autopilot engages at RR crossing

https://www.fox4news.com/news/texas-tesla-autopilot-drives-through-railroad-crossing
6•1vuio0pswjnm7•49m ago•0 comments

The Great AI Layoff Boomerang. 55% of companies regret their AI-drven layoffs

https://medium.com/@curiouser.ai/the-great-ai-layoff-boomerang-68e38c88fa7d
3•aussieguy1234•49m ago•3 comments

The Infinity Man

https://thechipletter.substack.com/p/the-infinity-man
1•gmays•49m ago•0 comments

Robot club vs. 5 crazy holes [video]

https://www.youtube.com/watch?v=2OfjZ3ORJfc
1•JKCalhoun•50m ago•0 comments

Aggregated interviews on how YC W26 founders build internal AI employees

https://www.humanbehavior.co/blog/topic/ai-employees-inside-founders-agent-workflows
1•SkylerJi•54m ago•1 comments