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

'Helmsniff'; a Helm Security Scanner

https://github.com/VahidR/helmsniff
1•vahid_r•21s ago•0 comments

Why the EU rewrote its landmark AI law

https://www.theparliamentmagazine.eu/news/article/why-the-eu-rewroteits-landmark-ai-law
1•thinkingemote•1m ago•0 comments

UK Home Office launches £75M 'PoliceAI' to capitalise on artificial intelligence

https://www.publictechnology.net/2026/06/15/public-order-justice-and-rights/home-office-launches-...
1•thinkingemote•1m ago•0 comments

Scaling a Monolith to 1M LOC: 113 Pragmatic Lessons

https://www.semicolonandsons.com/articles/scaling-a-monolith-to-1m-loc-113-pragmatic-lessons
1•jackkinsella•5m ago•0 comments

Show HN: Amiqo – a private app to text the friends you're drifting from

https://amiqo.life/
1•kyle11•6m ago•0 comments

GPUs and RAM Are in Short Supply, but the Real Bottleneck for AI Is Electricians

https://www.nextplatform.com/compute/2026/05/28/gpus-and-ram-are-in-short-supply-but-the-real-bot...
1•Gooblebrai•7m ago•0 comments

Ask HN: Do you use Claude Code, Codex, or something else?

2•JohnDSDev•8m ago•1 comments

Alice. Alice Is Impatient

https://brooker.co.za/blog/2026/06/19/waiting.html
1•birdculture•10m ago•0 comments

Cooren – I turned my family's dinner-voting app into a coordination API

https://github.com/McLeod-Interactive-Group-LLC/cooren-api
1•smac-mig•10m ago•0 comments

Agent-Native Code Hosting

https://gitlawb.com/
1•panikadak•12m ago•0 comments

Europe's Making Fewer Cars and Lots of Them Are Chinese

https://www.bloomberg.com/news/features/2026-06-19/stellantis-volkswagen-eye-risky-partnerships-w...
2•tchalla•12m ago•0 comments

World Cup tourists aren't leaving tips – and NYC restaurants are fighting back

https://nypost.com/2026/06/20/us-news/world-cup-tourists-arent-leaving-tips-and-nyc-restaurants-a...
1•donsupreme•12m ago•2 comments

AutoJack: A single page can RCE the host running your AI agent

https://www.microsoft.com/en-us/security/blog/2026/06/18/autojack-single-page-rce-host-running-ai...
4•p_stuart82•12m ago•0 comments

A Love Story

https://pudding.cool/2026/06/love-story/
1•simonebrunozzi•12m ago•1 comments

StoryScope: Investigating Idiosyncrasies in AI Fiction

https://arxiv.org/abs/2604.03136
1•amai•13m ago•0 comments

Show HN: Internal agent systems like Ramp Inspect for your company

https://brainbaselabs.com
1•egrigokhan•13m ago•0 comments

Show HN: OpenSpend – Invoicing for creators, popup shops and small businesses

https://openspend.riamu.io/
1•openspend•23m ago•0 comments

I built an offline tool to stabilize TV audio because nothing else worked

https://github.com/AdBusterOfficial/Adbuster--WinApp
2•Bo_Amigo_910•24m ago•0 comments

AirPods/AirPods Pro – One Hack to Identify Them All

https://bookofjoe2.blogspot.com/2026/06/yoyo.html
1•bookofjoe•25m ago•0 comments

Microsoft will end Office 2021 support in October

https://www.windowslatest.com/2026/06/20/microsoft-is-killing-office-2021-in-october-to-push-you-...
4•logickkk1•26m ago•0 comments

Show HN: Supaqueue – Node.js background job queue (no Redis needed)

https://github.com/emirce/supaqueue
1•emirce•28m ago•0 comments

Attackers hijacked over 1,500 Arch Linux packages

https://thenextweb.com/news/arch-linux-aur-malware-credential-stealer-supply-chain
3•andmarios•29m ago•0 comments

Show HN: Phone Number for AI Agents Like Hermes and OpenClaw

https://agentline.cloud
2•sameersri2004•33m ago•2 comments

Show HN: A decompilation-based native PC runtime for GoldenEye 007

https://github.com/akratch/mgb64
1•akratch•34m ago•0 comments

GWT 2.13.1

https://github.com/gwtproject/gwt/releases/tag/2.13.1
2•theanonymousone•34m ago•0 comments

The Magic of Changing Units

https://twitter.com/15424578268/status/2068318342327472520
1•MrBuddyCasino•35m ago•0 comments

Pulse, lightweight Linux monitoring dashboard written in C

https://github.com/cherries-works/pulse
1•xerrs•36m ago•0 comments

Unauthorized alert sent to cell phones across Brazil

https://www.cnn.com/2026/06/20/americas/brazil-hackers-unauthorized-alert-latam
2•zdw•38m ago•0 comments

Windows UI evolution: Clicking an unassociated file

https://movq.de/blog/postings/2026-06-20/0/POSTING-en.html
2•zdw•43m ago•0 comments

Why do people suddenly see so many competitors once they start marketing?

4•xnslx•44m ago•0 comments