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•10mo ago

Comments

trbndev•10mo 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•10mo ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•10mo 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•10mo 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•10mo 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•10mo 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•10mo 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

Chat Control Vote in the EU to End Untargeted Mass Scanning of Private Chats

https://www.patrick-breyer.de/en/historic-chat-control-vote-in-the-eu-parliament-meps-vote-to-end...
1•dinowars•39s ago•0 comments

Nielsen's Gracenote sues OpenAI over use of metadata in AI training

https://www.reuters.com/business/media-telecom/nielsens-gracenote-sues-openai-over-use-metadata-a...
1•1vuio0pswjnm7•1m ago•0 comments

Alex Gerko funds telescope showing 'cartography of the universe'

https://www.ft.com/content/74e5ce31-ca84-4ae0-96da-df517a015148
1•samizdis•1m ago•1 comments

The Internet Is for End Users

https://datatracker.ietf.org/doc/html/rfc8890
1•flipped•2m ago•0 comments

Major US tech firms are potential Iranian targets, state media says

https://www.cnn.com/world/live-news/iran-war-us-israel-trump-03-11-26
2•mrtksn•2m ago•0 comments

An unappetizing shrub became different vegetables

https://www.worksinprogress.news/p/many-of-the-tastiest-vegetables-are
1•bensouthwood•2m ago•0 comments

What Is a City When Its Wealthiest Leave?

https://www.wsj.com/real-estate/miami-property-taxes-billionaires-future-cities-a9bdda45
2•simonebrunozzi•3m ago•2 comments

Review of the Agent Internet RFCs

https://github.com/andre-git/agent-internet-rfcs
1•andre-hn•4m ago•1 comments

OpenBSD Ext4fs Update

https://www.kmx.io/blog/openbsd-ext4fs-update
1•thodg•5m ago•0 comments

Effects of Deliberate, Contingency and Reactive Planning on Effectiveness (2008)

https://www.researchgate.net/publication/247720525
1•pitched•6m ago•0 comments

AI Commoditization: Open-Source Parity Is a Pricing Problem

https://philippdubach.com/posts/ai-models-are-the-new-rebar/
1•7777777phil•6m ago•0 comments

Claude Login Outage

https://old.reddit.com/r/ClaudeAI/comments/1rqvucq/claude_status_update_elevated_errors_on_claudeai/
1•nurettin•6m ago•0 comments

All Models Are Wrong, Some Are Useful

https://docs.eventsourcingdb.io/blog/2026/03/12/all-models-are-wrong-some-are-useful/
1•goloroden•6m ago•0 comments

Is It Impossible to Make a Living as an Animator in Japan?

https://www.animenewsnetwork.com/feature/2026-02-20/is-it-really-impossible-to-make-a-living-as-a...
1•PaulHoule•7m ago•0 comments

Our ancestors used mushrooms to change the course of human history

https://www.newscientist.com/article/2516720-how-our-ancestors-used-mushrooms-to-change-the-cours...
1•Brajeshwar•9m ago•0 comments

Mathematics is undergoing the biggest change in its history

https://www.newscientist.com/article/2518526-mathematics-is-undergoing-the-biggest-change-in-its-...
1•Brajeshwar•9m ago•0 comments

New African species confirms evolutionary origin of magic mushrooms

https://phys.org/news/2026-03-african-species-evolutionary-magic-mushrooms.html
1•Brajeshwar•9m ago•0 comments

Show HN: I built an interactive globe for verified combat events

https://defogwar.com
2•IMAYousaf•9m ago•2 comments

I built an AI agent in Zig that runs on Windows XP with 64 MB RAM

1•bcorp•12m ago•1 comments

Volume, Ambition, Clarity

https://tern.sh/blog/volume-ambition-clarity/
1•trjordan•13m ago•0 comments

AI-powered refund abuse and dispute fraud: The democratization of deception

https://www.ravelin.com/blog/ai-powered-refund-abuse-dispute-fraud
1•speckx•13m ago•0 comments

Track idle, typing, and agent work time across Claude Code sessions

https://github.com/martinambrus/claude_timings_wrapper
1•martinambrus•13m ago•1 comments

Show HN: Rewriting Mongosh in Golang Using Claude

https://github.com/adaptive-scale/go-mongosh
6•debarshri•14m ago•1 comments

Show HN: Klaus – OpenClaw on a VM, batteries included

https://klausai.com/
7•robthompson2018•15m ago•2 comments

ugit: DIY Git in Python

https://www.leshenko.net/p/ugit/#
1•tosh•16m ago•0 comments

YouTube expands AI deepfake detection to politicians, officials, journalists

https://techcrunch.com/2026/03/10/youtube-expands-ai-deepfake-detection-to-politicians-government...
1•Vaslo•16m ago•0 comments

Revolut secures full UK banking licence after lengthy wait

https://uk.finance.yahoo.com/news/revolut-finally-secures-full-uk-144307017.html
2•mmarian•16m ago•0 comments

Okmain: You have an image but you want a colour

https://dgroshev.com/blog/okmain/
1•dgroshev•17m ago•0 comments

OpenUI – The Open Standard for Generative UI

https://github.com/thesysdev/openui
1•Topfi•19m ago•0 comments

ProPublica Wins Lawsuit over Access to Court Records in U.S. Navy Cases

https://www.propublica.org/article/navy-court-records-ruling-first-amendment
3•toomuchtodo•19m ago•0 comments